mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
eclass/preserve-libs: Sync with Gentoo
It's from Gentoo commit e2bb16305d903272dcef1e902d0e7b3ec87dd87b.
This commit is contained in:
parent
b4a69bd53d
commit
f2bec42364
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
# Copyright 1999-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: preserve-libs.eclass
|
# @ECLASS: preserve-libs.eclass
|
||||||
@ -7,14 +7,18 @@
|
|||||||
# @SUPPORTED_EAPIS: 5 6 7 8
|
# @SUPPORTED_EAPIS: 5 6 7 8
|
||||||
# @BLURB: preserve libraries after SONAME changes
|
# @BLURB: preserve libraries after SONAME changes
|
||||||
|
|
||||||
case ${EAPI} in
|
|
||||||
5|6|7|8) ;;
|
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then
|
if [[ -z ${_PRESERVE_LIBS_ECLASS} ]]; then
|
||||||
_PRESERVE_LIBS_ECLASS=1
|
_PRESERVE_LIBS_ECLASS=1
|
||||||
|
|
||||||
|
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: preserve_old_lib
|
# @FUNCTION: preserve_old_lib
|
||||||
# @USAGE: <libs to preserve> [more libs]
|
# @USAGE: <libs to preserve> [more libs]
|
||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user