Gentoo Archives: gentoo-dev

From: Brian Harring <ferringb@×××××.com>
To: gentoo-dev@l.g.o
Cc: dberkholz@g.o
Subject: Re: [gentoo-dev] EAPI5: require ebuilds/eclasses to not use any vars/funcs prefixed with __
Date: Thu, 13 Sep 2012 09:17:24
Message-Id: 20120913091545.GB28593@localhost
In Reply to: Re: [gentoo-dev] EAPI5: require ebuilds/eclasses to not use any vars/funcs prefixed with __ by Mike Frysinger
1 On Thu, Sep 13, 2012 at 01:53:21AM -0400, Mike Frysinger wrote:
2 > On Wed, Sep 12, 2012 at 4:36 PM, Brian Harring wrote:
3 > > Currently, there is a minor amount of ebuild/eclass usage of things
4 > > named __*; ~90% of it is 'import once' eclass code like the following:
5 > >
6 > > """
7 > > if [[ ${___ECLASS_ONCE_LIBTOOL} != "recur -_+^+_- spank" ]] ; then
8 > > ___ECLASS_ONCE_LIBTOOL="recur -_+^+_- spank
9 > > """
10 > >
11 > > Converting that is easy enough, and I'll be doing that work for
12 > > gentoo-x86 if folks don't have an issue.
13 >
14 > pick a funner prefix and i approve
15
16 _LIBTOOL_ECLASS_GOT_SPANKED_ALREADY
17
18 Either that or one could just inject futurama quotes:
19
20 _LIBTOOL_ECLASS_DOESNT_WANT_TO_LIVE_ON_THIS_PLANET_ANYMORE
21
22 > > For instances where the sandbox needs to be turned off for a command-
23 > > we do the same thing we did w/ nonfatal;
24 > >
25 > > sandboxless <the command and args>
26 >
27 > fine idea
28
29 withoutsandbox. ;)
30
31 Joke aside, 'nosandbox' is more consistent; also, there's basically
32 one usage in the tree (virtualx) that would need it, although the
33 level of ebuild usage for that, I do not know- donnie might, that was
34 his code originally iirc.
35
36 ~harring