Re: git: 74a6bb524e5b - main - Makefile: Don't allow install{world,kernel} with pkgbase

From: Lexi Winter <ivy_at_freebsd.org>
Date: Mon, 20 Oct 2025 15:13:39 UTC
Shawn Webb wrote in <tay6sfxcr7wlzftytwjokj3yyjykremmw27fnt5zmnon22nub4@fjlgscm62z4z>:
> On Mon, Oct 20, 2025, 8:42 AM Lexi Winter <ivy@freebsd.org> wrote:
> >      Makefile: Don't allow install{world,kernel} with pkgbase
> 
> I'm somewhat thinking of reverting this commit until
> install{kernel,world} are taught the notion of pkgbase. It just seems
> like the kind of thing that's gonna surprise our users (in a
> not-so-fun way.)

if you revert this commit, your users will end up with a broken system
because the pkg(8) database will be out of sync with the installed
system.  this will cause issues when running pkg(8), for example
overwriting files from the source installation with files from packages.

if you want to switch from pkgbase to not-pkgbase (regardless of whether
you update from source or not), you *must* unregister the installed base
system packages first.  currently we don't have a good way to do that
for an installed system, other than removing all ports, deleting the
package database, then reinstalling ports.  however, that doesn't change
the fact that *not* doing that is a very bad idea.