jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Mon, 9 Sep 2024 13:29:08 +0000 (15:29 +0200)
committerMatthias Klose <doko@ubuntu.com>
Mon, 9 Sep 2024 13:29:08 +0000 (15:29 +0200)
commit3994e2b96de2b4a0b584371f4e31637c2cf00bbb
treecae1813198777dfbe467188e9bb4328e021326d1
parent78b73fb2ba953cc38bc703294149fba84db42fac
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