Gentoo Archives: gentoo-portage-dev

From: Marius Mauch <genone@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] dep resolution weirdness
Date: Sat, 17 Feb 2007 12:05:30
Message-Id: 20070217130649.10f42f90@sheridan.genone.homeip.net
In Reply to: [gentoo-portage-dev] dep resolution weirdness by George Shapovalov
1 On Sat, 17 Feb 2007 12:30:31 +0100
2 George Shapovalov <george@g.o> wrote:
3
4 > Hi guys.
5 >
6 > I am quite confused by the following:
7 >
8 > aldar ~ # emerge -puD world --tree
9 > These are the packages that would be merged, in reverse order:
10 > Calculating world dependencies... done!
11 > [nomerge ] dev-ada/cbind-6.0
12 > [nomerge ] virtual/gnat-4.1
13 > [ebuild UD] dev-lang/gnat-gcc-4.1.1 [4.1.2]
14 >
15 > aldar ~ # emerge -puD cbind --tree
16 > These are the packages that would be merged, in reverse order:
17 > Calculating dependencies... done!
18 >
19 > (or, for that matter:
20 > aldar gnat # e -puD virtual/gnat
21 > These are the packages that would be merged, in order:
22 > Calculating dependencies... done!
23 >
24 > The relevant dependency lines are here:
25 > dev-ada/cbind: DEPEND="virtual/gnat"
26 >
27 > virtual/gnat-4.1:
28 > RDEPEND="=dev-lang/gnat-gcc-4.1*"
29 > DEPEND=""
30 >
31 > (and virtual/gnat-3.4:
32 > RDEPEND="|| ( =dev-lang/gnat-gcc-3.4*
33 > =dev-lang/gnat-gpl-3.4* )"
34 > DEPEND=""
35 > although it looks like this one is not considered in this particular
36 > case)
37 >
38 > As you see emerge -uD world wants to downgrade gnat for some reason
39 > (which is wrong), while emerge -uD cbind (or any other Ada library
40 > that has similar dependencies) does not (which is right).
41
42 Is there maybe a different package in world that depends on
43 <=gnat-gcc-4.1.1? Anyway, you may want to look at --debug output to get
44 a clue why it wants to downgrade.
45
46 > Oh, and ~dev-lang/gnat-gcc-4.1 as RDEPEND in virtual/gnat does not
47 > work at all (just, as I understand, it should not)).
48
49 It should work, but it's not the same as the dep you stated above:
50 it would match gnat-gcc-4.1-r1, gnat-gcc-4.1-r2 and so on, but not
51 gnat-gcc-4.1.1, gnat-gcc-4.1.2, ...
52
53 Marius
54
55 --
56 Public Key at http://www.genone.de/info/gpg-key.pub
57
58 In the beginning, there was nothing. And God said, 'Let there be
59 Light.' And there was still nothing, but you could see a bit better.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-portage-dev] dep resolution weirdness George Shapovalov <george@g.o>