Bug#873989: FTBFS with Java 9 due to -source/-target only
Control: tags -1 patch Dear maintainer, I've prepared a patch to fix the build failure with Java 9. I am attaching it to this bug report. Regards, Markus diff -Nru libmatthew-java-0.8/debian/changelog libmatthew-java-0.8/debian/changelog --- libmatthew-java-0.8/debian/changelog2016-11-01 21:42:46.0 +0100 +++ libmatthew-java-0.8/debian/changelog2017-12-27 22:04:14.0 +0100 @@ -1,3 +1,11 @@ +libmatthew-java (0.8-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * debian/rules: Override JVERCFLAGS and use a supported source version. This +will fix the FTBFS with Java 9. (Closes: #873989) + + -- Markus KoschanyWed, 27 Dec 2017 22:04:14 +0100 + libmatthew-java (0.8-1) unstable; urgency=medium * new upstream version diff -Nru libmatthew-java-0.8/debian/rules libmatthew-java-0.8/debian/rules --- libmatthew-java-0.8/debian/rules2016-11-01 21:42:46.0 +0100 +++ libmatthew-java-0.8/debian/rules2017-12-27 22:04:14.0 +0100 @@ -9,6 +9,7 @@ JAVAH=/usr/lib/jvm/default-java/bin/javah \ JAVADOC=/usr/lib/jvm/default-java/bin/javadoc \ JAVADOCFLAGS="-quiet -author -link /usr/share/doc/default-jdk-doc/api/" \ + JVERCFLAGS="-source 1.7" \ JAR=/usr/bin/fastjar \ PREFIX=/usr \ all doc signature.asc Description: OpenPGP digital signature
Bug#873989: FTBFS with Java 9 due to -source/-target only
Source: libmatthew-java Version: 0.8 Severity: normal User: debian-j...@lists.debian.org Usertags: default-java9 This package fails to build with default-jdk pointing to openjdk-9-jdk. The wiki has some common problems and their solutions: https://wiki.debian.org/Java/Java9Pitfalls 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 messed up. Build log sample: make[3]: Entering directory '/build/libmatthew-java-0.8' mkdir -p classes cpp -C -P -DDEBUGSETTING=false < cx/ath/matthew/debug/Debug.jpp > cx/ath/matthew/debug/Debug.java /usr/lib/jvm/default-java/bin/javac -source 1.5 -cp classes -d classes cx/ath/matthew/debug/Debug.java cx/ath/matthew/utils/Hexdump.java 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. make[3]: *** [.disabledebug] Error 2 make[2]: *** [.classes] Error 2 Makefile:107: recipe for target '.disabledebug' failed Cheers, Chris.