Bug#982526: stockpile-clojure: FTBFS with OpenJDK 17 due to JDK detection error

Adrian Bunk bunk at debian.org
Mon Nov 14 21:27:13 GMT 2022


Control: reassign -1 gettext
Control: retitle -1 msgfmt javac detection is broken for OpenJDK 17
Control: affects -1 src:stockpile-clojure

On Sat, Feb 20, 2021 at 10:55:42AM -0800, tony mancill wrote:
> On Thu, Feb 11, 2021 at 10:11:03AM +0100, Emmanuel Bourg wrote:
> > Source: stockpile-clojure
> > Severity: important
> > Tags: ftbfs sid bookworm
> > User: debian-java at lists.debian.org
> > Usertags: default-java17
> > 
> > stockpile-clojure fails to build with OpenJDK 17, it looks like the JDK isn't properly detected:
> > 
> > 
> >   make[1]: Entering directory '/<<PKGBUILDDIR>>'
> >   msgfmt --java2 -d resources -r puppetlabs.stockpile.Messages -l en locales/messages.pot
> >   Writing resources/locales.clj
> >   msgfmt: Java compiler not found, try installing gcj or set $JAVAC
> >   msgfmt: compilation of Java class failed, please try --verbose or set $JAVAC
> >   make[1]: *** [dev-resources/Makefile.i18n:86: resources/puppetlabs/stockpile/Messages_en.class] Error 1
> >   make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> 
> I spent some time poking at this and problem appears to be in msgfmt
> (part of gettext).  The same FTBFS occurs with
> trapperkeeper-webserver-jetty9-clojure.
> 
> Likely related... gettext is also FTBFS against experimental with
> OpenJDK 17 installed.  As you suggest, it appears to be an issue with
> detecting javac.
> 
>     (jdk-exp-amd64-sbuild)root at lark:/tmp# javac -version
>     javac 17-ea
> 
> 
> From the configure during the gettext build:
> 
>     ...
>     checking for Java virtual machine... java
>     checking for Java compiler... no
>     ...
> 
> Any concerns with me retitling this bug, reassigning it to gettext,
> adding affects to trapperkeeper-webserver-jetty9-clojure, and then
> filing a separate FTBFS bug against gettext for sid/bookworm?

Yes, this is a bug in gettext:
  https://sources.debian.org/src/gettext/0.21-9/gettext-tools/src/write-java.c/#L1211

Changing the source and target versions in this line to 1.7 fixes the
stockpile-clojure build.

> Thanks,
> tony

cu
Adrian



More information about the pkg-java-maintainers mailing list