summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-10-25 16:32:49 +0100
committerUlrich Müller <ulm@gentoo.org>2020-11-04 21:46:59 +0100
commit7ed6eeff7cb9d9bd295129804bf6776b50a47b27 (patch)
tree3ed97cdf051d91a14048944bd3247963f741d85f /eclass
parentsci-visualization/gnuplot: Update live ebuild. (diff)
downloadgentoo-7ed6eeff7cb9d9bd295129804bf6776b50a47b27.tar.gz
gentoo-7ed6eeff7cb9d9bd295129804bf6776b50a47b27.tar.bz2
gentoo-7ed6eeff7cb9d9bd295129804bf6776b50a47b27.zip
user.eclass: Deprecate general use for future EAPIs.
No functional difference for existing EAPIs. Reviewed-by: David Seifert <soap@gentoo.org> Reviewed-by: Michał Górny <mgorny@gentoo.org> Reviewed-by: Andreas K. Hüttel <dilfridge@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/user.eclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass
index b70698356a3..abbbb661b4b 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -13,6 +13,19 @@
if [[ -z ${_USER_ECLASS} ]]; then
_USER_ECLASS=1
+case ${EAPI:-0} in
+ 0|1|2|3|4|5|6|7) ;;
+ *)
+ 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."
+ eerror "Migrate your package to GLEP 81 user/group management,"
+ eerror "or inherit user-info if you need only the query functions."
+ die "Invalid \"inherit user\" in EAPI ${EAPI}"
+ fi
+ ;;
+esac
+
inherit user-info
# @FUNCTION: _assert_pkg_ebuild_phase