diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-10 20:03:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-10 20:03:17 +0000 |
commit | 9c3d8c0ef13c925c85eea42da6ed0e30fdbbf279 (patch) | |
tree | 6d917913bb170af29320b72a50c2960762c0fc79 /eclass | |
parent | Mask dev-util/febootstrap before testing ends (diff) | |
download | gentoo-2-9c3d8c0ef13c925c85eea42da6ed0e30fdbbf279.tar.gz gentoo-2-9c3d8c0ef13c925c85eea42da6ed0e30fdbbf279.tar.bz2 gentoo-2-9c3d8c0ef13c925c85eea42da6ed0e30fdbbf279.zip |
avoid multiple inclusions when possible to speed caching up
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 7 | ||||
-rw-r--r-- | eclass/portability.eclass | 7 | ||||
-rw-r--r-- | eclass/user.eclass | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index e70770d41768..5fbb60770bdf 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.159 2011/12/07 06:42:40 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.160 2011/12/10 20:03:17 vapier Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -10,6 +10,9 @@ # This eclass contains a suite of functions to help developers sanely # and safely manage toolchain flags in their builds. +if [[ ${___ECLASS_ONCE_FLAG_O_MATIC} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_FLAG_O_MATIC="recur -_+^+_- spank" + inherit eutils toolchain-funcs multilib ################ DEPRECATED functions ################ @@ -709,3 +712,5 @@ no-as-needed() { # echo "All tests pass" #} #TESTS + +fi diff --git a/eclass/portability.eclass b/eclass/portability.eclass index 54c7619e308a..5aee01e7ad48 100644 --- a/eclass/portability.eclass +++ b/eclass/portability.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.21 2011/11/03 00:59:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.22 2011/12/10 20:03:17 vapier Exp $ # # Author: Diego Pettenò <flameeyes@gentoo.org> # @@ -8,6 +8,9 @@ # # NB: If you add anything, please comment it! +if [[ ${___ECLASS_ONCE_PORTABILITY} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_PORTABILITY="recur -_+^+_- spank" + # treecopy orig1 orig2 orig3 .... dest # # mimic cp --parents copy, but working on BSD userland as well @@ -130,3 +133,5 @@ get_mounts() { _dead_portability_user_funcs() { die "if you really need this, please file a bug for base-system@gentoo.org"; } is-login-disabled() { _dead_portability_user_funcs; } + +fi diff --git a/eclass/user.eclass b/eclass/user.eclass index 7973f382e1fc..2b1fd0c3f5b4 100644 --- a/eclass/user.eclass +++ b/eclass/user.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.17 2011/11/29 19:32:23 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.18 2011/12/10 20:03:17 vapier Exp $ # @ECLASS: user.eclass # @MAINTAINER: @@ -13,6 +13,9 @@ # The user eclass contains a suite of functions that allow ebuilds # to quickly make sure users in the installed system are sane. +if [[ ${___ECLASS_ONCE_USER} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_USER="recur -_+^+_- spank" + # @FUNCTION: _assert_pkg_ebuild_phase # @INTERNAL # @USAGE: <calling func name> @@ -383,3 +386,5 @@ egetshell() { egetent passwd "$1" | cut -d: -f${pos} } + +fi |