Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@×××××××××××××.uk>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Handling "exactly one of many" dependencies
Date: Thu, 07 Jul 2005 15:58:23
Message-Id: 20050707165650.53e49cfa@snowdrop.home
In Reply to: [gentoo-dev] Handling "exactly one of many" dependencies by twofourtysix
1 On Thu, 7 Jul 2005 16:05:24 +0100 twofourtysix <twofourtysix@×××××.com>
2 wrote:
3 | However, a recently overheard conversation on IRC suggests that this
4 | is incorrect. Would someone with slightly less intolerance for
5 | clueless newbies be kind enough to explain why exactly this is wrong,
6 | and how to handle things correctly?
7
8 The example you gave will break if the following are all true:
9
10 * You have USE="sdl svga"
11 * You have media-libs/svgalib installed
12 * You do not have media-libs/libsdl installed
13
14 The dependencies will be resolved because of svgalib, but you will not
15 have libsdl installed. Since use sdl will be true, your first condition
16 block will be used, which will presumably do something undesirable...
17
18 This has absolutely nothing to do with binary packages. Those are a
19 whole different kettle of fish...
20
21 <preemptive strike against the usual stupidity> The situation will not
22 be solved by USE ranking, nor is a big fat die in pkg_setup the way to
23 go, nor is binary dep tracking a fix. Anyone proposing any of those as
24 solutions has missed the point and is probably just trying to twist this
25 into their favourite soapbox topic. </>
26
27 And yes, most of the examples in the tree are broken. This should not
28 surprise you.
29
30 --
31 Ciaran McCreesh
32 --
33 gentoo-dev@g.o mailing list