From: Mamoru KOMACHI <usata@gentoo.org>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] conditional dependencies (was: [gentoo-dev] Summary: Install CD Bloat thread)
Date: Mon, 25 Aug 2003 09:53:24 +0900 [thread overview]
Message-ID: <86vfsm36d7.wl%usata@gentoo.org> (raw)
In-Reply-To: <200308242209.18942.stuart@gentoo.org>
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
next prev parent reply other threads:[~2003-08-25 0:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-22 0:08 [gentoo-dev] Summary: Install CD Bloat thread Alec Berryman
2003-08-22 4:52 ` Owen Gunden
2003-08-22 10:28 ` Karsten Schulz
2003-08-24 21:09 ` Stuart Herbert
2003-08-24 23:37 ` Georgi Georgiev
2003-08-25 8:59 ` Paul de Vrieze
2003-08-25 9:12 ` Georgi Georgiev
2003-08-25 0:53 ` Mamoru KOMACHI [this message]
2003-08-25 1:16 ` [gentoo-dev] conditional dependencies (was: [gentoo-dev] Summary: Install CD Bloat thread) Stuart Herbert
2003-08-25 16:47 ` Mamoru KOMACHI
2003-08-25 8:57 ` [gentoo-dev] Summary: Install CD Bloat thread Paul de Vrieze
2003-08-25 12:00 ` Stuart Herbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86vfsm36d7.wl%usata@gentoo.org \
--to=usata@gentoo.org \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox