Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: vapier@g.o
Subject: Re: [gentoo-dev] Fixing eclass code relying on ${IUSE} greps?
Date: Wed, 14 Sep 2011 19:15:32
Message-Id: 20110914211656.09807e69@pomiocik.lan
In Reply to: Re: [gentoo-dev] Fixing eclass code relying on ${IUSE} greps? by Mike Frysinger
On Wed, 14 Sep 2011 15:10:23 -0400
Mike Frysinger <vapier@g.o> wrote:

> On Wed, Sep 14, 2011 at 06:38, Michał Górny wrote: > > As the 'has_iuse' thread worked out, right now PMS doesn't allow us > > to grep IUSE for random values during runtime. Thus, all eclasses > > using that to enable features per ebuild-defined IUSE are broken. > > this statement isnt exactly clear. no, eclasses cannot leverage IUSE > from ebuilds (and vice versa). but eclasses/ebuilds can leverage > their own IUSE value.
Erm, that's not really true. Consider that usually eclass functions are called from ebuilds. At the time of calling, IUSE can basically contain anything; if PM doesn't care much, that'd be probably last values set -- ebuild values. Remember than calling a sourced function does not re-evaluate the eclass it was sourced from. -- Best regards, Michał Górny


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


Subject Author
Re: [gentoo-dev] Fixing eclass code relying on ${IUSE} greps? Mike Frysinger <vapier@g.o>