jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Wed, 18 Oct 2023 07:07:04 +0000 (08:07 +0100)
committerMatthias Klose <doko@ubuntu.com>
Wed, 18 Oct 2023 07:07:04 +0000 (08:07 +0100)
commit1cfea2c155a037721423854383d5f52e5b6c68ab
tree2681ac0cbac2ae967c249e384cbdae3fb01f0268
parent6614b0b5f90c66134118e684b851984ec00cc1bc
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