jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Thu, 24 Apr 2025 00:05:43 +0000 (02:05 +0200)
committerMatthias Klose <doko@ubuntu.com>
Thu, 24 Apr 2025 00:05:43 +0000 (02:05 +0200)
commita3f525f0712cf715adfb21280c42892c53d588fa
treed90a5ecca4f6de6ade8c2359daab0478f9dd9803
parent9b6bdb6d4b982ddb1242d9dcc9498d07525c22bd
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