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

Bug #2053294 reported by Vladimir Petko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mecab (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Dear Maintainers,

The package mecab ftbfs with default Java 21.
The relevant part of the build log:
---------------
dh_auto_build --sourcedirectory=ruby --buildsystem=ruby
 cd ruby && dh_ruby --build
/usr/bin/make -C java
make[2]: Entering directory '/<<PKGBUILDDIR>>/java'
g++ -g -O3 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/mecab-0.996-14build15 -Wdate-time -D_FORTIFY_SOURCE=2 -g -O3 -c -fpic MeCab_wrap.cxx -I../src -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux
g++ -shared MeCab_wrap.o -o libMeCab.so -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -L../src/.libs -lmecab -lstdc++
javac -source 1.7 -target 1.7 -encoding UTF-8 org/chasen/mecab/*.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]: *** [Makefile:18: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/java'
make[1]: *** [debian/rules:24: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
---------------

Related branches

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 mecab - 0.996-14ubuntu1

---------------
mecab (0.996-14ubuntu1) noble; urgency=medium

  * d/java/Makefile: cherry-pick upstream packaging change by Hideki
    Yamane to resolve Java 21 ftbs (LP: #2053294):
     - Use ${java_compat_level} for javac to avoid FTBFS (Closes: #1053061)
       (commit 0c8c0d1b3730758ef0ea98927e25c12596e39cf9).

 -- Vladimir Petko <email address hidden> Fri, 16 Feb 2024 14:53:38 +1300

Changed in mecab (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

Remote bug watches

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