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

Allow to override build date #2049

Merged
merged 1 commit into from Mar 27, 2019
Merged

Allow to override build date #2049

merged 1 commit into from Mar 27, 2019

Conversation

bmwiedemann
Copy link
Contributor

Allow to override build date with SOURCE_DATE_EPOCH.

See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of the environment variable.

Also uses gmtime/UTC to be independent of timezones.

This PR was done as part of my work on reproducible builds for openSUSE.

See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of the environment variable.

Also uses gmtime/UTC to be independent of timezones.
@brejoc
Copy link
Member

brejoc commented Mar 27, 2019

@bmwiedemann Thanks! And thanks for the links with the explanation. Btw, is OBS already able to do reproducible builds?

@brejoc brejoc merged commit 6777610 into cobbler:master Mar 27, 2019
@bmwiedemann
Copy link
Contributor Author

yes, OBS is able to do reproducible and verifiable builds.
https://en.opensuse.org/openSUSE:Reproducible_Builds documents the 4 rpm macros you need in the prjconf to also have bit-identical rpm metadata.

https://build.opensuse.org/project/prjconf/Application:ERP:GNUHealth:Factory
already uses it, if you want to see how it looks.

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.

None yet

2 participants