Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@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 00:00:02
Message-Id: 50E4C9D6.3010005@gentoo.org
In Reply to: Re: [gentoo-dev] About *ECLASS_ONCE_* stuff at top of some eclasses but not others by Mike Gilbert
1 On 1/2/2013 6:54 PM, Mike Gilbert wrote:
2 > On 1/2/2013 6:41 PM, Pacho Ramos wrote:
3 >> What is the purpose of this stuff:
4 >> if [[ ${___ECLASS_ONCE_EUTILS} != "recur -_+^+_- spank" ]] ; then
5 >> ___ECLASS_ONCE_EUTILS="recur -_+^+_- spank"
6 >>
7 >> and similar in some eclasses (like eutils, multilib) but not others
8 >> (like python-single-r1 that I was looking some days ago for learning how
9 >> to use it)?
10 >>
11 >> Thanks a lot for the info
12 >
13 > It prevents eclasses from being sourced more than once. It is meant as a
14 > performance enhancement for when eclasses inherit other eclasses. vapier
15 > posted some stats on this list a while back.
16 >
17 > We have a similar thing in python-single-r1. We call it
18 > _PYTHON_SINGLE_R1 and assign a value of 1 at the bottom of the eclass.
19 >
20
21 Here's the thread.
22
23 http://archives.gentoo.org/gentoo-dev/msg_18dab542c1c59873f8cb68c96cdf6619.xml

Attachments

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

Replies