Gentoo Archives: gentoo-dev

From: Alec Warner <antarus@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild
Date: Thu, 18 Oct 2007 04:15:10
Message-Id: b41005390710172101v4da2b2b0n3e26a4da733edc42@mail.gmail.com
In Reply to: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild by Doug Goldstein
1 On 10/17/07, Doug Goldstein <cardoe@g.o> wrote:
2 > Donnie Berkholz wrote:
3 > > On 15:55 Wed 17 Oct , Daniel Drake (dsd) wrote:
4 > >> 1.1 sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild
5 > >>
6 > >> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild?rev=1.1&view=markup
7 > >> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild?rev=1.1&content-type=text/plain
8 > >
9 > >> keepdir /var/log/sandbox
10 > >> fowners root:portage /var/log/sandbox
11 > >> fperms 0770 /var/log/sandbox
12 > >>
13 > >> cd ${S}
14 > >> dodoc AUTHORS ChangeLog NEWS README
15 > >> }
16 > >>
17 > >> pkg_preinst() {
18 > >> chown root:portage ${D}/var/log/sandbox
19 > >> chmod 0770 ${D}/var/log/sandbox
20 > >> }
21 > >
22 > > How come you need to repeat the permissions like this?
23 > >
24 > > Also, quoting. =)
25 > >
26 > > Thanks,
27 > > Donnie
28 >
29 > Also, pkg_preinst() is not binary package safe. So unless the portage
30 > group is always the same gid on EVERY Gentoo box. This will break binary
31 > packages.
32
33 Eh?
34
35 pkg_* runs for binpkgs...so depending on the target machine it will
36 chown appropriately in $IMAGE and then merge to the livefs.
37
38 If you build the binpkg on machine A and install it on B, pkg_preinst
39 will run on both (once for the build and one for the install)
40
41 -Alec
42 --
43 gentoo-dev@g.o mailing list

Replies