Gentoo Archives: gentoo-dev

From: Peter Stuge <peter@×××××.se>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] user.eclass ignores ROOT/SYSROOT
Date: Tue, 05 May 2020 20:22:12
Message-Id: 20200505202207.21657.qmail@stuge.se
1 Hi,
2
3 I'm trying something out over here and I'm surprised to find that
4 acct-group/* do not work with ROOT+SYSROOT != "/".
5
6 Should I file yet another bug about this?
7
8 I suppose the limitation is in user.eclass, but what about the 11 bugs
9 already filed about exactly this problem?
10
11 They are easy to see in the dup bug list at https://bugs.gentoo.org/53269
12
13 Unfortunately mgorny closed 53269 WONTFIX because GLEP-27 is Deferred,
14 causing all dup and dep bugs to be forgotten. Sad panda.
15
16
17 --8<-- reproduce
18 # export r=$(mktemp -d)
19 # ROOT=$r SYSROOT=$r strace -fe execve emerge baselayout acct-group/ftp 2>&1 | grep groupadd
20 [pid 13269] execve("/usr/sbin/groupadd", ["groupadd", "-r", "-g", "21", "ftp"], 0x5d7e299e2340 /* 227 vars */) = 0
21 groupadd: cannot lock /etc/group; try again later.
22 * groupadd -r ${opts} "${egroup}" || die
23 * groupadd -r ${opts} "${egroup}" || die
24 -->8--
25
26 In my particular case -R $r would work just fine, but as can be seen
27 in several of those 11 dup bugs it is not a general solution.
28
29
30 Any ideas on how to solve this?
31
32
33 Thanks
34
35 //Peter

Replies

Subject Author
Re: [gentoo-dev] user.eclass ignores ROOT/SYSROOT David Michael <fedora.dm0@×××××.com>
Re: [gentoo-dev] user.eclass ignores ROOT/SYSROOT Bertrand Jacquin <bertrand@×××××××.bzh>