Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] enewuser/enewgroup getting their own eclass
Date: Fri, 25 Nov 2005 19:29:33
Message-Id: 20051125192457.GE19165@toucan.gentoo.org
In Reply to: Re: [gentoo-dev] enewuser/enewgroup getting their own eclass by Chris Gianelloni
1 On Fri, Nov 25, 2005 at 09:24:44AM -0500, Chris Gianelloni wrote:
2 > On Thu, 2005-11-24 at 19:34 +0000, Mike Frysinger wrote:
3 > > On Thu, Nov 24, 2005 at 08:54:41AM -0500, Chris Gianelloni wrote:
4 > > > On Thu, 2005-11-24 at 03:44 +0000, Mike Frysinger wrote:
5 > > > > On Wed, Nov 23, 2005 at 01:15:52PM -0500, Chris Gianelloni wrote:
6 > > > > > OK. I've been looking at some of these issues we've been having, and
7 > > > > > I've been thinking of moving enewuser, egetent, and enewgroup to their
8 > > > > > own eclass. This will resolve some issues with things in system, or
9 > > > > > otherwise early on, requiring shadow on Linux to get useradd. Two
10 > > > > > examples of this are bug #113298 and bug #94745. By putting them in
11 > > > > > their own eclass, we can keep from adding shadow to DEPEND in eutils,
12 > > > > > while still putting the dependency in the eclass that uses it.
13 > > > >
14 > > > > i think i suggested this somewhere before, but why dont we just add
15 > > > > shadow to packages.build ... then it'll be in stage[123] and the DEPEND
16 > > > > will be a moot point
17 > > >
18 > > > That doesn't solve the issue.
19 > >
20 > > of course it does ... putting a package in packages.build means it will
21 > > be in all stages which means no package (like cronbase) will ever fail
22 > > again because the useradd binaries will always exist
23 >
24 > I'm looking to minimize what is in a stage1 tarball, not increase it. I
25 > would much prefer that we instead had a proper dependency tree, than
26 > hacking around it. Applications that need to add users on Linux
27 > *should* DEPEND on shadow. They should not rely on it being already
28 > present.
29
30 and when we move the user management hacks out of eclasses and into
31 portage itself, where do you think shadow will end up ? in stage1 is
32 my guess
33
34 i wouldnt qualify shadow as a part of a proper dependency tree since
35 it's the ebuild itself that requires it, not the package
36
37 > Plus, your solution does not work retroactively to repair
38 > issues with the 2005.0, 2005.1, or 2005.1-r1 stages, while mine does.
39
40 tell users to stop using stage[12], you're already going that route :p
41 -mike
42 --
43 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] enewuser/enewgroup getting their own eclass Chris Gianelloni <wolf31o2@g.o>