jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Tue, 30 Jul 2024 06:37:36 +0000 (08:37 +0200)
committerMatthias Klose <doko@ubuntu.com>
Tue, 30 Jul 2024 06:37:36 +0000 (08:37 +0200)
commit78eb248bb536cd199cebb2bd04a8885fa76aba23
tree401da2c59624305f035bd53f4e53428714ca0b38
parent90639dd8ed70cb632b5f10030124b367a90c1344
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