mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
eclass/toolchain-funcs: Sync with Gentoo
It's from Gentoo commit 3a9d3b4238e7706d8f2f3d5d652faae69091a9ad.
This commit is contained in:
parent
191cf4c794
commit
1761288be4
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user