Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Aug 2025 14:47:34 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Santiago Martinez <sm@codenetworks.net>
Cc:        vermaden <vermaden@interia.pl>, Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee>, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-pkgbase@freebsd.org
Subject:   Re: PKGBASE Removes FreeBSD Base System Feature
Message-ID:  <79429D6B-7948-4D27-9F14-664CC075547A@FreeBSD.org>
In-Reply-To: <D838DD0A-9411-4788-83E5-6E573BFAE0DD@codenetworks.net>
References:  <asusitunphtidxxqutxc@slsv> <D838DD0A-9411-4788-83E5-6E573BFAE0DD@codenetworks.net>

index | next in thread | previous in thread | raw e-mail

On 8 Aug 2025, at 14:20, Santiago Martinez <sm@codenetworks.net> wrote:
> 
> For example “pkg upgrade -t base”, to act on FreeBSD base and “pkg upgrade” to perform actions on non-base packages.

You are assuming that there are two repositories.  Since its introduction, `pkg` has supported an unlimited number of repositories, and in a pkgbase world, I’d expect large-scale systems to have four:

 - Packages built from base.
 - Packages built from ports that are tied to the kernel version.
 - Packages built from ports that are expected to work across all of the supported base systems in a major release series.
 - Packages built from other sources for local deployment.

The last three exist today even without pkgbase.  There may also be other third-party (non-ports) package sets.

You can already act on a specific repository by passing -r to `pkg`.  The thing you seem to want is for *some* actions to not apply to all repositories.  I think that will lead to far more confusion in the long term.  For example:

If I do `pkg upgrade`, do you expect everything to be upgraded?  I do.  And if it doesn’t, I expect there will be a lot of confusion because a minor release dropping out of the support window will change the minimum requirements for the base system and so failing to upgrade base-system packages will cause breakage in packages built from ports.  

So if we avoid that breakage, and say that `pkg upgrade` applies to all packages, but `pkg delete -a` doesn’t.  Now we have inconsistency across subcommands.  And that’s also confusing.

David



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79429D6B-7948-4D27-9F14-664CC075547A>