Bug#874001: FTBFS with Java 9 due to -source/-target only
Control: tags -1 patch Dear maintainer, I've prepared a patch to fix the FTBFS with Java 9. Please find attached the debdiff. Regards, Markus diff -Nru sonic-0.2.0/debian/changelog sonic-0.2.0/debian/changelog --- sonic-0.2.0/debian/changelog2017-10-22 17:52:54.0 +0200 +++ sonic-0.2.0/debian/changelog2018-01-24 00:19:34.0 +0100 @@ -1,3 +1,10 @@ +sonic (0.2.0-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with Java 9. + + -- Markus KoschanyWed, 24 Jan 2018 00:19:34 +0100 + sonic (0.2.0-5) unstable; urgency=medium [ Helmut Grohne ] diff -Nru sonic-0.2.0/debian/rules sonic-0.2.0/debian/rules --- sonic-0.2.0/debian/rules2016-10-23 12:00:54.0 +0200 +++ sonic-0.2.0/debian/rules2018-01-24 00:19:34.0 +0100 @@ -15,7 +15,7 @@ sonic/Sonic.class: Sonic.java [ -L sonic ] || ln -s . sonic - javac -source 1.5 -target 1.5 $< + javac -source 1.7 -target 1.7 $< sonic.jar: sonic/Sonic.class jar -cf $@ $^ signature.asc Description: OpenPGP digital signature
Bug#874001: FTBFS with Java 9 due to -source/-target only
Source: sonic Version: 0.2.0 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: debian/rules override_dh_auto_build make[1]: Entering directory '/build/sonic-0.2.0' [ -L sonic ] || ln -s . sonic javac -source 1.5 -target 1.5 Sonic.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. error: Target option 1.5 is no longer supported. Use 1.6 or later. debian/rules:17: recipe for target 'sonic/Sonic.class' failed make[1]: Leaving directory '/build/sonic-0.2.0' Cheers, Chris.