1 |
Hi, |
2 |
|
3 |
At Sun, 24 Aug 2003 22:09:12 +0100, |
4 |
Stuart Herbert wrote: |
5 |
|
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. |
14 |
|
15 |
I have a similar problem in http://bugs.gentoo.org/show_bug.cgi?id=27175 |
16 |
|
17 |
In that bug, carpaski said: |
18 |
|
19 |
"inherit is NEVER allowed to be conditional that way. |
20 |
Either you inherit, or you don't. There is no middle ground. |
21 |
|
22 |
It can be worked around, but any auxdb variables MAY NOT be |
23 |
involved in bash conditional statements." |
24 |
|
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 :-( |
32 |
|
33 |
Does anyone know how to deal with the problem? |
34 |
|
35 |
|
36 |
regards, |
37 |
|
38 |
-- |
39 |
Mamoru KOMACHI <usata@g.o> |
40 |
http://dev.gentoo.org/~usata/ |
41 |
|
42 |
-- |
43 |
gentoo-dev@g.o mailing list |