jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Tue, 30 Jul 2024 06:42:49 +0000 (08:42 +0200)
committerMatthias Klose <doko@ubuntu.com>
Tue, 30 Jul 2024 06:42:49 +0000 (08:42 +0200)
commit2d2e0f265c3bb5e466233887da47ca6520d431d7
tree3c907f5a2ec6f1beda393b3b15113c519a929e90
parenta48f1e84e2b92a688e383b8889b2a3b3c8fc8473
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