Page MenuHomeFreeBSD

release: Improve error handling and option logic
Needs ReviewPublic

Authored by ivy on Jan 6 2026, 1:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 22, 1:06 AM
Unknown Object (File)
Sat, Feb 21, 6:12 PM
Unknown Object (File)
Fri, Feb 20, 9:17 PM
Unknown Object (File)
Fri, Feb 20, 6:05 PM
Unknown Object (File)
Jan 20 2026, 10:17 AM
Unknown Object (File)
Jan 18 2026, 12:19 AM
Unknown Object (File)
Jan 17 2026, 6:19 AM
Unknown Object (File)
Jan 13 2026, 9:25 AM
Subscribers

Details

Reviewers
None
Group Reviewers
releng
Summary

Based on the user-provided options, define three internal variables,
_USE_PKG, _USE_PKGBASE and _USE_PORTS, to avoid having to repeat the
hard-to-read "!defined(X) || empty(X)" conditional in many places.

Add some early errors for things we know don't work, like using pkg
on non-FreeBSD platforms.

Stop ignoring errors when installing packages onto the media; if this
fails and the user is okay with that, they should set NOPKG to avoid
trying it in the first place. This avoids silently building media
which is missing expected components.

Diff Detail

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