jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Tue, 26 Dec 2023 12:18:48 +0000 (13:18 +0100)
committerMatthias Klose <doko@ubuntu.com>
Tue, 26 Dec 2023 12:18:48 +0000 (13:18 +0100)
commit61cbd65129b70fd58f7a894ab8a1741b079c0862
tree6eddbc9a94f9c6aff3f2a7d4b48eacce88c2930a
parentd51720a3af9d56e8089df67e72b12c0360c38e83
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