* [gentoo-dev] [PATCH] user.eclass: Deprecate general use for future EAPIs.
@ 2020-10-25 15:32 Ulrich Müller
0 siblings, 0 replies; only message in thread
From: Ulrich Müller @ 2020-10-25 15:32 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]
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>
---
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 507 bytes --]
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-25 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-25 15:32 [gentoo-dev] [PATCH] user.eclass: Deprecate general use for future EAPIs Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox