Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup

2012-05-13 Thread Michał Górny
On Sun, 13 May 2012 00:48:00 +0200 Michael Weber wrote: > On 01/19/2011 11:44 PM, Mike Frysinger wrote: > > 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 > > I noticed a rather an

Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup

2012-05-12 Thread Michael Weber
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 01/19/2011 11:44 PM, Mike Frysinger wrote: > 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 I noticed a rather annoying test inside en

Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup

2011-01-19 Thread Mike Frysinger
On Wednesday, January 19, 2011 12:18:24 Michał Górny wrote: > On Wed, 19 Jan 2011 16:38:10 + 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 p

Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup

2011-01-19 Thread Michał Górny
On Wed, 19 Jan 2011 16:38:10 + 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

Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup

2011-01-19 Thread Alec Warner
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 no

Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup

2011-01-19 Thread Michał Górny
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. -- Best regards, Michał Górny signatur

[gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup

2011-01-19 Thread Paweł Hajdan, Jr.
There was a discussion on irc about a package that called enewuser and enewgroup from pkg_preinst. That made it fail on fresh install, because the new user was needed at the src_install time (for ownership of the installed files). However, if the user was already present on the system, it was just