jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sat, 15 Mar 2025 08:45:37 +0000 (09:45 +0100)
committerMatthias Klose <doko@ubuntu.com>
Sat, 15 Mar 2025 08:45:37 +0000 (09:45 +0100)
commitfadbb9db171f27549dc4b5a2aec876b37d0ebfc1
tree7f7a6be1afd22bf85d54be61b4c024d7a876f118
parentd20dbcc4c2b6629c9a95392fab8bd0308287cdf7
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