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

List:       gentoo-dev
Subject:    Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup
From:       Mike Frysinger <vapier () gentoo ! org>
Date:       2011-01-19 22:44:29
Message-ID: 201101191744.31111.vapier () gentoo ! org
[Download RAW message or body]


On Wednesday, January 19, 2011 12:18:24 Michał Górny wrote:
> On Wed, 19 Jan 2011 16:38:10 +0000 Alec Warner wrote:
> > On Wed, Jan 19, 2011 at 3:47 PM, Michał Górny wrote:
> > > On Wed, 19 Jan 2011 16:25:03 +0100 Paweł Hajdan, Jr. wrote:
> > >> "If enewuser or enewgroup is called from outside of pkg_setup,
> > >> fail"
> > > 
> > > It is useful sometimes to call it in pkg_postinst(), if the
> > > user/group is needed at runtime and not during install-time.
> > 
> > What difference is there if you run it during setup vs postinst?
> 
> If the build fails or user aborts the merge, his/her system
> is not junked with an unnecessary account/group.

this is why we allow people to pick the appropriate step.  ebuilds should be 
using pkg_{pre,post}inst unless the user/group is needed at src_* time.
-mike

["signature.asc" (application/pgp-signature)]

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

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