Page MenuHomeFreeBSD

Makefile.inc1: Make package timestamps reproducible
ClosedPublic

Authored by emaste on Feb 28 2025, 12:48 PM.
Tags
None
Referenced Files
F151034228: D49165.id151668.diff
Sun, Apr 5, 2:04 PM
F150992630: D49165.id151680.diff
Sun, Apr 5, 8:40 AM
Unknown Object (File)
Thu, Mar 19, 1:53 AM
Unknown Object (File)
Mar 5 2026, 6:08 PM
Unknown Object (File)
Feb 8 2026, 9:09 AM
Unknown Object (File)
Jan 31 2026, 5:13 AM
Unknown Object (File)
Jan 30 2026, 6:51 AM
Unknown Object (File)
Jan 30 2026, 5:08 AM

Details

Summary

Set package archive timestamps based on most recent source commit timestamp.

Suggested by: bapt

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.

I'd like to record the timestamp in a file that we can include in src tarballs so that we can reproduce the build w/ hash, timestamp etc. without having to build from a git repo but there are details to sort out (D48718 proposes adding the timestamp to vers.c). @bapt suggested the approach in this review and it's a good interim improvement.

This revision is now accepted and ready to land.Feb 28 2025, 2:10 PM
emaste added inline comments.
Makefile.inc1
601

git -C (rather than --work-tree) was the necessary bit to support worktrees

@allanjude thanks for looking, sorry I missed your Reviewed by