summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Michael <fedora.dm0@gmail.com>2021-06-24 17:49:41 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-24 17:49:41 +0200
commit147894288c01c6146b4ebe684bab100c917994ad (patch)
tree1229970166ee4363a96e14b2ac3c41f4306253c4 /eclass/user.eclass
parentuser-info.eclass: EAPI 8 support (diff)
downloadgentoo-147894288c01c6146b4ebe684bab100c917994ad.tar.gz
gentoo-147894288c01c6146b4ebe684bab100c917994ad.tar.bz2
gentoo-147894288c01c6146b4ebe684bab100c917994ad.zip
user.eclass: EAPI 8 support
Also drop support for EAPIs 0-4 to match user-info.eclass. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/user.eclass')
-rw-r--r--eclass/user.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass
index e1f87a383ada..d03d31819fcc 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -5,7 +5,7 @@
# @MAINTAINER:
# base-system@gentoo.org (Linux)
# Michał Górny <mgorny@gentoo.org> (NetBSD)
-# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
+# @SUPPORTED_EAPIS: 5 6 7 8
# @BLURB: user management in ebuilds
# @DEPRECATED: acct-user/acct-group packages
# @DESCRIPTION:
@@ -16,8 +16,8 @@ if [[ -z ${_USER_ECLASS} ]]; then
_USER_ECLASS=1
case ${EAPI:-0} in
- 0|1|2|3|4|5|6|7) ;;
- *)
+ 5|6|7) ;;
+ 8)
if [[ ${CATEGORY} != acct-* ]]; then
eerror "In EAPI ${EAPI}, packages must not inherit user.eclass"
eerror "unless they are in the acct-user or acct-group category."
@@ -26,6 +26,7 @@ case ${EAPI:-0} in
die "Invalid \"inherit user\" in EAPI ${EAPI}"
fi
;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
inherit user-info