JDK 19+21 early-access build is reproducible

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Mon May 9 13:33:19 UTC 2022

On 2022-05-08 16:42, Bernhard M. Wiedemann via rb-general wrote:

> On 06/05/2022 22.48, John Neffenger wrote:
>> Starting yesterday, for the first time, the JDK can create reproducible
>> builds of the JDK!
> That is great news. Thank you John, Magnus and Andrew for taking care of
> this.
> I tried to get a double-build test working on openSUSE with
> https://github.com/openjdk/jdk/releases/tag/jdk-19%2B21  to either
> confirm the reproducibility or find some remaining diff for you,
> however building JDK is still hard, so
> https://build.opensuse.org/package/show/home:bmwiedemann:java/java-19-openjdk
> errors out atm with
>   checking for java...
> /home/abuild/rpmbuild/BUILD/jdk-jdk-19-21/build/bootcycle-build/images/jdk/bin/java
>   checking for javac...
> /home/abuild/rpmbuild/BUILD/jdk-jdk-19-21/build/bootcycle-build/images/jdk/bin/javac
>   checking for javah... no
>   configure: error: Java 1.6 or later is required to build java-access-bridge

This error is not coming from OpenJDK per se, but from the configure 
script of the java-atk-wrapper package that SUSE (apparently) bundles 
with the OpenJDK. There is no javah in JDK 19, and has not been for a 
long time, so this package needs to be updated.

Just a few lines above you can see that the actual OpenJDK build 
finished successfully:

[ 4810s] Finished building targets 'bootcycle-images all' in configuration '/home/abuild/rpmbuild/BUILD/jdk-jdk-19-21/build'

(The log is incredibly hard to read since very low-level debugging 
information is turned on. Also, building bootcycle-images is mostly just 
a waste of CPU cycles.)


> I found a javah in 1_8_0 but that is rejected as bootstrap java version
> (needs to be 18 or 19)
> Can you point me to the scripts that build your official Linux binaries
> or do you have hints on how to fix my build?
> You can also try this locally on Debian or openSUSE with an account from
> https://idp-portal.suse.com/  and
> osc co home:bmwiedemann:java/java-19-openjdk && cd $_
> osc build --noservice standard
> Ciao
> Bernhard M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-general/attachments/20220509/a1b5a373/attachment.htm>

More information about the rb-general mailing list