[Bug 259785] pkgbase installation order is underspecified

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 26 Jul 2024 13:17:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259785

--- Comment #4 from Gleb Popov <arrowd@FreeBSD.org> ---
(In reply to Mark Johnston from comment #3)
> That would help, but it's possible that pkgbase packages will have some post-install scripts that rely on other packages.

I believe this is an extremely rare situation in Ports and if it happens then
it is post-install scripts that should be fixed. By delaying the execution via
triggers, for example.

Anyways, I don't know much about pkgbase, why do pkgbase packages have
post-install scripts at all?

> IMO the right answer is that some packages must be marked such that the solver does not split the upgrade job for them.

Hmm, pkg performs that splitting because it has to. We can't just disable it,
otherwise there would be no splits at all. If a file belonging to one packages
is moved to an another on during the upgrade, but the dependence is the other
way around, we have to split and it can't be avoided. Or am I missing
something?

-- 
You are receiving this mail because:
You are on the CC list for the bug.