jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Thu, 1 May 2025 08:40:21 +0000 (10:40 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Thu, 1 May 2025 08:40:21 +0000 (10:40 +0200)
commitd2b176fae518b350ae98b5b1a8462a031d40fd56
tree24c24f3e81a5be1b13f0b3dff09ed74fad9ff0e2
parentdea38f9ac48136eb119e7fbfc9231953b76bbcf5
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