jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sat, 15 Mar 2025 07:27:31 +0000 (08:27 +0100)
committerMatthias Klose <doko@ubuntu.com>
Sat, 15 Mar 2025 07:27:31 +0000 (08:27 +0100)
commit6dccbc7434a1659b55facdbddb1bcf3c2584ae8d
treeb925168db3a4791d9759ed012e98938554b3e98a
parenta2ca834d8ce7c88e7bc308f7647c022087deb021
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