-
-
Notifications
You must be signed in to change notification settings - Fork 321
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
Do not store build host name #3312
Conversation
8d5f445
to
19cd3e4
Compare
Would it be better to have REPRODUCiBLE_BUILDS as the key environment variable, or is SOURCE_DATE_EPOCH a standard defined for all reproducible builds? |
So far, everyone wanting reproducible build results sets SOURCE_DATE_EPOCH - defined in https://reproducible-builds.org/specs/source-date-epoch/ ; adding another variable would be possible but mean extra effort for people to discover and set it. |
If I'm getting this, this patch proposes, for the construction of an scons release, to honor SOURCE_DATE_EPOCH if it is set, as a flag for not deriving the build host, but not otherwise used. Shouldn't it also be used to fill in the date field, which is currently the time scons was run, and thus will vary? Not sure I think "reproducible" is the best magic string, maybe with a leading underscore to mark it as special? It also looks like the same can be achieved by externally setting BUILD_SYSTEM to the magic string, though as noted, that's something extra for people to discover. As one more nit, at the very least some more docu is needed on this... for example, if you don't pass in DEVELOPER it will still be set by inspection, and thus give you different results if different people do the build. |
if reproducible builds are wanted. See https://reproducible-builds.org/ for why this is good. This affected scons itself, which differed in the line __buildsys__ = "..."
DATE is already using SOURCE_DATE_EPOCH since #3221 I updated the commit to use _reproducible to mark it as more special and added a 2nd commit for DEVELOPER |
O.k. If that's the common practice. I'll go ahead and merge. |
Ah, I missed the earlier change. Looking okay to me, but we'll wait for the Boss :) Does scons need to be taught anything as far as producing reproducible builds? (as opposed to the build of scons itself) Unrelated, just curious. |
master/src/CHANGES.txt
directory (and read theREADME.txt
in that directory)Do not store build host name
if reproducible builds are wanted.
See https://reproducible-builds.org/ for why this is good.
This affected scons itself, which differed in the line