Bug#306633: libxalan2-java: FTBFS: Invalid JAVA_HOME_DIRS

Andreas Jochens Andreas Jochens <aj@andaco.de>, 306633@bugs.debian.org
Wed Apr 27 19:39:02 2005


Package: libxalan2-java
Version: 2.6.0-1
Severity: serious
Tags: patch

When trying to build 'libxalan2-java' in a clean chroot with
j2sdk1.4-{sun,ibm,blackdown} installed, I get the following error:

make[1]: Leaving directory `/libxalan2-java-2.6.0'
rm -f debian/patches/*.log
You must specify a valid JAVA_HOME or JAVACMD!
make: *** [ant-sanity-check] Error 1

Please change JAVA_HOME_DIRS in debian/rules to make it possible to
build the package with the j2sdk1.4-{sun,ibm,blackdown} packages
which can be created using make-jpkg from java-package.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libxalan2-java-2.6.0/debian/rules ./debian/rules
--- ../tmp-orig/libxalan2-java-2.6.0/debian/rules	2005-03-26 08:35:26.629344366 +0100
+++ ./debian/rules	2005-03-26 08:35:06.614097122 +0100
@@ -6,7 +6,7 @@
 include /usr/share/cdbs/1/class/ant.mk
 
 # Directories to look for JAVA_HOME (JDK 1.4+ required!)
-JAVA_HOME_DIRS := /usr/lib/j2se/1.4 /usr/lib/j2sdk1.4
+JAVA_HOME_DIRS := /usr/lib/j2sdk1.4-sun /usr/lib/j2sdk1.4-ibm /usr/lib/j2sdk1.4-blackdown
 ANT_HOME := /usr/share/ant1.6
 
 # Additional JARs to add to the class path, either full path or just the