Gentoo Archives: gentoo-dev

From: David Michael <fedora.dm0@×××××.com>
To: gentoo-dev@l.g.o
Cc: mgorny@g.o
Subject: [gentoo-dev] [PATCH 3/4] acct-group.eclass: EAPI 8 support
Date: Tue, 22 Jun 2021 16:46:27
Message-Id: 87bl7xvodz.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-group.eclass | 20 +++++++++++---------
17 1 file changed, 11 insertions(+), 9 deletions(-)
18
19 diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass
20 index 11a9f29e625..e56635d3a09 100644
21 --- a/eclass/acct-group.eclass
22 +++ b/eclass/acct-group.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-group.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 group entry
36 # @DESCRIPTION:
37 # This eclass represents and creates a single group entry. The name
38 @@ -20,22 +20,24 @@
39 # and add an ebuild with the following contents:
40 #
41 # @CODE
42 -# EAPI=7
43 +# EAPI=8
44 # inherit acct-group
45 # ACCT_GROUP_ID=200
46 # @CODE
47 #
48 -# Then you add appropriate dependency to your package. The dependency
49 -# type(s) should be:
50 -# - DEPEND (+ RDEPEND) if the group is already needed at build time,
51 -# - RDEPEND if it is needed at install time (e.g. you 'fowners' files
52 -# in pkg_preinst) or run time.
53 +# Then you add appropriate dependencies to your package. Note that the build
54 +# system might need to resolve names, too. The dependency type(s) should be:
55 +# - BDEPEND if the group must be resolvable at build time (e.g. it is used by
56 +# 'fowners' in src_install),
57 +# - IDEPEND if it must be resolvable at install time (e.g. it is used by
58 +# 'fowners' in pkg_preinst),
59 +# - RDEPEND in every case.
60
61 if [[ -z ${_ACCT_GROUP_ECLASS} ]]; then
62 _ACCT_GROUP_ECLASS=1
63
64 case ${EAPI:-0} in
65 - 7) ;;
66 + 7|8) ;;
67 *) die "EAPI=${EAPI:-0} not supported";;
68 esac
69
70 --
71 2.31.1

Replies

Subject Author
Re: [gentoo-dev] [PATCH 3/4] acct-group.eclass: EAPI 8 support Ulrich Mueller <ulm@g.o>