summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-07 22:37:43 +0100
committerSam James <sam@gentoo.org>2024-09-08 19:21:15 +0100
commit75c1c9c04acf63c2c7ed1d8bf62609a654754758 (patch)
treee8e1f353f4402e90a7cf5548bdecb91d7212bc6f /eclass
parentpax-utils.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff)
downloadgentoo-75c1c9c04acf63c2c7ed1d8bf62609a654754758.tar.gz
gentoo-75c1c9c04acf63c2c7ed1d8bf62609a654754758.tar.bz2
gentoo-75c1c9c04acf63c2c7ed1d8bf62609a654754758.zip
perl-functions.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/perl-functions.eclass11
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/perl-functions.eclass b/eclass/perl-functions.eclass
index 142fdeb8cfbd..d2b6cfb85f73 100644
--- a/eclass/perl-functions.eclass
+++ b/eclass/perl-functions.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: perl-functions.eclass
@@ -17,11 +17,12 @@
# global scope.
case ${EAPI} in
- 7|8)
- ;;
- *)
- die "${ECLASS}: EAPI ${EAPI:-0} not supported"
+ 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
[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives