clj-yaml-clojure: FTBFS with OpenJDK 21 due to unsupported javac source/target level 7

Bug #2052568 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clj-yaml-clojure (Debian)
New
Unknown
clj-yaml-clojure (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

clj-yaml-clojure 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.

  dpkg-buildpackage
  -----------------

  Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
  dpkg-buildpackage: info: source package clj-yaml-clojure
  dpkg-buildpackage: info: source version 0.7.2-1
  dpkg-buildpackage: info: source distribution unstable
  dpkg-buildpackage: info: source changed by Jérôme Charaoui <email address hidden>
   dpkg-source --before-build .
  dpkg-buildpackage: info: host architecture amd64
   debian/rules clean
  dh clean --with javahelper --with maven_repo_helper
     jh_clean
     debian/rules execute_before_dh_clean
  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  rm -f debian/maven-repo
  rm -f debian/pom.xml
  rm -Rf target
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
     dh_clean
   debian/rules binary
  dh binary --with javahelper --with maven_repo_helper
     dh_update_autotools_config
     dh_autoreconf
     debian/rules override_dh_auto_configure
  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  cd debian && ln -sf /usr/share/maven-repo .
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
     jh_linkjars
     debian/rules override_dh_auto_build
  make[1]: Entering directory '/<<PKGBUILDDIR>>'
  lein pom debian/pom.xml
  Wrote /<<PKGBUILDDIR>>/debian/pom.xml
  lein jar
  Compiling 1 source files to /<<PKGBUILDDIR>>/target/classes
  error: Source option 7 is no longer supported. Use 8 or later.
  error: Target option 7 is no longer supported. Use 8 or later.
  Compilation of Java sources(lein javac) failed.
  make[1]: *** [debian/rules:18: override_dh_auto_build] Error 1
  make[1]: Leaving directory '/<<PKGBUILDDIR>>'
  make: *** [debian/rules:11: binary] Error 2
  dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
  --------------------------------------------------------------------------------
  Build finished at 2023-09-22T21:44:04Z

Related branches

Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts install/upgrade/purge tests (OK)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package clj-yaml-clojure - 0.7.2-1ubuntu1

---------------
clj-yaml-clojure (0.7.2-1ubuntu1) noble; urgency=medium

  * d/p/0002-javac-options.patch: set source and target Java language
    level to 8 for compatibility with the default Java 21 (LP: #2052568).

 -- Vladimir Petko <email address hidden> Wed, 07 Feb 2024 13:27:37 +1300

Changed in clj-yaml-clojure (Ubuntu):
status: New → Fix Released
Changed in clj-yaml-clojure (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.