Gentoo Archives: gentoo-dev

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Use GLEP27!
Date: Wed, 16 Dec 2015 01:23:35
Message-Id: 5670BD09.5060503@gentoo.org
In Reply to: Re: [gentoo-dev] Use GLEP27! by Mike Frysinger
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 12/15/15 4:55 PM, Mike Frysinger wrote:
5 > On 15 Dec 2015 22:35, Ulrich Mueller wrote:
6 >> Whatever the format will be, the more important question is where this
7 >> would be implemented:
8 >>
9 >> - In the package manager, with user and group definition in profiles.
10 >> This seems to be what GLEP 27 suggests, and as far as I can see, it
11 >> would require an EAPI bump. Certainly doable, but last time we
12 >> bumped profiles to a new EAPI we had a rather long transition
13 >> period.
14 >>
15 >> - In user.eclass, which could be extended to use the EUSERS and
16 >> EGROUPS variables defined in ebuilds. The problem is, where would
17 >> one store the user and group definitions then? Profiles cannot be
18 >> accessed from an eclass.
19 >
20 > long term, i think profiles are better to hold the db as it provides for
21 > clean stacking and is trivial for site-specific extension/control, as well
22 > as image builders via something like catalyst.
23 >
24 > short/mid term, i was thinking of writing a new package that holds the db
25 > and tools to query/manage it. user.eclass would DEPEND on it and ask it
26 > for details, perhaps even doing the actual fs updates (the bash code here
27 > is not pretty wrt locks and python would be much nicer). that tool could
28 > even search additional site paths (like /usr/local) to locate overrides.
29
30 how do we get our own uid/gid's in there for our packages? just open a
31 bug against the new package?
32
33 >
34 >
35 > the API to ebuilds/eclasses would be unchanged. in CrOS, we only look at
36 > the first argument (the user/group name) and load all other details from
37 > the db. we could seamlessly migrate over existing ebuilds by opting in to
38 > this simpler form.
39 >
40 > maybe the short/mid term solution is enough to not get into profile mess
41 > even if i think it's the correct data storage location.
42 > -mike
43
44
45 - --
46 Anthony G. Basile, Ph.D.
47 Gentoo Linux Developer [Hardened]
48 E-Mail : blueness@g.o
49 GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA
50 GnuPG ID : F52D4BBA
51 -----BEGIN PGP SIGNATURE-----
52 Comment: GPGTools - https://gpgtools.org
53
54 iEYEARECAAYFAlZwvQcACgkQl5yvQNBFVTVEaACfT1nMMFXsPyqM0u4rGDHJP29/
55 pFkAn0XOcHTmVAAp9K9opvWT9isuMOxp
56 =xPUD
57 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Use GLEP27! Mike Frysinger <vapier@g.o>