Gentoo Archives: gentoo-user

From: Henry Gebhardt <hsggebhardt@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Strangeness in dep calculation
Date: Mon, 04 Jul 2011 22:25:28
Message-Id: 20110704222121.GA16069@bimsstein
In Reply to: Re: [gentoo-user] Strangeness in dep calculation by Roman Zilka
1 On Mon, Jul 04, 2011 at 11:59:23PM +0200, Roman Zilka wrote:
2 > Roman Zilka (Mon, 4 Jul 2011 23:34:01 +0200):
3 > > Neil Bothwick (Mon, 4 Jul 2011 22:16:18 +0100):
4 > > > On Mon, 4 Jul 2011 22:48:44 +0200, Roman Zilka wrote:
5 > > >
6 > > > > Not quite. This is how I'm thinking: if '-ep world' says virtual/pam
7 > > > > needs to be installed, then it either
8 > > > > * is in the world file, or
9 > > > > * is in the system set, or
10 > > > > * is a buildtime or runtime dependency (immediate or deep) of one of the
11 > > > > packages in the world set (i.e., world file and system set combined).
12 > > >
13 > > > There's another possibility, that it is one of a number of packages that
14 > > > satisfy a particular dependency, the first listed one. If you have
15 > > > another package installed that fulfils this dependency, emerge -u world
16 > > > won't need to do anything, but with emerge -e world you are telling
17 > > > portage that the other package is not installed, so it picks the first
18 > > > dependency from the list.
19 > >
20 > > I checked that - in this case, there are no alternatives.
21 >
22 > Ah, I see. I'm sorry, I wasn't thinking enough. Yeah, virtual/pam may
23 > be one of a list. But if nothing else, I have openssh and openssh says:
24 > RDEPEND="pam? ( virtual/pam )
25 > No alternatives there. And I don't have virtual/pam, but do have
26 > openssh. So why does '-uDN world' not pull virtual/pam in?
27
28 My guess is that when virtual/pam was introduced, the openssh ebuild was
29 changed to depend on it without a rev bump. Then while upgrading emerge
30 will use the old ebuild of the installed openssh, and when you use
31 --emptytree it will use the new one in the portage tree.
32
33 You can test the theory by comparing the ebuild in portage with the one
34 in /var/db/pkg/net-misc/.
35
36
37 Henry

Replies

Subject Author
Re: [gentoo-user] Strangeness in dep calculation Roman Zilka <zilka@×××××××.cz>