jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sun, 28 Jan 2024 23:07:10 +0000 (00:07 +0100)
committerMoritz Mühlenhoff <jmm@debian.org>
Sun, 28 Jan 2024 23:07:10 +0000 (00:07 +0100)
commit2680d1a634ebc99fc6ed221ae78d9738bd4a5f3a
tree1caeee2a911c05c54aa82ffe78d008853dfb9483
parent0062d3b7a0c6a6b7dd4ac5dc2ec303cfc8a1523a
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