Page MenuHomeFreeBSD

newvers: Add a builddir parameter
ClosedPublic

Authored by markj on Jun 20 2025, 5:13 PM.
Tags
None
Referenced Files
F169236107: D50954.id157388.diff
Tue, Sep 1, 12:16 AM
F169191835: D50954.id160749.diff
Mon, Aug 31, 6:49 PM
Unknown Object (File)
Sun, Aug 30, 10:27 PM
Unknown Object (File)
Sun, Aug 30, 8:20 PM
Unknown Object (File)
Sun, Aug 30, 5:38 AM
Unknown Object (File)
Fri, Aug 28, 6:41 PM
Unknown Object (File)
Wed, Aug 26, 6:48 PM
Unknown Object (File)
Tue, Aug 25, 11:02 AM
Subscribers
None

Details

Summary

When reproducible builds are configured, we should use /usr/obj as the
canonical objdir. Add a parameter to newvers.sh to ensure that build
metadata is reproducible.

Diff Detail

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

Event Timeline

markj requested review of this revision.Jun 20 2025, 5:13 PM
markj created this revision.
This revision is now accepted and ready to land.Jun 20 2025, 6:21 PM

I believe this one is generally not necessary in practice, as in reproducible build mode we already elide the objdir entirely.

I believe this one is generally not necessary in practice, as in reproducible build mode we already elide the objdir entirely.

Note that d, derived from $(pwd), is embedded directly into VERSTR. Without this change, when running uname -v, you'll see the value of $(pwd) embedded in the kernel build directory.

This revision was automatically updated to reflect the committed changes.