Skip to content

Use recommended reproducibility options for tar#62

Merged
ambv merged 1 commit intopython:masterfrom
sethmlarson:repro-tarballs
Oct 5, 2023
Merged

Use recommended reproducibility options for tar#62
ambv merged 1 commit intopython:masterfrom
sethmlarson:repro-tarballs

Conversation

@sethmlarson
Copy link
Copy Markdown
Collaborator

Takes the reproducibility recommendations on tar archives from these sources:

As individual options:

  • Uses the commit time as the maximum mtime for tar filesystem metadata
  • Sort the entries by name
  • Set the uid and gid to 0 for tar filesystem metadata
  • Omit all the unnecessary optional metadata
  • Adds --no-name to gzip sub-command to avoid embedding the name and timestamp in the gzip stream

Using these options I was able to reproduce a build on GitHub Actions from the same build locally. Need to do more extensive testing using reprotest.

@ambv ambv merged commit 6a977f3 into python:master Oct 5, 2023
@sethmlarson sethmlarson deleted the repro-tarballs branch October 5, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants