jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Fri, 20 Dec 2024 10:09:22 +0000 (11:09 +0100)
committerMatthias Klose <doko@ubuntu.com>
Fri, 20 Dec 2024 10:09:22 +0000 (11:09 +0100)
commitc4e0bec14f09dcc701c2f01a60ea50b970c1aee8
treea428da0aa76ab53e04b5f934fe561f117d4b2f8f
parent4f7952ba338d740e7eef17625096b06ee645bd46
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