Gentoo Archives: gentoo-catalyst

From: Peter Stuge <peter@×××××.se>
To: gentoo-catalyst@l.g.o
Subject: Re: [gentoo-catalyst] Too many problems with groupadd when creating stage3
Date: Thu, 15 Oct 2009 17:16:24
Message-Id: 20091015171622.19436.qmail@stuge.se
In Reply to: Re: [gentoo-catalyst] Too many problems with groupadd when creating stage3 by "Juan Luis Pérez Pérez"
1 Juan Luis Pérez Pérez wrote:
2 > openldap ebuild calls enewgroup and fails.
3 > dbus ebuild calls enewgroup and fails.
4
5 Yes, this is understood. Several other ebuilds also call enewgroup
6 and enewuser, and would also fail if emerged at the same point.
7
8 enewgroup fails because eutils.eclass implements that function with a
9 call to groupadd (not the problem!) but there is no groupadd command
10 available in the system at that point (the problem!).
11
12 So where is the problem exactly? I don't know.
13
14 Make eutils.eclass somehow ensure that the neccessary commands will
15 be available?
16
17 Make eutils.eclass depend on shadow? (I don't like that idea.)
18 Have an alternative implementation for these commands built into
19 eutils.class as fallback? (I don't like that either.)
20 Have an alternative implementation somewhere else? Where?
21
22 Make all ebuilds which call enewgroup or similar functions depend on
23 shadow? (Feels very wrong to me.)
24
25
26 //Peter