-
Notifications
You must be signed in to change notification settings - Fork 937
configury: make build reproducible #3779
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/bin/sh | ||
|
|
||
| # Copyright (c) 2017 Research Organization for Information Science | ||
| # and Technology (RIST). All rights reserved. | ||
|
|
||
| date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be good to put a comment here in this file explaining why it exists. Otherwise, Future People will wonder why there's a 1-line script to run the It might actually be good to put a 1-line comment in most/all places we do |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this does what you expect. My reading of https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal#Bash_.2F_POSIX_shell is that it expects
SOURCE_DATE_EPOCHto be of the form 'YYYY-MM-DD'. If you pass a string of the form 'YYYY-MM-DD' tolocaltime(), you get... weirdness:Did you mean:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it is a plain int. In the linked example, you can see
${SOURCE_DATE_EPOCH:-$(date +%s)}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, ok. So this comment on the review is probably moot. But my other comments are still relevant.