HomeFreeBSD

Makefile: Don't allow install{world,kernel} with pkgbase

Description

Makefile: Don't allow install{world,kernel} with pkgbase

Using these targets on a pkgbase system will cause the installed system
to become out of sync with the package database, which is almost certain
to cause issues the next time pkg(8) is used.

To prevent users doing this accidentally, disallow install* if we detect
that FreeBSD-runtime is installed in the target. The check can be
overridden with DESTDIR=/ for users who are sure they want to do this.

MFC after: 3 days
Reviewed by: emaste
Sponsored by: https://www.patreon.com/bsdivy
Differential Revision: https://reviews.freebsd.org/D52879

(cherry picked from commit 74a6bb524e5b9ad654a9acc5da5c195f406717b5)

Details

Provenance
ivyAuthored on Oct 17 2025, 7:06 PM
cpercivaCommitted on Oct 23 2025, 12:36 AM
Reviewer
emaste
Differential Revision
D52879: Makefile: Don't allow install{world,kernel} with pkgbase
Parents
rG68897925cad0: ncurses: Move utilities to the ncurses package
Branches
Unknown
Tags
Unknown