summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-07 22:37:52 +0100
committerSam James <sam@gentoo.org>2024-09-08 19:21:16 +0100
commit4d90c2033b85e64c3b6be717a930be84f629f35c (patch)
treed3126dac82bfb01a83b593c2365aa45aa8c2a6f9 /eclass
parentphp-pear-r2.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff)
downloadgentoo-4d90c2033b85e64c3b6be717a930be84f629f35c.tar.gz
gentoo-4d90c2033b85e64c3b6be717a930be84f629f35c.tar.bz2
gentoo-4d90c2033b85e64c3b6be717a930be84f629f35c.zip
portability.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/portability.eclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/eclass/portability.eclass b/eclass/portability.eclass
index 78da440e22dd..926ac8b8b825 100644
--- a/eclass/portability.eclass
+++ b/eclass/portability.eclass
@@ -9,14 +9,18 @@
# @SUPPORTED_EAPIS: 6 7 8
# @BLURB: This eclass is created to avoid using non-portable GNUisms inside ebuilds
+if [[ -z ${_PORTABILITY_ECLASS} ]]; then
+_PORTABILITY_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 ${_PORTABILITY_ECLASS} ]]; then
-_PORTABILITY_ECLASS=1
-
# @FUNCTION: treecopy
# @USAGE: <orig1> [orig2 orig3 ....] <dest>
# @DESCRIPTION: