summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-07 22:38:35 +0100
committerSam James <sam@gentoo.org>2024-09-08 19:21:21 +0100
commit2adde4478398749f442fd67d72fd631b8138ea1a (patch)
treeb6c1e00af6a8d6184caef4886f8f190adb0c7258 /eclass/systemd.eclass
parentstrip-linguas.eclass: add global-scope ewarn for deprecated < EAPI 7 (diff)
downloadgentoo-2adde4478398749f442fd67d72fd631b8138ea1a.tar.gz
gentoo-2adde4478398749f442fd67d72fd631b8138ea1a.tar.bz2
gentoo-2adde4478398749f442fd67d72fd631b8138ea1a.zip
systemd.eclass: add global-scope ewarn for deprecated < EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r--eclass/systemd.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 03d6a82fd310..a5f0decde1e3 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -1,4 +1,4 @@
-# Copyright 2011-2023 Gentoo Authors
+# Copyright 2011-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: systemd.eclass
@@ -25,7 +25,11 @@
# @CODE
case ${EAPI} in
- 5|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