From e21b300e0970f90ccd76554c6f575fa992812d5f Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 20 Mar 2023 07:25:14 +0000 Subject: [PATCH] eclass/savedconfig: Sync with Gentoo It's from Gentoo commit 2cba2db27919bc449ed2a7bf7ed3259c6b96e65f. --- .../portage-stable/eclass/savedconfig.eclass | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/savedconfig.eclass b/sdk_container/src/third_party/portage-stable/eclass/savedconfig.eclass index 4681fd2532..cc57485430 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/savedconfig.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/savedconfig.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: savedconfig.eclass @@ -30,15 +30,18 @@ # 4. Emerge the package with just USE=savedconfig to get the custom # build. +case ${EAPI} in + 6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +if [[ -z ${_SAVEDCONFIG_ECLASS} ]]; then +_SAVEDCONFIG_ECLASS=1 + inherit portability IUSE="savedconfig" -case ${EAPI} in - 6|7|8) ;; - *) die "EAPI=${EAPI:-0} is not supported" ;; -esac - # @FUNCTION: save_config # @USAGE: # @DESCRIPTION: @@ -152,4 +155,6 @@ savedconfig_pkg_postinst() { fi } +fi + EXPORT_FUNCTIONS pkg_postinst