[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    Re: [gentoo-dev] Re: [RFC, PATCH] user.eclass: gracefully return when unprivileged
From:       Mike Gilbert <floppym () gentoo ! org>
Date:       2017-11-27 15:16:29
Message-ID: CAJ0EP41MBDaLiMbGpN1W3jNyB5TGMtKTFcunscPQFbUnD+3ghw () mail ! gmail ! com
[Download RAW message or body]

On Mon, Nov 27, 2017 at 6:46 AM, Aaron W. Swenson <titanofold@gentoo.org> wrote:
> On 2017-11-26 10:02, Benda Xu wrote:
>> Hi Patrick,
>>
>> Patrick McLean <chutzpah@gentoo.org> writes:
>>
>> > I use portage as non-root all the time when developing and testing
>> > ebuilds, via the "ebuild" command.
>>
>> The enewgroup and enewuser are used in pkg_* functions, as documented in
>> user.eclass _assert_pkg_ebuild_phase() function.  They require root to
>> execute.
>>
>> So no worries, your workflow will not be affected.
>
> Actually, it will probably be better.
>
> You should now be able to do compilation and tests without having the
> user/group created. For example, dev-db/postgresql doesn't need the
> postgres system user and group in order to successfully run through
> src_test and src_install. It just needs the user/group at run time.

Sounds like the enewuser call should be moved from pkg_setup to
pkg_postinst in that case.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic