eclass/toolchain-funcs: Sync with Gentoo

It's from Gentoo commit 3a9d3b4238e7706d8f2f3d5d652faae69091a9ad.
This commit is contained in:
Flatcar Buildbot 2024-09-16 07:14:26 +00:00 committed by Krzesimir Nowak
parent 191cf4c794
commit 1761288be4

View File

@ -13,14 +13,18 @@
# in such a way that you can rely on the function always returning
# something sane.
case ${EAPI} in
6|7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ -z ${_TOOLCHAIN_FUNCS_ECLASS} ]]; then
_TOOLCHAIN_FUNCS_ECLASS=1
case ${EAPI} in
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
inherit multilib
# tc-getPROG <VAR [search vars]> <default> [tuple]