jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 31 Jul 2024 15:55:14 +0000 (17:55 +0200)
committerMoritz Muehlenhoff <jmm@debian.org>
Wed, 31 Jul 2024 15:55:14 +0000 (17:55 +0200)
commitc7307a2ebe82cc995ee5011581295a75a7bd1a7a
tree916504794decf40bde8f5bb39a354714a90eb51a
parent42e4f76f3f88995a8d2043a724533ff6ee0cd836
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