jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sun, 22 Sep 2024 12:49:33 +0000 (14:49 +0200)
committerMatthias Klose <doko@ubuntu.com>
Sun, 22 Sep 2024 12:49:33 +0000 (14:49 +0200)
commit60f23a60d8890a9e7d3e9bb297263269c6a832c3
treecb8317efe3267c4c14336c4cbc3d05a8b77d5208
parent02e7eb633e8b4ec9e2435d65c14dcb41c41b5ace
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