* Re: [gentoo-portage-dev] precisions on installed packages' dependencies
@ 2020-03-27 13:59 99% ` michael.lienhardt
0 siblings, 0 replies; 1+ results
From: michael.lienhardt @ 2020-03-27 13:59 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Zac Medico
----- Alec Warner <antarus@gentoo.org> a écrit :
> On Tue, Mar 24, 2020 at 11:31 AM <michael.lienhardt@laposte.net> wrote:
> > However, I still doubt that only storing the soname dependencies is enough.
> > Consider package A (that cannot be recompiled) that depends on package B
> > which provides lib L.so.
> > B is recompiled with different use flags, which put different
> > functionalities in L.so.
> > The dependencies of A are still satisfied (B is installed, L.so is
> > available), but since the content of L.so changed, A cannot execute anymore.
> > Hypothetically, can this scenario occur?
> > Can this scenario occur in practice?
> > Is there a way in emerge/portage to avoid it?
> > You have far more experience than me on this, and it would be nice for me
> > to know what I'm up against.
>
> A lot of this has to do with the specifics of how package managers manage
> system state, as well as various quirks of subsets of the tree. For
> example, a perl upgrade (X->Y) will often break perl modules who expect
> perl-X, but get perl-Y. So one fix is to try to keep perl-X installed (so
> we SLOT perl and have N perls installed.) Then you need to decide which
> version of perl to build things against (X or Y, or both?) We took this
> tactic in the python ecosystem; but perl is not slotted in Gentoo, and so
> upgrading perl breaks all perl modules. There is a tool
> (gentoo-perl-cleaner) that will walk the deptree and fix all of these
> broken packages that you run after an upgrade.
>
> I'm not sure it's strictly avoidable. You could build perl-Y, then rebuild
> all perl-modules against perl-Y, then merge the entire result to the
> livefs. This will reduce the breakage time but likely not eliminate it;
> plus it seems hard to implement in practice without modern filesystem tools
> (overlayfs, btrfs, zfs or similar tech to make it atomic.) It also doesn't
> account for executing code. What happens to perl-X code that is executing
> when you unmerge perl-X? The short answer is that code might break and
> 'proper' management means you should restart services after an upgrade
> (something Gentoo doesn't typically do; but is common in Debian for
> example.)
Many thanks for this answer.
To sum up what I understood, the problem is not really the dependencies, but which recompilation (and service restart) are triggered with an update.
In gentoo, there is the ":=" slot operator (and others similar) in dependencies that trigger the recompilation when the dependency's slot change, but this is the only existing mechanism.
And this is why every time perl changes, the compilation of its modules is not triggered and they are most probably broken.
Correct?
And then, in this context, keeping the installed packages' dependencies consistent is up to debate: packages will get broken in any case...
It is clearly impossible to have a tool that automatically detect all implementation dependency breakage.
Again, there's something I probably don't see: why was slot operators chosen (among other possibilities) as a mechanism to trigger recompilation?
I'm very grateful to you all for the time you take to read and answer my questions.
Best,
Michael
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
[not found] <1928379103.2245185.1585313194988.JavaMail.zimbra@laposte.net>
2020-03-26 8:06 ` [gentoo-portage-dev] precisions on installed packages' dependencies Alec Warner
2020-03-27 13:59 99% ` michael.lienhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox