Re: Lots of components updated going from -p1 to -p2

From: Baptiste Daroussin <bapt_at_freebsd.org>
Date: Wed, 26 Feb 2025 09:39:40 UTC
On Fri 21 Feb 21:47, Antranig Vartanian wrote:
> I thought that’s the point… no?
> 
> I mean the system was compiled as a whole, should be shipped as a whole. But 
> the real comparison that I want to know is, how long did it take compared to 
> freebsd-update/freebsd-rustdate ? and did you create a boot environment 
> manually or was it created automatically?
> 
> Cheers,


this is absolutely not how it works... it builds the system as a whole, then
compare the generated packages with the packages of the previous build
(reproducible build is used) keep the old version of all the packages that
haven't changed and only publishes as -p1 the packages which have effectively
changed.

This comparison is what is broken on releng/14.2 which makes it each patch
update reinstall everything :(

As for the time spent, on 14.1 where it works as expect it is very fast.
On current where, I don't upgrade my current box every week and it is very fast
as well, hard to determine how long is taken on base packages vs ports packages
because I simply run pkg upgrade so it upgrades both.

I am running that for more than a year without any problem.

About boot environement, pkg does nothing about boot environment, if someone
wants to deal boot env, they have to either create a script that wraps pkg
upgrade (this is planned for major upgrades) or write some pkg plugins/hooks.

Best regards,
Bapt