Package: libnative-platform-java
Version: 0.14-5
Severity: important
Tags: ftbfs sid trixie
User: debian-j...@lists.debian.org
Usertags: default-java21


libnative-platform-java fails to build with OpenJDK 21 because it invokes javac 
with
the source/target options set to 7. Since OpenJDK 20 the minimum version
supported is 8.

Replacing the makefile with an Ant script would avoid this issue on future JDK 
upgrades.


  dpkg-buildpackage
  -----------------
  
  Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
  dpkg-buildpackage: info: source package libnative-platform-java
  dpkg-buildpackage: info: source version 0.14-5
  dpkg-buildpackage: info: source distribution unstable
  dpkg-buildpackage: info: source changed by Emmanuel Bourg <ebo...@apache.org>
   dpkg-source --before-build .
  dpkg-buildpackage: info: host architecture amd64
   fakeroot debian/rules clean
  dh clean --with maven-repo-helper,javahelper
     debian/rules override_dh_auto_clean
  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  dh_auto_clean
  rm -f -r debian/out
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
     jh_clean
     dh_clean
   debian/rules build
  dh build --with maven-repo-helper,javahelper
     dh_update_autotools_config
     dh_autoreconf
     jh_linkjars
     debian/rules override_dh_auto_build
  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  mkdir --parents debian/tmp
  make -f debian/Makefile build
  make[2]: Entering directory '/<<PKGBUILDDIR>>'
  mkdir --parents debian/out/classes
  javac -source 1.7 -target 1.7 -encoding UTF-8 -d debian/out/classes -h 
debian/out src/main/java/net/rubygrapefruit/platform/Terminal.java ...
  warning: [options] bootstrap class path not set in conjunction with -source 7
  error: Source option 7 is no longer supported. Use 8 or later.
  error: Target option 7 is no longer supported. Use 8 or later.
  make[2]: *** [debian/Makefile:44: debian/out/classes/%.class] Error 2
  make[2]: Leaving directory '/<<PKGBUILDDIR>>'
  make[1]: *** [debian/rules:12: override_dh_auto_build] Error 2
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
  make: *** [debian/rules:8: build] Error 2
  dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
  
--------------------------------------------------------------------------------
  Build finished at 2023-09-22T21:19:47Z

Reply via email to