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

Attachments

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

Replies