Page MenuHomeFreeBSD

release: Fail the build if pkg can't be installed
ClosedPublic

Authored by ivy on Sat, Sep 20, 2:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 3, 5:10 AM
Unknown Object (File)
Mon, Sep 29, 5:54 PM
Unknown Object (File)
Sat, Sep 27, 6:23 PM
Unknown Object (File)
Fri, Sep 26, 5:30 PM
Unknown Object (File)
Fri, Sep 26, 5:17 PM
Unknown Object (File)
Sat, Sep 20, 3:31 PM
Unknown Object (File)
Sat, Sep 20, 2:19 PM
Unknown Object (File)
Sat, Sep 20, 1:16 PM

Details

Summary

If we can't install pkg(8) on the media, instead of ignoring the error,
fail the build. This avoids silently creating media which doesn't have
pkg(8) on, and therefore can't be used for a pkgbase install.

Installing pkg(8) can still be entirely disabled by setting NOPKG.

Diff Detail

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

Event Timeline

ivy requested review of this revision.Sat, Sep 20, 2:33 AM

This LGTM.

However, this has made me wonder if we handle -DNOPKG -DPKGBASE well (by erroring out I guess).

Edit: Whoops, I forgot the option changed to -DNOPKGBASE. The potentially problematic case is setting NOPKG but not NOPKGBASE.

This revision is now accepted and ready to land.Tue, Sep 23, 1:16 PM

The potentially problematic case is setting NOPKG but not NOPKGBASE.

i haven't forgotten this, but i'm going to land this change as-is, then add some sanity checking in a separate review.