Page MenuHomeFreeBSD

Makefile.inc1: Remove non-NO_ROOT cases from distributeworld
ClosedPublic

Authored by emaste on Dec 15 2024, 9:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 2, 9:38 AM
Unknown Object (File)
Fri, Nov 28, 4:42 AM
Unknown Object (File)
Thu, Nov 27, 10:48 PM
Unknown Object (File)
Tue, Nov 18, 9:23 PM
Unknown Object (File)
Nov 8 2025, 1:04 AM
Unknown Object (File)
Oct 26 2025, 1:21 AM
Unknown Object (File)
Oct 23 2025, 10:51 AM
Unknown Object (File)
Oct 20 2025, 8:25 AM
Subscribers

Details

Summary
As of commit 41adc5f29ba6 ("release: Always use NO_ROOT for distribute*
and package*") we pass -NO_ROOT for the release image artifact build
targets.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

I wouldn't be surprised if we find some cases where people have to adapt to this change, but I think it's the right one. Eventually we might even want to forbid root entirely for this target, but that may be a bridge too far.

Makefile.inc1
1006

..?

This revision is now accepted and ready to land.Dec 16 2024, 9:22 PM

I wouldn't be surprised if we find some cases where people have to adapt to this change, but I think it's the right one.

Yes - it just enforces what we always set in release/Makefile now, but indeed there may be downstream users of our build infrastructure that will need to adapt. I should send a note to appropriate mailing list(s) about unprivileged and reproducible builds and NO_ROOT.

Eventually we might even want to forbid root entirely for this target, but that may be a bridge too far.

We could at least emit a warning that running this target at root is not recommended.