Skip to content
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

Enable determinstic archives by default in GNU ar #14860

Closed
wants to merge 2 commits into from

Conversation

dankegel
Copy link

Timestamps and user ids are not really needed in
ar archives, and get in the way of reproducible builds,
so let's make -D the default.

freebsd did it a year ago: https://svnweb.freebsd.org/ports?view=revision&revision=416639

debian did it way back in 2.25-6: https://wiki.debian.org/ReproducibleBuilds/TimestampsInStaticLibraries

Fixes #14859

See also https://reproducible-builds.org/

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

Dan Kegel added 2 commits June 22, 2017 19:21
Timestamps and user ids are not really needed in
ar archives, and get in the way of reproducible builds,
so let's make -D the default.

freebsd did it a year ago: https://svnweb.freebsd.org/ports?view=revision&revision=416639

debian did it way back in 2.25-6: https://wiki.debian.org/ReproducibleBuilds/TimestampsInStaticLibraries

Fixes Homebrew#14859

See also https://reproducible-builds.org/
dankegel pushed a commit to dankegel/fpm that referenced this pull request Jun 23, 2017
… builds

Needed e.g. on mac, where system ar is old, but gnu ar is available as 'gar' via 'brew install binutils'.

Eventually this commit can be reverted, once all ar's in existence default to no timestamps.

(cf. Homebrew/homebrew-core#14860 but don't wait for that to land)
@dunn dunn closed this in a05f19a Jun 24, 2017
@dunn
Copy link
Contributor

dunn commented Jun 24, 2017

Sounds good to me.

Merged as a05f19a, thanks for contributing to Homebrew!

@dankegel dankegel deleted the reproducible-builds branch June 27, 2017 01:16
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants