[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#875778: FTBFS with Java 9: path shenanigans confuse ant?



Source: pegasus-wms
Version: 4.4.0+dfsg-6
Severity: normal
User: debian-java@lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

On my builder, this fails as follows. I suspect it's due to this weird
fiddling with the path, which is invalid:
https://sources.debian.net/src/pegasus-wms/4.4.0%2Bdfsg-6/debian/rules/#L10

JAVA_HOME := $(firstword $(wildcard /usr/lib/jvm/java-7-openjdk-$(DEB_HOST_ARCH)))
PATH := ${JAVA_HOME}/bin:${PATH}

However, it works on Java 8, on Reproducible Builds jenkins, so it's
apparently not totally crazy.

(I realise that this package is orphaned.)

Build log:

dpkg-buildpackage: info: source package pegasus-wms
dpkg-buildpackage: info: source version 4.4.0+dfsg-6
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Adam Borowski <kilobyte@angband.pl>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build pegasus-wms-4.4.0+dfsg
dpkg-source: info: using options from pegasus-wms-4.4.0+dfsg/debian/source/options: --extend-diff-ignore=(Version.java|\.jar|doc/docbook/.*|doc/manpages/.*|share/man/man1/.*|\.pdf)$
 debian/rules clean
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp
ant clean
/bin/ant: 1: cd: can't cd to /bin/../share/ant/bin/..
Error: Could not find or load main class org.apache.tools.ant.launch.Launcher
Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.launch.Launcher
debian/rules:149: recipe for target 'clean' failed
make: *** [clean] Error 1
dpkg-buildpackage: error: debian/rules clean gave error exit status 2


Cheers,
Chris.


Reply to: