Hi,

At Sun, 24 Aug 2003 22:09:12 +0100,
Stuart Herbert wrote:

> The weird thing is, the ebuild very clearly only depends on perl if the
> 'perl' USE flag is set.  So, why is perl being pulled in?  Well, the
> irssi ebuild inherits the perl-module eclass, and *that's* where the
> dependency comes from.
> 
> Solution: fix the ebuild to only inherit perl-module if the perl USE flag
> is set; until then, ensure -perl is set in the USE flags, and remember to
> remove perl when we're done.

I have a similar problem in http://bugs.gentoo.org/show_bug.cgi?id=27175

In that bug, carpaski said:

"inherit is NEVER allowed to be conditional that way.
Either you inherit, or you don't. There is no middle ground.

It can be worked around, but any auxdb variables MAY NOT be
involved in bash conditional statements."

I don't want to inherit if it isn't required, but Portage doesn't
allow it ;-( And the problem is there seems no way to remove certain
DEPENDs once you inherit it (in net-irc/irsii case, you cannot remove
dependency to perl if you inherit perl-module).  From a comment about
conditional dependencies in net-im/licq-1.2.7.ebuild I thoght it is a
work around to remove undesired DEPEND if USE flag is not set, but
when I tried to emerge that ebuild I realised that it doesn't work :-(

Does anyone know how to deal with the problem?


regards,

-- 
Mamoru KOMACHI <[EMAIL PROTECTED]>
http://dev.gentoo.org/~usata/

--
gentoo-dev@gentoo.org mailing list

Reply via email to