Page MenuHomeFreeBSD

release: Set default timestamps for makefs and mkimg outputs
AcceptedPublic

Authored by markj on Sep 4 2025, 6:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 10:18 PM
Unknown Object (File)
Thu, Oct 9, 6:56 PM
Unknown Object (File)
Thu, Oct 9, 6:56 PM
Unknown Object (File)
Thu, Oct 9, 6:56 PM
Unknown Object (File)
Thu, Oct 9, 4:32 PM
Unknown Object (File)
Fri, Oct 3, 1:27 AM
Unknown Object (File)
Thu, Sep 25, 6:27 AM
Unknown Object (File)
Tue, Sep 23, 10:43 AM
Subscribers

Details

Reviewers
bnovkov
emaste
Group Reviewers
releng
Summary

This is a step towards making release build artifacts reproducible,
assuming that the src tree was built with WITH_REPRODUCIBLE_BUILD set.

In particular, this change makes the use of reproducible timestamps the
default behaviour. We could alternately make this conditional on an
environment variable, but it seems to me that we should simply configure
this by default.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66825
Build 63708: arc lint + arc unit

Event Timeline

markj requested review of this revision.Sep 4 2025, 6:12 PM

Should this not be tied to SOURCE_DATE_EPOCH rather than some arbitrary and misleading timestamp (1st Jan 2024, which predates any release that will include this code)?

Use GITEPOCH, i.e., the commit time of the most recent commit to provide the timestamp.

This revision is now accepted and ready to land.Sep 9 2025, 10:04 AM