Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] portage and conflict resolutions!? (really is about =cat/pkg-${VER}* dependencies)
Date: Wed, 05 Aug 2009 20:43:28
Message-Id: 4A79EF0E.6030502@gentoo.org
In Reply to: [gentoo-dev] portage and conflict resolutions!? (really is about =cat/pkg-${VER}* dependencies) by Federico Ferri
1 Federico Ferri wrote:
2 > I can see also why portage is failing:
3 > when (trying to) upgrading the first package, the whole package set
4 > enters into a *transient* state, which is not valid for normal usage
5 > (that is: one 0.14 lib, and all other 0.13 libs), but still has to be
6 > valid in order for portage being able to upgrade correctly all the
7 > packages, because when portage will end [successfully!], the system
8 > will be again in a valid state.
9
10 It seems that the root of the problem is in the
11 app-pda/synce-gnomevfs-0.13 dependencies. The
12 =app-pda/synce-librapi2-0.13* atom is causing the conflict. You'll
13 either need to adjust the dependencies of synce-gnomevfs-0.13 (if
14 possible), or else get a new version that's compatible with
15 synce-librapi2-0.14.
16
17 > what I am going to propose here is a resolution strategy for this
18 > (although this whole thing simply tells me that portage misses some
19 > knowledge about the problem, like for example that dependencies should
20 > be enforced only at transaction boundaries, or simply that we have a
21 > class of dependencies that is irrelevant while system is in transient
22 > state)
23 >
24 > but, without trying to introduce overcomplicated solutions, as an
25 > user, I could solve the initial problem very easily:
26 > resolution strategy for it is to unmerge the old synce-0.13 packages,
27 > then the user will be able to install 0.14 packages.
28
29 As said above, the problem is in the synce-gnomevfs-0.13
30 dependencies, and there's nothing portage can do to change that.
31
32 > so, if the user can do it, why can't portage handle it? (so that even
33 > a not-so-smart user could painlessly get out of this mess)
34
35 FWIW, portage can resolve slot conflicts like this automatically,
36 thanks to the patches from these two bugs:
37
38 http://bugs.gentoo.org/show_bug.cgi?id=137562
39 http://bugs.gentoo.org/show_bug.cgi?id=275217
40
41 I plan to release this code in portage-2.1.6.14 in approximately 2
42 weeks.
43 --
44 Thanks,
45 Zac

Replies