Gentoo Archives: gentoo-dev

From: David Michael <fedora.dm0@×××××.com>
To: gentoo-dev@l.g.o
Cc: floppym@g.o
Subject: Re: [gentoo-dev] [PATCH 1/2] acct-group.eclass: declare the missing dependency on shadow
Date: Tue, 08 Sep 2020 16:10:17
Message-Id: CAEvUa7nu_Gqc3XhvvHDWmZUu2K+14B5s-N1qaYh10VNJuxeG6A@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH 1/2] acct-group.eclass: declare the missing dependency on shadow by "Michał Górny"
1 On Tue, Sep 8, 2020 at 12:04 PM Michał Górny <mgorny@g.o> wrote:
2 > On Tue, 2020-09-08 at 11:57 -0400, David Michael wrote:
3 > > Signed-off-by: David Michael <fedora.dm0@×××××.com>
4 > > ---
5 > > eclass/acct-group.eclass | 6 +++++-
6 > > 1 file changed, 5 insertions(+), 1 deletion(-)
7 > >
8 > > diff --git a/eclass/acct-group.eclass b/eclass/acct-group.eclass
9 > > index 19a378e0b06..56e6391ef42 100644
10 > > --- a/eclass/acct-group.eclass
11 > > +++ b/eclass/acct-group.eclass
12 > > @@ -34,8 +34,12 @@
13 > > if [[ -z ${_ACCT_GROUP_ECLASS} ]]; then
14 > > _ACCT_GROUP_ECLASS=1
15 > >
16 > > +# The groupadd utility is called in pkg_preinst. It should be in IDEPEND.
17 > > case ${EAPI:-0} in
18 > > - 7) ;;
19 > > + 7)
20 > > + BDEPEND="userland_GNU? ( sys-apps/shadow )"
21 >
22 > Nothing from shadow is used in src_install, so this BDEPEND is
23 > unnecessary.
24
25 It is a workaround for EAPI 7's lack of IDEPEND to attempt to handle
26 cross-compiling, where RDEPEND alone would never attempt to install
27 the package in the native root. Other packages and eclasses have been
28 using this convention for the same reason (Emacs, fcaps.eclass, etc.).
29
30 Thanks.
31
32 David