diff options
author | Sam James <sam@gentoo.org> | 2024-09-07 22:35:54 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-08 19:21:06 +0100 |
commit | 966e7cdfb758001a014f0cc304c79855c61d53e0 (patch) | |
tree | 3af3fff482194e427e80bace47274bc26fe404b8 /eclass | |
parent | cdrom.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff) | |
download | gentoo-966e7cdfb758001a014f0cc304c79855c61d53e0.tar.gz gentoo-966e7cdfb758001a014f0cc304c79855c61d53e0.tar.bz2 gentoo-966e7cdfb758001a014f0cc304c79855c61d53e0.zip |
check-reqs.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/check-reqs.eclass | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass index fac2f4553d74..02ff61187c45 100644 --- a/eclass/check-reqs.eclass +++ b/eclass/check-reqs.eclass @@ -1,4 +1,4 @@ -# Copyright 2004-2023 Gentoo Authors +# Copyright 2004-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: check-reqs.eclass @@ -38,14 +38,18 @@ # These checks should probably mostly work on non-Linux, and they should # probably degrade gracefully if they don't. Probably. +if [[ -z ${_CHECK_REQS_ECLASS} ]]; then +_CHECK_REQS_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 ${_CHECK_REQS_ECLASS} ]]; then -_CHECK_REQS_ECLASS=1 - # @ECLASS_VARIABLE: CHECKREQS_MEMORY # @DEFAULT_UNSET # @DESCRIPTION: |