jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 22 Jan 2025 09:17:58 +0000 (10:17 +0100)
committerMatthias Klose <doko@ubuntu.com>
Wed, 22 Jan 2025 09:17:58 +0000 (10:17 +0100)
commit5b2e12385f55ef77495338e3e044d684ae4c7d32
treec942e9bc14d67a0375a977961f07fc78787c3397
parente72dc464d1f99c6caa2e08089bd0fb9190d708d1
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