Gentoo Archives: gentoo-dev

From: "Alin Năstac" <mrness@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-proxy/polipo: ChangeLog polipo-1.0.3.ebuild polipo-1.0.1.ebuild polipo-1.0.0.ebuild polipo-0.9.12-r1.ebuild
Date: Sat, 03 Nov 2007 19:43:48
Message-Id: 472CCEB6.3090601@gentoo.org
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-proxy/polipo: ChangeLog polipo-1.0.3.ebuild polipo-1.0.1.ebuild polipo-1.0.0.ebuild polipo-0.9.12-r1.ebuild by Donnie Berkholz
1 Donnie Berkholz wrote:
2 > On 10:37 Sat 03 Nov , Alin Năstac wrote:
3 >
4 >> You have to create users and groups in both pkg_ functions:
5 >> - pkg_setup : when installation is performed the usual way, through
6 >> compilation
7 >> - pkg_preinst: when installed from binary package (-k)
8 >>
9 >
10 > You shouldn't, all pkg_* functions should always be run regardless of
11 > binary or source package. File a portage bug if pkg_setup() isn't
12 > getting run, don't work around it.
13 >
14
15 If that is true (dunno, I didn't tested it yet) then someone should
16 correct http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml .
17
18 Quote from the aforementioned document:
19
20 pkg_setup Use this function to perform any miscellaneous
21 prerequisite tasks. This might include checking for an existing
22 configuration file. If it is necessary to add users here, you must
23 also do this check in pkg_preinst() before the package gets installed.

Attachments

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

Replies