FS#1923 - Subversion package doesn't include Java bindings

Attached to Project: Arch Linux
Opened by Kevin Williams (k-dub) - Tuesday, 21 December 2004, 21:11 GMT
Last edited by Dale Blount (dale) - Tuesday, 21 December 2004, 21:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jason Chu (jason)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Please include "--enable-javahl" and "--with-jdk=<path_to_jdk>" options to the configure script arguments when compiling Subversion. This should allow "make javahl" to build the Java bindings.

http://svn.collab.net/viewcvs/svn/trunk/subversion/bindings/java/javahl/README

The Java bindings could be a separate package, but that's up to the maintainer.
This task depends upon

Closed by  Jason Chu (jason)
Thursday, 15 September 2005, 14:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  Included in 1.2.3-4
Comment by Jason Chu (jason) - Saturday, 15 January 2005, 22:04 GMT
I tried to get it in for 1.1.3, but I had some problems compiling it. I will see about getting it in later.
Comment by William DeMoss II (wdemoss) - Monday, 07 March 2005, 00:29 GMT
I just added --enable-javahl and uncommented make DESTDIR=$startdir/pkg javahl and make DESTDIR=$startdir/pkg install-javahl. This was with the stock jdk 1.5 and latest gcc out of testing.

Comment by William DeMoss II (wdemoss) - Monday, 07 March 2005, 00:29 GMT
oops, forgot to add that it compiled fine
Comment by William DeMoss II (wdemoss) - Monday, 07 March 2005, 00:41 GMT
also j2sdk should be added to makedepends for compiling the bindings
Comment by Paul Mattal (paul) - Tuesday, 05 April 2005, 12:17 GMT
I was once able to compile it fine, but then couldn't actually get it to work (with the subclipse plugin for eclipse). Fortunately, this is no longer a problem, because there is a 100% pure Java svn client implementation now. And it even supports SSL/https.

Does anyone have any experience where they compiled the package with javahl and they subsequently used it and it worked?
Comment by Jason Chu (jason) - Wednesday, 06 July 2005, 18:49 GMT
Just figured I'd note this before anything else is done with it.

It seems that it doesn't compile unless the newer version of subversion is already installed on the system. That's just bad form. I don't want to have to compile packages twice for them to work totally.
Comment by Kevin Williams (k-dub) - Wednesday, 06 July 2005, 19:16 GMT
I've been using a slightly modified PKGBUILD file and it builds just fine the first time. I haven't explicitly tested it from Subclipse, but I do use Subclipse and it seems to work fine.

I don't use the Arch j2sdk package, though. I install it directly from Sun, set my JAVA_HOME variable, and add "$JAVA_HOME/bin" to my PATH.


----------------------------------------------------------------------
pkgname=subversion
pkgver=1.2.1
pkgrel=1
pkgdesc="a compelling replacement for CVS"
depends=('glibc' 'expat' 'libxml2' 'gdbm' 'zlib' 'db>=4.3' 'neon' 'apr' 'apr-util')
makedepends=('apache' 'python' 'perl>=5.8.4-1' 'swig>=1.3.24')
source=(http://svn.collab.net/tarballs/$pkgname-$pkgver.tar.gz svnserve svn svnserve.conf)
backup=('etc/xinetd.d/svn' 'etc/conf.d/svnserve')
url="http://subversion.tigris.org/"

build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --with-apr=/usr/bin/apr-config --with-apr-util=/usr/bin/apu-config --with-zlib --with-neon=/usr
make DESTDIR=$startdir/pkg || return 1

export LD_LIBRARY_PATH=$startdir/pkg/usr/lib:$LD_LIBRARY_PATH
make DESTDIR=$startdir/pkg install

make DESTDIR=$startdir/pkg swig-py
make install-swig-py DESTDIR=$startdir/pkg

mkdir -p $startdir/pkg/usr/lib/python2.4
mv $startdir/pkg/usr/lib/svn-python/ $startdir/pkg/usr/lib/python2.4/site-packages

mkdir -p $startdir/pkg/usr/share/subversion
cp -r tools/hook-scripts $startdir/pkg/usr/share/subversion
rm -f $startdir/pkg/usr/share/subversion/hook-scripts/*.in

make DESTDIR=$startdir/pkg swig-pl
make install-swig-pl DESTDIR=$startdir/pkg

rm -r $startdir/pkg/usr/lib/perl5/?.?.?

make DESTDIR=$startdir/pkg javahl
make DESTDIR=$startdir/pkg install-javahl

mkdir -p $startdir/pkg/etc/rc.d
mkdir -p $startdir/pkg/etc/xinetd.d
mkdir -p $startdir/pkg/etc/conf.d

install -m 755 $startdir/src/svnserve $startdir/pkg/etc/rc.d
install -m 644 $startdir/src/svn $startdir/pkg/etc/xinetd.d
install -m 644 $startdir/src/svnserve.conf $startdir/pkg/etc/conf.d/svnserve
}
md5sums=('01c3742745d50d4395684a4fb2908c5f' '22d452e0de5168d56c438d99c7ad72fa'\
'a0db6dd43af33952739b6ec089852630' 'c0001ceb13418a065915e27dfdf592c0')

Loading...