jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sat, 10 Aug 2024 08:08:49 +0000 (10:08 +0200)
committerMatthias Klose <doko@ubuntu.com>
Sat, 10 Aug 2024 08:08:49 +0000 (10:08 +0200)
commit0cf0fce42575bc87113e3bef729be1ca5593ac74
treedff1dd30481d9b4cb92eb3e3d5de8e591e813b86
parenta6b6de28d42a55f994378f14ae0b185d8fb3f2b6
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