jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Thu, 17 Oct 2024 08:59:51 +0000 (10:59 +0200)
committerMatthias Klose <doko@ubuntu.com>
Thu, 17 Oct 2024 08:59:51 +0000 (10:59 +0200)
commit04a692c12f114a757f667dc1fc451a02d985e8c4
tree5b342c53142a63e37bb4b2328554c78f689d9e81
parent9b931ba51ada7dbf677741b191f276f4ff76e99e
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