gettext: msgfmt --java2 does not support Java 21

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

Bug Description

When building 'ssl-utils-clojure' package with Java 21 as default, the build
fails with the following trace:
------
Applying task i18n to [make]
Running 'make i18n'
make[1]: *** [debian/rules:19: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:12: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
------

Running make in the build chroot produces the following error:
---
msgfmt --java2 -d resources -r puppetlabs.ssl_utils.Messages -l eo
locales/eo.po
msgfmt: Java compiler not found, try installing gcj or set $JAVAC
msgfmt: compilation of Java class failed, please try --verbose or set $JAVAC
make: *** [dev-resources/Makefile.i18n:94:
resources/puppetlabs/ssl_utils/Messages_eo.class] Error 1
---

It appears that gettext package does not support Java 21.

Note: gettext 0.22.4 refactors Java support. This delta can be safely dropped after a new upstream release.

Related branches

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

Piuparts gettext install/purge tests

Vladimir Petko (vpa1977)
description: updated
Revision history for this message
Julian Andres Klode (juliank) wrote :

Unsubscribing ubuntu sponsors as already subscribed to the merge

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

This bug was fixed in the package gettext - 0.21-14ubuntu1

---------------
gettext (0.21-14ubuntu1) noble; urgency=medium

  * Update patches to support Java 21 (LP: #2050033):
    - d/p/12-in-language-java-avoid-stack-overflow.patch: cherry-pick upstream
      patch to resolve Java 21 FTBFS.
    - d/p/07-java-17-support.patch: add Java versions, set release level 8.

 -- Vladimir Petko <email address hidden> Mon, 22 Jan 2024 13:33:17 +1300

Changed in gettext (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.