From 91a610a87bff0f11386478a2afd9e6aaf212b508 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 17 Dec 2011 04:23:53 +0000 Subject: [PATCH] avoid multiple inclusions when possible to speed caching up --- eclass/pam.eclass | 7 ++++++- eclass/pax-utils.eclass | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/eclass/pam.eclass b/eclass/pam.eclass index 243ce3ffc9ea..fd898cd5c109 100644 --- a/eclass/pam.eclass +++ b/eclass/pam.eclass @@ -1,11 +1,14 @@ # Copyright 2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License, v2 or later # Author Diego Pettenò -# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.20 2011/07/08 11:35:01 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pam.eclass,v 1.21 2011/12/17 04:20:52 vapier Exp $ # # This eclass contains functions to install pamd configuration files and # pam modules. +if [[ ${___ECLASS_ONCE_PAM} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_PAM="recur -_+^+_- spank" + inherit multilib flag-o-matic # dopamd [more files] @@ -235,3 +238,5 @@ pam_epam_expand() { # # eshopts_pop # reset old shell opts # } + +fi diff --git a/eclass/pax-utils.eclass b/eclass/pax-utils.eclass index 368e4d6c8db6..0dafc4ab88ee 100644 --- a/eclass/pax-utils.eclass +++ b/eclass/pax-utils.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/pax-utils.eclass,v 1.16 2011/12/17 04:23:13 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/pax-utils.eclass,v 1.17 2011/12/17 04:23:53 vapier Exp $ # @ECLASS: pax-utils.eclass # @MAINTAINER: @@ -21,6 +21,9 @@ # necessary utility is installed, the PT_PAX_FLAGS markings will be made. If # PAX_MARKINGS is set to "none", no markings will be made. +if [[ ${___ECLASS_ONCE_PAX_UTILS} != "recur -_+^+_- spank" ]] ; then +___ECLASS_ONCE_PAX_UTILS="recur -_+^+_- spank" + # Default to PT markings. PAX_MARKINGS=${PAX_MARKINGS:="PT"} @@ -149,3 +152,4 @@ _pax_list_files() { done } +fi -- 2.26.2