Gentoo Archives: gentoo-portage-dev

From: Paul Smith <pausmith@××××××××××××××.com>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] Portage choosing wrong version?
Date: Thu, 12 Feb 2004 18:01:06
Message-Id: 16427.48986.501829.428875@lemming.engeast.baynetworks.com
1 Hi all. I have a strange situation and I'm wondering if anyone can help
2 me understand it or give me tips on how to better understand it.
3
4 I'm using Portage (2.0.49) to manage a set of locally-constructed
5 ebuilds; these are not in the Gentoo system.
6
7 I'm installing them through a "collection" ebuild, which contains
8 nothing but a DEPENDS line, say collection-1.0.ebuild:
9
10 DEPENDS=" ~category/foo-1.0 ~category/bar-1.0 ~category/baz-1.0 "
11
12 In my packages file I say:
13
14 * ~category/collection-1.0
15
16
17 Also the bar-1.0 and baz-1.0 packages depend on foo and they both say
18 so, like this:
19
20 DEPENDS=" category/foo "
21
22
23 Now, I also have a foo-1.1, bar-1.1, and baz-1.1. The bar-1.1 and baz-1.1
24 packages depend on foo-1.1 and they both say so, like this:
25
26 DEPENDS=" ~category/foo-1.1 "
27
28 However, I want to install the older 1.0 versions right now, not the
29 newer ones.
30
31
32 Now if none of these packages are installed and I run "emerge system",
33 something very bizarre happens: emerge _FIRST_ installs the latest
34 category/foo-1.1 package, then it tries to build the other packages,
35 which fail because they won't work with newer versions of foo!
36
37 Then, if I run "emerge -p system" I see that emerge will, later on,
38 replace the foo-1.1 it just installed with foo-1.0.
39
40
41 Doesn't Portage have enough smarts to realize that if the collection
42 package depends on a specific version and other packages depend on any
43 version, that it should just install the specific version to satisfy the
44 dependency relationship?
45
46 If not, this is very bad! How can I work with this? Surely I don't
47 have to go back to every old version and update all their DEPENDS lines
48 every time I come out with a new package which is not backward
49 compatible?
50
51
52 And, is there any command I can run or option I can use to get a more
53 detailed description of exactly how emerge is resolving dependency
54 relationships?
55
56
57 Thanks!
58
59 --
60 -------------------------------------------------------------------------------
61 Paul D. Smith <psmith@××××××××××××××.com> HASMAT: HA Software Mthds & Tools
62 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
63 -------------------------------------------------------------------------------
64 These are my opinions---Nortel Networks takes no responsibility for them.
65
66 --
67 gentoo-portage-dev@g.o mailing list