[Pkg-phototools-devel] Bug#873997: FTBFS with Java 9 due to -source/-target only
solo-debianbugs at goeswhere.com
Fri Sep 1 20:07:28 UTC 2017
User: debian-java at lists.debian.org
This package fails to build with default-jdk pointing to openjdk-9-jdk.
The wiki has some common problems and their solutions:
An automated tool has decided that this package will build fine if the
-source and -target options are changed to 1.6; no additional changes
are required. This was done by building with a compiler that changed
the settings automatically, then the real compiler, and diffing the
results. This modified compiler will never be part of Debian.
ant and Maven are supposed to do this for you, and I've tried to check
that this package is not using ant or Maven correctly, but I might have
Build log sample (messed up due to make -j):
make: Entering directory '/build/openjpeg2-2.1.2/obj-x86_64-linux-gnu'
[ 1%] javac *.java; jar cvf -> opj_viewer_xerces.jar
cd /build/openjpeg2-2.1.2/obj-x86_64-linux-gnu/src/bin/jpip && /usr/bin/javac -source 1.5 -target 1.5 -classpath /usr/share/java/xercesImpl.jar /build/openjpeg2-2.1.2/src/bin/jpip/opj_viewer_xerces/src/ImageViewer.java /bui...
warning: [options] bootstrap class path not set in conjunction with -source 1.5
error: Source option 1.5 is no longer supported. Use 1.6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
make: *** [bin/[...].jar] Error 2
More information about the Pkg-phototools-devel