Gentoo Archives: gentoo-dev

From: "Jérémy Connat" <morderca@××××××××.net>
To: gentoo-dev@l.g.o
Cc: "Jérémy Connat" <morderca@××××××××.net>
Subject: [gentoo-dev] [PATCH 0/3] eclass: Fixing user/group creation when using different ROOT
Date: Fri, 15 Apr 2022 13:46:25
Message-Id: 20220415134628.23069-1-morderca@morderca.net
1 MIME-Version: 1.0
2 Content-Type: text/plain; charset=UTF-8
3 Content-Transfer-Encoding: 8bit
4
5 This is a series of patch aiming to fix a defect in acct-user/acct-group packages.
6
7 Currently, when cross-compiling, users/groups are created in the host and not the targeted root.
8
9 You can test this with the following commands:
10 # mkdir /tmp/nroot
11 # emerge --root=/tmp/nroot --sysroot=/ baselayout acct-user/postfix
12
13 With the following patches, postfix user/group should be in /tmp/nroot/etc/{passwd,group}
14
15 Jérémy Connat (3):
16 eclass/user.eclass: Fixing user/group creation when using different
17 ROOT
18 eclass/user-info.eclass: Fixing user/group creation when using
19 different ROOT
20 eclass/acct-user.eclass: Fixing user/group creation when using
21 different ROOT
22
23 eclass/acct-user.eclass | 51 ++++++++++++----
24 eclass/user-info.eclass | 35 +++++++++--
25 eclass/user.eclass | 128 ++++++++++++++++++++++++++++++++++------
26 3 files changed, 180 insertions(+), 34 deletions(-)
27
28 --
29 2.35.1

Replies