From b5d401dc6b25d865d0b84bd827d707838c720935 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 21 Dec 2021 10:51:23 +0100 Subject: [PATCH] eclass/preserve-libs: Sync with gentoo It's from gentoo commit 6762a2adb04570a3d4aff01c519cef323a3622df. --- .../portage-stable/eclass/preserve-libs.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/preserve-libs.eclass b/sdk_container/src/third_party/portage-stable/eclass/preserve-libs.eclass index 548c6411fc..da13e7943a 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/preserve-libs.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/preserve-libs.eclass @@ -1,11 +1,17 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: preserve-libs.eclass # @MAINTAINER: # base-system@gentoo.org +# @SUPPORTED_EAPIS: 5 6 7 # @BLURB: preserve libraries after SONAME changes +case ${EAPI:-0} in + [567]) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; +esac + if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then _PRESERVE_LIBS_ECLASS=1