RFR: 8279182: MakeZipReproducible ZipEntry timestamps not localized to UTC

Erik Joelsson erikj at openjdk.java.net
Thu Dec 23 13:42:21 UTC 2021


On Thu, 23 Dec 2021 09:39:19 GMT, Andrew Leonard <aleonard at openjdk.org> wrote:

> MakeZipReproducible was added to enable reproducible building of src.zip. However, as ZipEntry timestamps are a "localized" date with no zone, the specified epoch instant was getting localized in whatever the building timezone was, hence src.zip built from the same source in different zones would differ.
> The timestamp should be localized to UTC (like for jar, jmod entries), this PR ensures this.
> 
> Signed-off-by: Andrew Leonard <anleonar at redhat.com>

Marked as reviewed by erikj (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk/pull/6926



More information about the build-dev mailing list