Diff Detail
- Repository
- rP FreeBSD ports repository
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 30749 Build 28475: arc lint + arc unit
Event Timeline
Pass SOURCE_DATE_EPOCH in build environnement if the timestamp is
defined in the distinfo
I remember a review by @emaste (I think) about this, he had a default value for the TIMESTAMP.
Yes the initial patch was: https://people.freebsd.org/~bapt/reproduciblebuild.diff
I decided in the version to drop the default TIMESTAMP as it can generate failures on packages, and prefer to only have reproducibility on packages having a timestamp (most of them should have now)
I was wondering about ports without a distinfo file (like, say, ports-mgmt/portlint) but they could gain a distinfo file with only a TIMESTAMP in it.
Mk/bsd.port.mk | ||
---|---|---|
2054 | Maybe this should be in a .else for the next .if. | |
2056 | Can you cache this using the usual mechanism so that we do not run awk in each submake? |
Seems reasonable as a first step. Do we address the python issue with this change?
Mk/bsd.port.mk | ||
---|---|---|
2054 | I think it's because we want it to be 0 also if DISTINFO_FILE exists but does not have a TIMESTAMP line |
Mark python < 3.7 as not reproducible with the new NOT_REPRODUCIBLE knob
Cache the timestamp