From a4b6d94d0db58b6644bbfa7ba81a219b0bd3057f Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 2 Mar 2026 07:25:37 +0000 Subject: [PATCH] eclass/app-alternatives: Sync with Gentoo It's from Gentoo commit 5f444bd239553812f73ce86e6b4dcfce0beb85ca. Signed-off-by: Flatcar Buildbot --- .../portage-stable/eclass/app-alternatives.eclass | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/app-alternatives.eclass b/sdk_container/src/third_party/portage-stable/eclass/app-alternatives.eclass index 32afedba1e..2873aad45c 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/app-alternatives.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/app-alternatives.eclass @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: app-alternatives.eclass @@ -6,7 +6,7 @@ # Michał Górny # @AUTHOR: # Michał Górny -# @SUPPORTED_EAPIS: 8 +# @SUPPORTED_EAPIS: 8 9 # @BLURB: Common logic for app-alternatives/* # @DESCRIPTION: # This eclass provides common logic shared by app-alternatives/* @@ -16,14 +16,14 @@ # A get_alternative() function is provided that determines the selected # alternative and prints its respective flag name. -case ${EAPI} in - 8) ;; - *) die "${ECLASS}: EAPI ${EAPI:-0} unsupported." -esac - if [[ -z ${_APP_ALTERNATIVES_ECLASS} ]]; then _APP_ALTERNATIVES_ECLASS=1 +case ${EAPI} in + 8|9) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} unsupported." +esac + # @ECLASS_VARIABLE: ALTERNATIVES # @PRE_INHERIT # @REQUIRED