Gentoo Archives: gentoo-dev

From: Patrick McLean <chutzpah@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH] acct-user.eclass: Support var overrides for user properties
Date: Tue, 05 Jan 2021 00:04:49
Message-Id: 20210104160441.10d59b1f@moya.linuxfreak.ca
In Reply to: Re: [gentoo-dev] [PATCH] acct-user.eclass: Support var overrides for user properties by "Michał Górny"
1 On Tue, 05 Jan 2021 00:54:58 +0100
2 Michał Górny <mgorny@g.o> wrote:
3
4 > On Mon, 2021-01-04 at 15:50 -0800, Patrick McLean wrote:
5 > > On Tue, 05 Jan 2021 00:16:49 +0100
6 > > Michał Górny <mgorny@g.o> wrote:
7 > > > On Mon, 2021-01-04 at 14:58 -0800, Patrick McLean wrote:
8 > > > > On Mon, 4 Jan 2021 18:08:02 +0100
9 > > > > Michał Górny <mgorny@g.o> wrote:
10 > > > > > Introduce a few variables to allow easy overrides of common user account
11 > > > > > proprerties, that is:
12 > > > > >
13 > > > > > - ACCT_USER_<username>_SHELL
14 > > > > > - ACCT_USER_<username>_HOME
15 > > > > > - ACCT_USER_<username>_HOME_OWNER
16 > > > > > - ACCT_USER_<username>_HOME_PERMS
17 > > > > > - ACCT_USER_<username>_GROUPS
18 > > > > > - ACCT_USER_<username>_GROUPS_ADD
19 > > > >
20 > > > > Please also add a way to override the UID/GID for the user/group.
21 > > >
22 > > > Damn it, and I thought I'd avoid that ;-). But do we really need it?
23 > > > The eclass doesn't enforce UID/GID by default if the user exists
24 > > > already, so it's a bit tangential to the original problem.
25 > > >
26 > >
27 > > The user needs to already exist for that to be helpful. When one using
28 > > automation to build/deploy large numbers of Gentoo systems, it's quite
29 > > useful to have control over that sort of things. At the moment, the
30 > > only way is to fork the ebuilds, which of course means they need to be
31 > > kept in sync.
32 >
33 > Ok, I'll keep that mind. However, I suppose you won't mind me
34 > addressing that separately? Unlike the patch sent, ID-related logic
35 > needs to be done twice (due to pkg_pretend). Ideally, could you report
36 > a feature request on Bugzilla?
37
38 Sure, I don't mind it being addressed separately. I created a feature
39 request on Bugzilla: https://bugs.gentoo.org/763615