Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/4] acct-group.eclass: Fix for when building in a rooted prefix (EROOT)
Date: Wed, 07 Dec 2022 16:53:16
Message-Id: CAJ0EP40w2MUnd7covLQuTdMdmFCqujiBhy8GedhdbpCkWhryrQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] [PATCH 1/4] acct-group.eclass: Fix for when building in a rooted prefix (EROOT) by James Le Cuirot
1 On Wed, Dec 7, 2022 at 4:24 AM James Le Cuirot <chewi@g.o> wrote:
2 > The new eclasses also skip the operation if you are root. As that bug report
3 > says, running a prefixed system as root is probably unsupported. I was doing
4 > this as root into a ROOTed prefix though, which is slightly different. Should
5 > we also skip the operation if EPREFIX non-empty? I'll think about it.
6
7 I would be in favor of skipping adding users/groups if EPREFIX is
8 non-empty, at least as a temporary solution.
9
10 If someone presents a use case where adding users to
11 ${EROOT}/etc/passwd makes sense, we can revisit it then.

Replies