Page MenuHomeFreeBSD

release: Use in-tree etcupdate for build
ClosedPublic

Authored by jrtc27 on Jul 19 2022, 6:18 PM.
Tags
None
Referenced Files
F132572766: D35853.id109072.diff
Sat, Oct 18, 2:16 AM
Unknown Object (File)
Fri, Oct 10, 4:39 PM
Unknown Object (File)
Fri, Oct 10, 4:39 PM
Unknown Object (File)
Fri, Oct 10, 4:39 PM
Unknown Object (File)
Fri, Oct 10, 11:03 AM
Unknown Object (File)
Thu, Sep 25, 3:02 AM
Unknown Object (File)
Aug 28 2025, 12:29 AM
Unknown Object (File)
Aug 19 2025, 6:40 AM
Subscribers

Details

Summary

This is in preparation for non-FreeBSD and -DNO_ROOT builds. On
non-FreeBSD there is no host etcupdate to use, and -DNO_ROOT will
require additional flags that may not be supported by the host's
etcupdate when building on FreeBSD. Moreover, there's no guarantee
anyway that the host's etcupdate is quite right for the current tree;
upgrading from source only requires that the host's is good enough for
-p which just manually copies master.passwd and group, the rest of the
upgrade is done post-installworld. For example, should a new set of
autogenerated files be added that etcupdate is taught about, the host
won't know about them and so the bootstrapped current tree will
incorrectly contain them, leading to spurious diffs on the installed
system.

Obtained from: CheriBSD

Diff Detail

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