jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 17 Apr 2024 12:24:58 +0000 (14:24 +0200)
committerMatthias Klose <doko@ubuntu.com>
Wed, 17 Apr 2024 12:24:58 +0000 (14:24 +0200)
commit52c2827bd5320a9810b8ced1c283e9a8e0349ee5
treea5d0d20f20418887c4314c7d4e893bb683bf5e17
parent1c488e6ca760b572bbe818c4f1d5a6cc5a7b8541
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