eclass/preserve-libs: Sync with Gentoo

It's from Gentoo commit 7663fbfcd9ca5a7261d8de4120490f95f732a774.
This commit is contained in:
Flatcar Buildbot 2024-10-21 07:07:09 +00:00
parent 5931980a57
commit 017de6115d

View File

@ -4,17 +4,13 @@
# @ECLASS: preserve-libs.eclass # @ECLASS: preserve-libs.eclass
# @MAINTAINER: # @MAINTAINER:
# base-system@gentoo.org # base-system@gentoo.org
# @SUPPORTED_EAPIS: 5 6 7 8 # @SUPPORTED_EAPIS: 7 8
# @BLURB: preserve libraries after SONAME changes # @BLURB: preserve libraries after SONAME changes
if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then
_PRESERVE_LIBS_ECLASS=1 _PRESERVE_LIBS_ECLASS=1
case ${EAPI} in 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) ;; 7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac esac