Page MenuHomeFreeBSD

newvers: Add a builddir parameter
ClosedPublic

Authored by markj on Jun 20 2025, 5:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 7:51 PM
Unknown Object (File)
Sat, Oct 11, 5:56 PM
Unknown Object (File)
Thu, Oct 9, 5:01 PM
Unknown Object (File)
Thu, Oct 2, 5:10 PM
Unknown Object (File)
Thu, Oct 2, 9:18 AM
Unknown Object (File)
Thu, Oct 2, 8:21 AM
Unknown Object (File)
Tue, Sep 30, 8:57 AM
Unknown Object (File)
Sat, Sep 20, 7:27 PM
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 Not Applicable
Unit
Tests Not Applicable

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.