Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] About *ECLASS_ONCE_* stuff at top of some eclasses but not others
Date: Thu, 03 Jan 2013 11:45:07
Message-Id: 1357213461.26280.54.camel@belkin4
In Reply to: Re: [gentoo-dev] About *ECLASS_ONCE_* stuff at top of some eclasses but not others by Mike Gilbert
1 El mié, 02-01-2013 a las 18:59 -0500, Mike Gilbert escribió:
2 > On 1/2/2013 6:54 PM, Mike Gilbert wrote:
3 > > On 1/2/2013 6:41 PM, Pacho Ramos wrote:
4 > >> What is the purpose of this stuff:
5 > >> if [[ ${___ECLASS_ONCE_EUTILS} != "recur -_+^+_- spank" ]] ; then
6 > >> ___ECLASS_ONCE_EUTILS="recur -_+^+_- spank"
7 > >>
8 > >> and similar in some eclasses (like eutils, multilib) but not others
9 > >> (like python-single-r1 that I was looking some days ago for learning how
10 > >> to use it)?
11 > >>
12 > >> Thanks a lot for the info
13 > >
14 > > It prevents eclasses from being sourced more than once. It is meant as a
15 > > performance enhancement for when eclasses inherit other eclasses. vapier
16 > > posted some stats on this list a while back.
17 > >
18 > > We have a similar thing in python-single-r1. We call it
19 > > _PYTHON_SINGLE_R1 and assign a value of 1 at the bottom of the eclass.
20 > >
21 >
22 > Here's the thread.
23 >
24 > http://archives.gentoo.org/gentoo-dev/msg_18dab542c1c59873f8cb68c96cdf6619.xml
25 >
26
27 OK thanks, maybe this should be added to devmanual as looks like it's
28 not documented apart of gentoo-dev list :/

Attachments

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