jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Thu, 24 Aug 2023 06:29:32 +0000 (07:29 +0100)
committerMatthias Klose <doko@ubuntu.com>
Thu, 24 Aug 2023 06:29:32 +0000 (07:29 +0100)
commit0f32c92df7a24bfff4459d0ad5f1ce82ced81084
treebf195f4d56fc321bf0fee491796322e29d5b9d1c
parent4766062acaa466f4622be88b93d986e76abb0bc7
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