Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Use SOURCE_DATE_EPOCH instead of current year in copyright message to… #476

Closed
wants to merge 1 commit into from
Closed

Use SOURCE_DATE_EPOCH instead of current year in copyright message to… #476

wants to merge 1 commit into from

Conversation

fasterit
Copy link
Collaborator

@fasterit
Copy link
Collaborator Author

fasterit commented May 1, 2016

Alexis Bienvenüe has proposed a similar patch in Debian bug #822963 that may be more robust on BSDs. Could be worth checking on these platforms. Feedback welcome here and/or on the Debian bug report.
The essence is:

+-year=$(date +%Y)
++SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}"
++year=$(date -u -d "@$SOURCE_DATE_EPOCH" "+%Y" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+%Y" 2>/dev/null || date -u "+%Y")

... to make htop 2.0.1+ build reproducibly.
Also see https://tests.reproducible-builds.org/rb-pkg/unstable/amd64/htop.html while builds are still unreproducible.

hishamhm added a commit that referenced this pull request May 4, 2016
Use a SOURCE_DATA_EPOCH friendly date.
Suggested by @fasterit in #476.
@hishamhm
Copy link
Owner

hishamhm commented May 4, 2016

@fasterit Thank you! I'll use these two lines from your last comment.

@hishamhm hishamhm closed this May 4, 2016
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