Gentoo Archives: gentoo-dev

From: Paul Smith <pausmith@××××××××××××××.com>
To: svyatogor@g.o
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How does emerge resolve dependencies?
Date: Fri, 13 Feb 2004 15:33:30
Message-Id: 16428.60994.891353.86543@lemming.engeast.baynetworks.com
In Reply to: Re: [gentoo-dev] How does emerge resolve dependencies? by Svyatogor
1 %% Svyatogor <svyatogor@g.o> writes:
2
3 s> That sounds strange to me :/ What about the output for emerge
4 s> --pretend? It wouldn't show you the smae package in the list twice,
5 s> will it?
6
7 Yep, it does show it twice. Here's a -p output:
8
9 $ emerge -p system
10
11 These are the packages that I would merge, in order:
12
13 Calculating system dependencies ...done!
14 [ebuild N ] nt-libs/tenv-1.2.0
15 [ebuild N ] nt-libs/tableView-1.1.0
16 [ebuild N ] nt-libs/ioe-1.2
17 [ebuild N ] nt-libs/hwd-1.2
18 [ebuild N F ] net-misc/sri-snmp-15.4.1.4-r1
19 [ebuild N ] net-www/lynx-2.8.4.1c
20 [ebuild N ] nt-libs/sms-3.0.0
21 [ebuild N ] nt-sysapps/nameserver-1.6.0
22 [ebuild N ] nt-libs/ed-1.0
23 [ebuild N ] nt-libs/ndi-1.2
24 [ebuild N ] nt-libs/pca200e-1.0
25 [ebuild N ] net-libs/libpcap-0.7.2
26 [ebuild N ] nt-libs/ndi-1.1
27 [ebuild N ] dev-libs/boost-1.30.2
28 [ebuild N ] nt-libs/s514-1.0
29 [ebuild N ] net-analyze/ethereal-0.10.0a
30 [ebuild N ] nt-libs/ioe-1.1
31 [ebuild N ] app-arch/gzip-1.3.3-r2
32 [ebuild N ] nt-libs/hostEth-1.0
33 [ebuild N ] sys-devel/crosstools-ppc-bin-3.2.3-r2
34 [ebuild N ] nt-libs/jfk-0.6.1
35 [ebuild N ] nt-libs/df-1.1
36 [ebuild N ] nt-configs/mse-2.0
37
38 Note here that ioe-1.2 is installed first, then later ioe-1.1 is
39 installed. Also for ndi: ndi-1.2 is installed first then a few packages
40 later ndi-1.1 is installed. The last package listed (mse-2.0) is the
41 wrapper package. That one requests ioe-1.1 and ndi-1.1.
42
43 I just found the emerge --debug option so I'm also going to look
44 carefully at that output and see if I can figure out what's going on.
45
46
47 I'm _really_ curious to understand how Portage computes the
48 dependencies, in detail. None of my hypotheses about how it might work
49 appear to fit the facts. Is there any documentation on this, and/or
50 anyone on the list who has enough of an intimate knowledge to describe
51 it with some authority?
52
53 s> The only workaround I can suggest is to mask all package versions
54 s> which are higher than those needed by latest wrapper script...
55
56 Well, the thing is I want some systems to have an older version and
57 other systems to have a newer version, so modifying the ebuilds is not
58 really going to work. Also changing packages files or similar is tricky
59 since it has to be done on many systems. I really need to be able to
60 say "emerge wrapper-2.0" and get all the 2.0-based packages installed on
61 the system.
62
63 --
64 -------------------------------------------------------------------------------
65 Paul D. Smith <psmith@××××××××××××××.com> HASMAT: HA Software Mthds & Tools
66 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
67 -------------------------------------------------------------------------------
68 These are my opinions---Nortel Networks takes no responsibility for them.
69
70 --
71 gentoo-dev@g.o mailing list