Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH eutils] Introduce has_iuse() for IUSE checks.
Date: Tue, 13 Sep 2011 10:37:51
In Reply to: [gentoo-dev] [PATCH eutils] Introduce has_iuse() for IUSE checks. by "Michał Górny"
On Tue, 13 Sep 2011 12:21:31 +0200
Michał Górny <mgorny@g.o> wrote:
> Such checks are used at least in autotools-utils & kde* eclasses, and > are done wrong there. Thus, I've created a little reusable snippet > suitable for eutils.
Are you sure this is defined behaviour? IUSE is a fancy merged variable for eclasses, and I don't think we guarantee that the value visible to the ebuild at any particular point is the generated value used by the package mangler. In particular, what happens if you do something like this in an eclass: IUSE="foo" has_iuse bar && DEPEND="cat/bar" and then inherit from an ebuild that sets IUSE="bar", possibly after the inherit? What about if the bar comes from another eclass? Or worse... has_iuse bar && IUSE="bar" Now what? -- Ciaran McCreesh


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-dev] [PATCH eutils] Introduce has_iuse() for IUSE checks. "Michał Górny" <mgorny@g.o>