jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sat, 16 Sep 2023 11:35:34 +0000 (12:35 +0100)
committerMatthias Klose <doko@ubuntu.com>
Sat, 16 Sep 2023 11:35:34 +0000 (12:35 +0100)
commit317dc5f257f06de7aee496881349eef28d126f13
treef8b2a81f492d05d75cd0acfcb7a58b57e665c109
parent29e4a6f13e28f8687666a0f4d1a39b188f102a88
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