jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 17 Jan 2024 11:09:47 +0000 (12:09 +0100)
committerMatthias Klose <doko@ubuntu.com>
Wed, 17 Jan 2024 11:09:47 +0000 (12:09 +0100)
commit079e51b0b749f3dff606a3975356527ac67a5efa
tree78213d8e8099347ebf90c710b17a6e3a2adda2e0
parentacef40b5993063620152ffdb80b640f9cbadbd03
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk