RFR: 8276743: Make openjdk build Zip Archive generation "reproducible"
Erik Joelsson
erikj at openjdk.java.net
Tue Nov 9 17:34:38 UTC 2021
On Tue, 9 Nov 2021 12:59:17 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:
> This PR adds a new openjdk build tool GenerateZip, which generates a final "zip" file from an input folder, and creates it in a deterministic way, ensuring ordering and timestamps are set as specified.
>
> Using this tool in ZipArchive.gmk will ensure src.zip is then created deterministically.
>
> Signed-off-by: Andrew Leonard <anleonar at redhat.com>
I agree that ideally reproducibility should be on by default, but if there is a cost, then you can be sure OpenJDK developers will be looking for a way to remove it for faster turnaround times. I would propose a specific configure parameter for this specific case, reproducible zip files, that is default on for release builds and off for debug builds (debug builds aren't reproducible by nature) and let the existing meta flag also control the value of this new flag.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6311
More information about the build-dev
mailing list