Gentoo Archives: gentoo-dev

From: Mamoru KOMACHI <usata@g.o>
To: gentoo-dev@g.o
Subject: [gentoo-dev] conditional dependencies (was: [gentoo-dev] Summary: Install CD Bloat thread)
Date: Mon, 25 Aug 2003 00:53:59
In Reply to: Re: [gentoo-dev] Summary: Install CD Bloat thread by Stuart Herbert
1 Hi,
3 At Sun, 24 Aug 2003 22:09:12 +0100,
4 Stuart Herbert wrote:
6 > The weird thing is, the ebuild very clearly only depends on perl if the
7 > 'perl' USE flag is set. So, why is perl being pulled in? Well, the
8 > irssi ebuild inherits the perl-module eclass, and *that's* where the
9 > dependency comes from.
10 >
11 > Solution: fix the ebuild to only inherit perl-module if the perl USE flag
12 > is set; until then, ensure -perl is set in the USE flags, and remember to
13 > remove perl when we're done.
15 I have a similar problem in
17 In that bug, carpaski said:
19 "inherit is NEVER allowed to be conditional that way.
20 Either you inherit, or you don't. There is no middle ground.
22 It can be worked around, but any auxdb variables MAY NOT be
23 involved in bash conditional statements."
25 I don't want to inherit if it isn't required, but Portage doesn't
26 allow it ;-( And the problem is there seems no way to remove certain
27 DEPENDs once you inherit it (in net-irc/irsii case, you cannot remove
28 dependency to perl if you inherit perl-module). From a comment about
29 conditional dependencies in net-im/licq-1.2.7.ebuild I thoght it is a
30 work around to remove undesired DEPEND if USE flag is not set, but
31 when I tried to emerge that ebuild I realised that it doesn't work :-(
33 Does anyone know how to deal with the problem?
36 regards,
38 --
39 Mamoru KOMACHI <usata@g.o>
42 --
43 gentoo-dev@g.o mailing list