jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Thu, 17 Oct 2024 20:50:46 +0000 (22:50 +0200)
committerMoritz Mühlenhoff <jmm@debian.org>
Thu, 17 Oct 2024 20:50:46 +0000 (22:50 +0200)
commit57ac0db6c808f90c74ab92b31a8293176a6afca8
treea81cadfb4ead31e45345c8fdf3c739f8fa06268a
parentb9d6d20ce5a8c95e5052e2b616bd87593897aa2f
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