Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>, antarus@g.o, phajdan.jr@g.o
Subject: Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup
Date: Wed, 19 Jan 2011 22:44:30
Message-Id: 201101191744.31111.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup by "Michał Górny"
1 On Wednesday, January 19, 2011 12:18:24 Michał Górny wrote:
2 > On Wed, 19 Jan 2011 16:38:10 +0000 Alec Warner wrote:
3 > > On Wed, Jan 19, 2011 at 3:47 PM, Michał Górny wrote:
4 > > > On Wed, 19 Jan 2011 16:25:03 +0100 Paweł Hajdan, Jr. wrote:
5 > > >> "If enewuser or enewgroup is called from outside of pkg_setup,
6 > > >> fail"
7 > > >
8 > > > It is useful sometimes to call it in pkg_postinst(), if the
9 > > > user/group is needed at runtime and not during install-time.
10 > >
11 > > What difference is there if you run it during setup vs postinst?
12 >
13 > If the build fails or user aborts the merge, his/her system
14 > is not junked with an unnecessary account/group.
15
16 this is why we allow people to pick the appropriate step. ebuilds should be
17 using pkg_{pre,post}inst unless the user/group is needed at src_* time.
18 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies