jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 7 Feb 2024 00:59:37 +0000 (00:59 +0000)
committerRaspbian forward porter <root@raspbian.org>
Wed, 7 Feb 2024 00:59:37 +0000 (00:59 +0000)
commitf6b0267defd68c086dc257e4b382eec7fb769959
tree4b13d5285a7e9b491aad5cb4e40168d7b0503303
parent85c3f5132722325d752525aa61e9006e08c9ac5c
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