From 121b76c84ebd13d12d63e98778fd4cc9ba81ddb3 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 16 Sep 2024 07:14:35 +0000 Subject: [PATCH] eclass/wrapper: Sync with Gentoo It's from Gentoo commit 93c765a9b349be736f86cb6ca823d8cf6220a335. --- .../portage-stable/eclass/wrapper.eclass | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/wrapper.eclass b/sdk_container/src/third_party/portage-stable/eclass/wrapper.eclass index 8d3d273d81..a62bb51d0f 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/wrapper.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/wrapper.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: wrapper.eclass @@ -7,15 +7,19 @@ # @SUPPORTED_EAPIS: 5 6 7 8 # @BLURB: create a shell wrapper script -case ${EAPI} in - 5|6|7|8) ;; - *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; -esac - if [[ -z ${_WRAPPER_ECLASS} ]]; then _WRAPPER_ECLASS=1 -# @FUNCTION: make_wrapper +case ${EAPI} in + 5|6) + ewarn "${CATEGORY}/${PF}: ebuild uses ${ECLASS} with deprecated EAPI ${EAPI}!" + ewarn "${CATEGORY}/${PF}: Support will be removed on 2024-10-08. Please port to newer EAPI." + ;; + 7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + +# FUNCTION: make_wrapper # @USAGE: [chdir] [libpaths] [installpath] # @DESCRIPTION: # Create a shell wrapper script named wrapper in installpath