jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sun, 10 Aug 2025 21:44:27 +0000 (23:44 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Sun, 10 Aug 2025 21:44:27 +0000 (23:44 +0200)
commitd5f00e63a9343c14e68bcd59920d227ae8abfab6
treedb3f4723e6c842fd0aee5dc9638a966d2b254c29
parente696ea134e612da86c4b844cd9aa59e4939aa714
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