Gentoo Archives: gentoo-dev

From: David Michael <fedora.dm0@×××××.com>
To: gentoo-dev@l.g.o
Cc: mgorny@g.o
Subject: [gentoo-dev] [PATCH 4/4] acct-user.eclass: EAPI 8 support
Date: Tue, 22 Jun 2021 16:46:49
Message-Id: 87a6nhvodq.fsf@gmail.com
1 Update the documentation to describe how to depend on GLEP 81
2 packages with EAPI 8. There is no NSS module for resolving the
3 accounts installed in $SYSROOT, so acct-* packages might also need
4 need to be in $BROOT e.g. for fowners which directly calls chmod.
5
6 - BDEPEND so the build system can resolve names when building
7 packages in nonempty $SYSROOT at src_install time.
8
9 - IDEPEND so the build system can resolve names when installing
10 binary packages in nonempty $ROOT at pkg_preinst time.
11
12 - RDEPEND so the target system can use the accounts.
13
14 Signed-off-by: David Michael <fedora.dm0@×××××.com>
15 ---
16 eclass/acct-user.eclass | 20 +++++++++++---------
17 1 file changed, 11 insertions(+), 9 deletions(-)
18
19 diff --git a/eclass/acct-user.eclass b/eclass/acct-user.eclass
20 index ee4358b5c75..4e26c570bc0 100644
21 --- a/eclass/acct-user.eclass
22 +++ b/eclass/acct-user.eclass
23 @@ -1,4 +1,4 @@
24 -# Copyright 2019-2020 Gentoo Authors
25 +# Copyright 2019-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 # @ECLASS: acct-user.eclass
29 @@ -7,7 +7,7 @@
30 # @AUTHOR:
31 # Michael Orlitzky <mjo@g.o>
32 # Michał Górny <mgorny@g.o>
33 -# @SUPPORTED_EAPIS: 7
34 +# @SUPPORTED_EAPIS: 7 8
35 # @BLURB: Eclass used to create and maintain a single user entry
36 # @DESCRIPTION:
37 # This eclass represents and creates a single user entry. The name
38 @@ -26,24 +26,26 @@
39 # contents:
40 #
41 # @CODE
42 -# EAPI=7
43 +# EAPI=8
44 # inherit acct-user
45 # ACCT_USER_ID=200
46 # ACCT_USER_GROUPS=( foo )
47 # acct-user_add_deps
48 # @CODE
49 #
50 -# Then you add appropriate dependency to your package. The dependency
51 -# type(s) should be:
52 -# - DEPEND (+ RDEPEND) if the user is already needed at build time,
53 -# - RDEPEND if it is needed at install time (e.g. you 'fowners' files
54 -# in pkg_preinst) or run time.
55 +# Then you add appropriate dependencies to your package. Note that the build
56 +# system might need to resolve names, too. The dependency type(s) should be:
57 +# - BDEPEND if the user must be resolvable at build time (e.g. it is used by
58 +# 'fowners' in src_install),
59 +# - IDEPEND if it must be resolvable at install time (e.g. it is used by
60 +# 'fowners' in pkg_preinst),
61 +# - RDEPEND in every case.
62
63 if [[ -z ${_ACCT_USER_ECLASS} ]]; then
64 _ACCT_USER_ECLASS=1
65
66 case ${EAPI:-0} in
67 - 7) ;;
68 + 7|8) ;;
69 *) die "EAPI=${EAPI:-0} not supported";;
70 esac
71
72 --
73 2.31.1