No functional difference for existing EAPIs. Reviewed-by: David Seifert <[email protected]> Reviewed-by: Michał Górny <[email protected]> Reviewed-by: Andreas K. Hüttel <[email protected]> Signed-off-by: Ulrich Müller <[email protected]> --- eclass/user.eclass | 13 +++++++++++++ 1 file changed, 13 insertions(+)
diff --git a/eclass/user.eclass b/eclass/user.eclass
index b70698356a3a..abbbb661b4bc 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
--
2.29.0
signature.asc
Description: PGP signature
