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
1 On Wed, 14 Sep 2011 15:10:23 -0400
2 Mike Frysinger <vapier@g.o> wrote:
3
4 > On Wed, Sep 14, 2011 at 06:38, Michał Górny wrote:
5 > > As the 'has_iuse' thread worked out, right now PMS doesn't allow us
6 > > to grep IUSE for random values during runtime. Thus, all eclasses
7 > > using that to enable features per ebuild-defined IUSE are broken.
8 >
9 > this statement isnt exactly clear. no, eclasses cannot leverage IUSE
10 > from ebuilds (and vice versa). but eclasses/ebuilds can leverage
11 > their own IUSE value.
12
13 Erm, that's not really true. Consider that usually eclass functions are
14 called from ebuilds. At the time of calling, IUSE can basically contain
15 anything; if PM doesn't care much, that'd be probably last values set
16 -- ebuild values.
17
18 Remember than calling a sourced function does not re-evaluate the
19 eclass it was sourced from.
20
21 --
22 Best regards,
23 Michał Górny

Attachments

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

Replies

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