-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8277069: [REDO] JDK-8276743 Make openjdk build Zip Archive generation "reproducible" #6673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 Welcome back ihse! A progress list of the required criteria for merging this PR into |
I tried to find a way to make GitHub display the difference wrt the original, backed out, patch, but utterly failed. So here's a simple diff. This is the only way in which this patch differs from the original.
|
/contributor add aleonard |
@magicus |
@magicus |
@magicus This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 12 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
FWIW, I've opened https://bugs.openjdk.java.net/browse/JDK-8278165 to at least get some documentation on the limitations of ZipInputStream. |
/integrate |
Going to push as commit c93552c.
Your commit was automatically rebased without conflicts. |
This is basically Andrew's old patch that was backed out, with a single change: I'm using ZipFile instead of ZipInputStream to read in the original zip. The latter is not capable of reading the extended attributes that contain the unix permissions. (Why this is so, is not fully clear to me. What's worse, it's by no means clear from the documentation. We should probably file a follow-up bug to improve the Javadoc for ZipInputStream, warning the users to stay away if they can.)
I have also added the possibility to opt-out of reproducible building by an argument to SetupZipArchive. This is used in the closed Oracle part of the build, where we create some temporary zip files that are later discarded, and not part of the deliverables. This saves us some unnecessary overhead.
Progress
Issue
Reviewers
Contributors
<aleonard@openjdk.org>
<ihse@openjdk.org>
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6673/head:pull/6673
$ git checkout pull/6673
Update a local copy of the PR:
$ git checkout pull/6673
$ git pull https://git.openjdk.java.net/jdk pull/6673/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6673
View PR using the GUI difftool:
$ git pr show -t 6673
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6673.diff