summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-07 22:38:08 +0100
committerSam James <sam@gentoo.org>2024-09-08 19:21:18 +0100
commit1a99e837bd683a50583c7a6a83bae5ad918cec74 (patch)
tree76bf8cedbc4e020263cf51f3e0ef33f0ab32f6ed
parente2bb16305d903272dcef1e902d0e7b3ec87dd87b (diff)
downloadgentoo-1a99e837bd683a50583c7a6a83bae5ad918cec74.tar.gz
gentoo-1a99e837bd683a50583c7a6a83bae5ad918cec74.tar.bz2
gentoo-1a99e837bd683a50583c7a6a83bae5ad918cec74.zip
readme.gentoo-r1.eclass: add global-scope ewarn for deprecated < EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--eclass/readme.gentoo-r1.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass
index 48023d9c049f..3d2d8244687c 100644
--- a/eclass/readme.gentoo-r1.eclass
+++ b/eclass/readme.gentoo-r1.eclass
@@ -21,7 +21,11 @@ if [[ -z ${_README_GENTOO_ECLASS} ]]; then
_README_GENTOO_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