diff options
author | Sam James <sam@gentoo.org> | 2024-09-07 22:38:42 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-08 19:21:22 +0100 |
commit | 3a9d3b4238e7706d8f2f3d5d652faae69091a9ad (patch) | |
tree | c8261c7bf56b0294ce5e2d3c34a1bc72f7dfe79a /eclass | |
parent | tmpfiles.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff) | |
download | gentoo-3a9d3b4238e7706d8f2f3d5d652faae69091a9ad.tar.gz gentoo-3a9d3b4238e7706d8f2f3d5d652faae69091a9ad.tar.bz2 gentoo-3a9d3b4238e7706d8f2f3d5d652faae69091a9ad.zip |
toolchain-funcs.eclass: add global-scope ewarn for deprecated < EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 5e36fa275dcd..66819996ea33 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -13,14 +13,18 @@ # in such a way that you can rely on the function always returning # something sane. +if [[ -z ${_TOOLCHAIN_FUNCS_ECLASS} ]]; then +_TOOLCHAIN_FUNCS_ECLASS=1 + case ${EAPI} in - 6|7|8) ;; + 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 -if [[ -z ${_TOOLCHAIN_FUNCS_ECLASS} ]]; then -_TOOLCHAIN_FUNCS_ECLASS=1 - inherit multilib # tc-getPROG <VAR [search vars]> <default> [tuple] |