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
Make the build reproducible #376
Conversation
|
Please sign off your commit to make the DCO bot happy. Are the docs considered part of the tpm2-pytss package on Debian? I couldn't find any existing packages. |
Yes. Look for the (Added the sign-off line..) |
Would it be better to get the year of last commit from git or would requiring git for the build be an issue? |
Codecov Report
@@ Coverage Diff @@
## master #376 +/- ##
==========================================
+ Coverage 88.41% 88.80% +0.39%
==========================================
Files 18 18
Lines 6394 6394
Branches 979 828 -151
==========================================
+ Hits 5653 5678 +25
+ Misses 605 583 -22
+ Partials 136 133 -3
|
GIt (the |
Whilst working on the Reproducible Builds effort [0] I noticed that tpm2-pytss could not be built reproducibly. This is due to the documentation embedding the current build date. This PR results in the build system using a date seeded from the `SOURCE_DATE_EPOCH` environment variable... if it exists [1]. I originally filed this in Debian as bug #1022777 [2]. [0] https://reproducible-builds.org/ [1] https://reproducible-builds.org/specs/source-date-epoch/ [2] https://bugs.debian.org/1022777 Signed-off-by: Chris Lamb <lamby@debian.org>
Whilst working on the Reproducible Builds effort I noticed that tpm2-pytss could not be built reproducibly.
This is due to the documentation embedding the current build date. This PR results in the build system using a date seeded from the
SOURCE_DATE_EPOCHenvironment variable... if it exists.I originally filed this in Debian as bug #1022777.