Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2021 20:57:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 258357] pkgbase upgrade leaves FreeBSD-utilities effectively uninstalled
Message-ID:  <bug-258357-227-xPtXmZAtLX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258357-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258357-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258357

--- Comment #10 from Mark Johnston <markj@FreeBSD.org> ---
I dug into this a bit more and was able to fix it locally.  Basically, when
splitting an upgrade into separate remove and install jobs, we assign the
remove job a special type, PKG_SOLVED_UPGRADE_REMOVE, not PKG_SOLVED_DELETE=
.=20
I'm not sure exactly why that's needed, as they are mostly handled identica=
lly
outside of the job prioritization code, and I still don't really understand
that code.

After splitting jobs and assigning priorities, we sort the job list accordi=
ng
to the numeric priority.  When two jobs have identical priority, higher
precedence is given to jobs of type not equal to PKG_SOLVED_DELETE.  If I
change this to PKG_SOLVED_DELETE || PKG_SOLVED_UPGRADE_REMOVE, then the job
list gets sorted in such a way that the problem doesn't occur.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258357-227-xPtXmZAtLX>