Bug#347775: subversion: Debian build patches to ease back-porting
On Fri, 13 Jan 2006 02:56, Blair Zajac wrote: > Package: subversion > Version: 1.2.0-1ubuntu1 > Severity: normal > Tags: patch > > I'm a Subversion committer and working on taking the Debian Etch > Subversion packages and back-porting them for Ubuntu Breezy Badger. > This is a small patch to Debian's build system to make it easier and > to document issues I ran into. > > It does the following: > > * Depend upon kaffe >= 1.1.6 as the Java bindings do not compile > with kaffe 1.1.5. > * Add junit to BuildDepends and pass --with-junit to configure so > that 'make check-javahl' can be run. However, do run run the > check during the build since it core dumps with the gij, > java-gcj-compat and kaffe-pthreads JVMs. Sun's 1.5.0_06 JVM does > not crash and passes the tests succesfully. > * Have libsvn0 depend upon libapr0 (>= 2.0.55-3) so that the > packages meet Subversion's requirement for APR 0.9.7. > * Pass CLEANUP=true to 'make check' so directories will be removed > after successfully passing a test, saving a large amount of disk > space. > > I don't have the error handy, but g++ refuses to compile the Java > bindings in one file because it can't cast a string to a Java string. > Using kaffe 1.1.6 fixed this problem. > > Regards, > Blair > I've been sitting on this reply, meaning to turn it into a patch. Blair's recent post to #347942 has caused me to send this anyway. Javahl 1.3.0 (pristine upstream, built from the tag) builds fine on my Debian Etch/Sid with the latest kaffe (2:1.1.6.91-1) from unstable. (1.2.1 also built on Sarge with a couple of minor patches, which I sent to #271125.) kaffe is still unable to run 'make check-javahl'. 'FATAL ERROR: No more room for local references' which is a kaffe faq [1]. Sablevm and jamvm both run the javahl tests, so the javahl tests could be enable for the debian packages using sablevm/jamvm. However I haven't (yet) found time to hack^W^W^W^Wpatch the svn build script to use separate jdks for building and testing. Also note that javahl tests fail when run as root/with fakeroot [2]. This applies even with suns jdks. So you'll either need to fix/drop the buggy test, or run 'make check-javahl' as an unprivileged user. [1] http://www.kaffe.org/doc/kaffe/FAQ.references [2] http://svn.haxx.se/dev/archive-2006-01/0365.shtml > -- System Information: > Debian Release: testing/unstable > APT prefers breezy-updates > APT policy: (500, 'breezy-updates'), (500, 'breezy-security'), (500, > 'breezy-backports'), (500, 'breezy') Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/bash > Kernel: Linux 2.6.12-10-686-smp > Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) > > Versions of packages subversion depends on: > ii db4.2-util 4.2.52-19ubuntu4 Berkeley v4.2 Database > Utilities ii libapr02.0.55-3zajac1the Apache > Portable Runtime ii libc6 2.3.5-1ubuntu12 GNU C > Library: Shared libraries an ii libdb4.2 4.2.52-19ubuntu4 > Berkeley v4.2 Database Libraries [ ii libexpat1 1.95.8-3 > XML parsing C library - runtime li ii libldap2 > 2.1.30-12 OpenLDAP libraries > ii libneon24 0.24.7.dfsg-2 An HTTP and WebDAV client > library ii libssl0.9.70.9.7g-1ubuntu1.1 SSL shared libraries > ii libsvn01.2.0-1ubuntu1shared libraries used by > Subversio ii libxml22.6.21-0ubuntu1 GNOME XML library > ii patch 2.5.9-2 Apply a diff file to an > original ii zlib1g 1:1.2.3-3ubuntu4 compression library > - runtime > > subversion recommends no packages. > > -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#347775: subversion: Debian build patches to ease back-porting
[Blair Zajac] > I'm a Subversion committer and working on taking the Debian Etch > Subversion packages and back-porting them for Ubuntu Breezy Badger. > This is a small patch to Debian's build system to make it easier and > to document issues I ran into. s/Etch/Experimental/, I see. Which is fine. (: Thanks for working with us on this! > * Depend upon kaffe >= 1.1.6 as the Java bindings do not compile > with kaffe 1.1.5. I assume you meant 2:1.1.6, since etch is at 2:1.1.6-x and breezy is at 2:1.1.5-x. See the discussion of the "epoch" in Debian Policy 5.6.12: http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version I'll add that to the Build-Depends. (As you said later, we don't know whether it's needed in Depends, so I won't bother with it there. Let me know if you find out otherwise.) > * Add junit to BuildDepends and pass --with-junit to configure so > that 'make check-javahl' can be run. However, do run run the > check during the build since it core dumps with the gij, > java-gcj-compat and kaffe-pthreads JVMs. Sun's 1.5.0_06 JVM does > not crash and passes the tests succesfully. Nod, that looks sensible. > * Have libsvn0 depend upon libapr0 (>= 2.0.55-3) so that the > packages meet Subversion's requirement for APR 0.9.7. That's libapr0's responsibility - it should get this stuff right. If not, that's where to file the bugs. See /var/lib/dpkg/info/libapr0.shlibs. > * Pass CLEANUP=true to 'make check' so directories will be removed > after successfully passing a test, saving a large amount of disk > space. I'll investigate - if that's what that does, I'm all for it. Thanks again, Peter signature.asc Description: Digital signature
Bug#347775: subversion: Debian build patches to ease back-porting
For reference, here's the compile error of the Subversion Java bindings against Kaffe 1.1.5. /bin/sh /bztmp/debs/svn/subversion-1.3.0/BUILD/libtool --tag=CXX --silent --mode=compile g++ -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -g -O2 -pipe -I/usr/include/xmltok -I/usr/include/openssl -Wall -g -O2 -pthread -D_LARGEFILE64_SOURCE -DNE_LFS -O2 -I/bztmp/debs/svn/subversion-1.3.0/subversion/include -I./subversion -I/usr/include/neon -I/usr/include/apr-0 -I/usr/include/apr-0 -I/usr/include -I/usr/lib/kaffe/pthreads/include -I/bztmp/debs/svn/subversion-1.3.0/BUILD/subversion/bindings/java/javahl/include -o subversion/bindings/java/javahl/native/JNIByteArray.lo -c /bztmp/debs/svn/subversion-1.3.0/subversion/bindings/java/javahl/native/JNIByteArray.cpp /bztmp/debs/svn/subversion-1.3.0/subversion/bindings/java/javahl/native/JNIByteArray.cpp: In member function 'const signed char* JNIByteArray::getBytes()': /bztmp/debs/svn/subversion-1.3.0/subversion/bindings/java/javahl/native/JNIByteArray.cpp:80: error: invalid conversion from 'jbyte*' to 'const signed char*' make[1]: *** [subversion/bindings/java/javahl/native/JNIByteArray.lo] Error 1 make[1]: Leaving directory `/bztmp/debs/svn/subversion-1.3.0/BUILD' make: *** [debian/stamp-build] Error 2 Regards, Blair -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#347775: subversion: Debian build patches to ease back-porting
Some follow up notes: * Depend upon kaffe >= 1.1.6 as the Java bindings do not compile with kaffe 1.1.5. I added a Depends on kaffe >= 1.1.6 in addition to a Build-Depends. The Build-Depends is definitely needed to get the Java bindings to compile. I don't know if the Depends is needed as 'make check-javahl' core dumps even with 1.1.6, so there's no point in specifying a particular version. * Add junit to BuildDepends and pass --with-junit to configure so that 'make check-javahl' can be run. However, do run run the check during the build since it core dumps with the gij, Meant to say 'However, do not run the check during the build'. Regards, Blair -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#347775: subversion: Debian build patches to ease back-porting
Package: subversion Version: 1.2.0-1ubuntu1 Severity: normal Tags: patch I'm a Subversion committer and working on taking the Debian Etch Subversion packages and back-porting them for Ubuntu Breezy Badger. This is a small patch to Debian's build system to make it easier and to document issues I ran into. It does the following: * Depend upon kaffe >= 1.1.6 as the Java bindings do not compile with kaffe 1.1.5. * Add junit to BuildDepends and pass --with-junit to configure so that 'make check-javahl' can be run. However, do run run the check during the build since it core dumps with the gij, java-gcj-compat and kaffe-pthreads JVMs. Sun's 1.5.0_06 JVM does not crash and passes the tests succesfully. * Have libsvn0 depend upon libapr0 (>= 2.0.55-3) so that the packages meet Subversion's requirement for APR 0.9.7. * Pass CLEANUP=true to 'make check' so directories will be removed after successfully passing a test, saving a large amount of disk space. I don't have the error handy, but g++ refuses to compile the Java bindings in one file because it can't cast a string to a Java string. Using kaffe 1.1.6 fixed this problem. Regards, Blair -- System Information: Debian Release: testing/unstable APT prefers breezy-updates APT policy: (500, 'breezy-updates'), (500, 'breezy-security'), (500, 'breezy-backports'), (500, 'breezy') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-10-686-smp Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages subversion depends on: ii db4.2-util 4.2.52-19ubuntu4 Berkeley v4.2 Database Utilities ii libapr02.0.55-3zajac1the Apache Portable Runtime ii libc6 2.3.5-1ubuntu12 GNU C Library: Shared libraries an ii libdb4.2 4.2.52-19ubuntu4 Berkeley v4.2 Database Libraries [ ii libexpat1 1.95.8-3 XML parsing C library - runtime li ii libldap2 2.1.30-12 OpenLDAP libraries ii libneon24 0.24.7.dfsg-2 An HTTP and WebDAV client library ii libssl0.9.70.9.7g-1ubuntu1.1 SSL shared libraries ii libsvn01.2.0-1ubuntu1shared libraries used by Subversio ii libxml22.6.21-0ubuntu1 GNOME XML library ii patch 2.5.9-2 Apply a diff file to an original ii zlib1g 1:1.2.3-3ubuntu4 compression library - runtime subversion recommends no packages. -- no debconf information diff -ru ../orig/subversion-1.3.0/debian/changelog ./debian/changelog --- ../orig/subversion-1.3.0/debian/changelog 2006-01-11 22:53:40.0 -0800 +++ ./debian/changelog 2006-01-12 07:47:18.0 -0800 @@ -1,3 +1,26 @@ +subversion (1.3.0-1zajac1) breezy; urgency=low + + * Depend upon kaffe >= 1.1.6 as the Java bindings do not compile +with kaffe 1.1.5. + * Add junit to BuildDepends and pass --with-junit to configure so +that 'make check-javahl' can be run. However, do run run the +check during the build since it core dumps with the gij, +java-gcj-compat and kaffe-pthreads JVMs. Sun's 1.5.0_06 JVM does +not crash and passes the tests succesfully. + * Have libsvn0 depend upon libapr0 (>= 2.0.55-3) so that the +packages meet Subversion's requirement for APR 0.9.7. + * Pass CLEANUP=true to 'make check' so directories will be removed +after successfully passing a test, saving a large amount of disk +space. + * Rebuild on Ubuntu Breezy Badger. + + -- Blair Zajac <[EMAIL PROTECTED]> Thu, 12 Jan 2006 07:47:03 -0800 + subversion (1.3.0-1) experimental; urgency=low [ Peter, Guilherme ] diff -ru ../orig/subversion-1.3.0/debian/control ./debian/control --- ../orig/subversion-1.3.0/debian/control 2006-01-11 22:53:40.0 -0800 +++ ./debian/control2006-01-11 23:14:40.0 -0800 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Guilherme de S. Pastore <[EMAIL PROTECTED]> Uploaders: Al Stone <[EMAIL PROTECTED]>, David Kimdon <[EMAIL PROTECTED]>, Troy Heber <[EMAIL PROTECTED]>, Peter Samuelson <[EMAIL PROTECTED]> -Build-Depends: debhelper, libneon25-dev, apache2-threaded-dev, libapr0-dev (>= 2.0.55-3), libdb4.3-dev, libtool, bison, patch, python, python2.3-dev, autotools-dev, autoconf, swig, perl, cdbs, libperl-dev, ruby1.8, ruby1.8-dev, kaffe-dev [!arm !armeb !mips !mipsel !kfreebsd-i386], kaffe-pthreads [!arm !armeb !mips !mipsel !kfreebsd-i386] +Build-Depends: debhelper, libneon25-dev, apache2-threaded-dev, libapr0-dev (>= 2.0.55-3), libdb4.3-dev, libtool, bison, patch, python, python2.3-dev, autotools-dev, autoconf, swig, perl, cdbs, libperl-dev, ruby1.8, ruby1.8-dev, kaffe-dev (>= 1.1.6) [!arm !armeb !mips !mipsel !kfreebsd-i386], kaffe-pthreads (>= 1.1.6) [!arm !armeb !mips !mipsel !kfreebsd-i386], junit [!arm !armeb !mips !mipsel !kfreebsd-i386] Build-Conflicts: libsvn0 (<< 1.2) Standards-Version: 3.6.2.1 @@ -29,7 +29,7 @@ Package: li