jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Mon, 9 Sep 2024 13:48:20 +0000 (15:48 +0200)
committerMatthias Klose <doko@ubuntu.com>
Mon, 9 Sep 2024 13:48:20 +0000 (15:48 +0200)
commit3b03d8656900312ba6fd0ea49da5dcdde02c8745
treeaf5f25c566afd262f4a64548ac46db99577917b6
parentff616db08a18fa7f6b614689f0a28f3f8b5caa62
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