Package: jswat2 Version: 2.33-1 Severity: serious Tags: patch When building 'jswat2' on amd64/unstable with gcc-4.0, I get the following error:
# Add here commands to compile the package. ant -Dversion=2.33 dist Error: JAVA_HOME is not defined correctly. We cannot execute /usr/local/j2sdk1.4.2_06/bin/java make: *** [build-stamp] Error 1 Please add the missing Build-Depends on j2sdk1.4 to debian/control and amend debian/rules to set the correct JAVA_HOME path. Regards Andreas Jochens diff -urN ../tmp-orig/jswat2-2.33/debian/control ./debian/control --- ../tmp-orig/jswat2-2.33/debian/control 2005-03-11 16:09:02.996969270 +0100 +++ ./debian/control 2005-03-11 16:08:59.745463574 +0100 @@ -2,7 +2,7 @@ Section: contrib/devel Priority: optional Maintainer: Marcus Crafter <[EMAIL PROTECTED]> -Build-Depends-Indep: debhelper (>> 3.0.0), ant (>= 1.2-1) +Build-Depends-Indep: debhelper, j2sdk1.4, ant (>= 1.2-1) Standards-Version: 3.6.1.1 Package: jswat2 diff -urN ../tmp-orig/jswat2-2.33/debian/rules ./debian/rules --- ../tmp-orig/jswat2-2.33/debian/rules 2005-03-11 16:09:02.996969270 +0100 +++ ./debian/rules 2005-03-11 16:08:51.578705110 +0100 @@ -11,7 +11,8 @@ JSWAT_VERSION := $(shell pwd | sed -e 's/.*\([1-9]\.[1-9]\)/\1/') # This ensures that we build with jdk 1.4.2 -export JAVA_HOME=/usr/local/j2sdk1.4.2_06 +JAVA_HOME_DIRS=/usr/lib/j2sdk1.4-sun /usr/lib/j2sdk1.4-ibm /usr/lib/j2sdk1.4-blackdown +export JAVA_HOME ?= $(shell for j in $(JAVA_HOME_DIRS); do [ -d "$$j" ] && echo $$j && exit 0; done) export PATH=$JAVA_HOME/bin:$(shell echo $$PATH) # This tool is built by jakarta-ant -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]