Page MenuHomeFreeBSD

etcupdate: Warn if the tree hasn't been built
ClosedPublic

Authored by des on Jun 8 2026, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 19, 5:09 AM
Unknown Object (File)
Sat, Jul 18, 6:00 PM
Unknown Object (File)
Wed, Jul 15, 3:52 PM
Unknown Object (File)
Wed, Jul 15, 10:56 AM
Unknown Object (File)
Wed, Jul 15, 7:25 AM
Unknown Object (File)
Wed, Jul 15, 7:25 AM
Unknown Object (File)
Wed, Jul 8, 1:01 PM
Unknown Object (File)
Wed, Jul 8, 6:05 AM
Subscribers

Details

Summary

Warn the user before trying make installetc if etcupdate was invoked
without -b (or with -B) and it appears that make buildetc hasn't
already been run (which usually happens as part of make buildworld).

MFC after: 1 week

Diff Detail

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

Event Timeline

des requested review of this revision.Jun 8 2026, 4:38 PM
usr.sbin/etcupdate/etcupdate.sh
228

Should this bard fail instead of just being a warning?

1913

To avoid ambiguity with an output file that etcupdate build places into a tree.

des marked an inline comment as done.Jun 18 2026, 1:22 PM
des added inline comments.
usr.sbin/etcupdate/etcupdate.sh
228

If one day the build stops producing the file we chose as a sentinel and nobody updates etcupdate, failing here would prevent etcupdate from running for no good reason. Not failing here, however, simply leads to failing in make installetc a little while later. Since the output goes to the log, the warning remains visible on the console when that happens.

This revision is now accepted and ready to land.Mon, Jun 22, 5:38 PM
This revision was automatically updated to reflect the committed changes.