public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] conditional dependencies (was: [gentoo-dev] Summary: Install CD Bloat thread)
  @ 2003-08-25  0:53 99%   ` Mamoru KOMACHI
  0 siblings, 0 replies; 1+ results
From: Mamoru KOMACHI @ 2003-08-25  0:53 UTC (permalink / raw
  To: gentoo-dev

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 <usata@gentoo.org>
http://dev.gentoo.org/~usata/

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2003-08-22  0:08     [gentoo-dev] Summary: Install CD Bloat thread Alec Berryman
2003-08-24 21:09     ` Stuart Herbert
2003-08-25  0:53 99%   ` [gentoo-dev] conditional dependencies (was: [gentoo-dev] Summary: Install CD Bloat thread) Mamoru KOMACHI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox