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