jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sat, 29 Jun 2024 07:05:11 +0000 (09:05 +0200)
committerMatthias Klose <doko@ubuntu.com>
Sat, 29 Jun 2024 07:05:11 +0000 (09:05 +0200)
commit27aefc7ae8e54174b287dc221f1e42385a5af2a5
treeee9cea87619e9866fe743120e2fc268400edade6
parenta19db015dfebca567ed7be02a19535c07dd54b04
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