Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Donnie Berkholz <dberkholz@g.o>, hanno@g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-doc/gimp-help: ChangeLog gimp-help-0.13.ebuild
Date: Wed, 26 Sep 2007 09:28:01
Message-Id: 200709260514.12474.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in app-doc/gimp-help: ChangeLog gimp-help-0.13.ebuild by Donnie Berkholz
1 On Wednesday 26 September 2007, Donnie Berkholz wrote:
2 > On 04:51 Wed 26 Sep , Mike Frysinger wrote:
3 > > On Wednesday 26 September 2007, Donnie Berkholz wrote:
4 > > > for USE in ${IUSE}; do
5 > > > [[ ${USE} = linguas_* ]] && use_linguas ${USE}
6 > > > done
7 > >
8 > > you dont want to use the variable 'USE' ... while it would work
9 > > correctly if you declared it with 'local', it'd be confusing and
10 > > repoman may just barf on it ($USE is supposed to be readonly for
11 > > ebuilds)
12 >
13 > Ahh, reviewing is so fun and educational, it almost feels like I'm
14 > watching the Discovery channel. Although I'm not sure why $USE is
15 > directly accessible from ebuilds ... seems like it should only be
16 > accessible to use(). Implementation detail, or should it be part of the
17 > PMS?
18
19 if it's all common shell, it's pretty hard to hide ... you could try some
20 tricks like rewriting USE to __USE__ so internal code (like the `use`
21 function) still work, but in the end, does that really help ?
22 -mike

Attachments

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

Replies