mina: FTBFS with OpenJDK 21 due to unsupported javac source/target level 7

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

Bug Description

The package mina ftbfs with default Java 21.
The relevant part of the build log:
---------------
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# Build the packages
( CLASSPATH=/usr/share/java/slf4j-api.jar jh_build -J --javacopts='-source 1.7 -target 1.7' mina-core.jar core/src/main/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.
jh_build: error: find core/src/main/java/ -name '*.java' -and -type f -print0 | xargs -s 512000 -0 /usr/lib/jvm/default-java/bin/javac -g -cp /usr/share/java/slf4j-api.jar:debian/_jh_build.mina-core -d debian/_jh_build.mina-core -source 1.7 -target 1.7 -encoding ISO8859-1 returned exit code 123
make[1]: *** [debian/rules:43: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:39: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
---------------

Related branches

Changed in mina (Debian):
status: Unknown → New
Revision history for this message
Vladimir Petko (vpa1977) wrote :

piuparts install/upgrade/purge (pass)

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

This bug was fixed in the package mina - 1.1.7.dfsg-13ubuntu1

---------------
mina (1.1.7.dfsg-13ubuntu1) noble; urgency=medium

  * d/rules: use java_compat_level variable provided by java-common to
    adjust -source/-target level to the minimum required by the default
    Java (LP: #2052992).

 -- Vladimir Petko <email address hidden> Tue, 13 Feb 2024 16:46:50 +1300

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

Other bug subscribers

Bug attachments

Remote bug watches

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