public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild
       [not found] <E1IiBEq-0003K6-Vv@stork.gentoo.org>
@ 2007-10-18  0:51 ` Donnie Berkholz
  2007-10-18  3:11   ` Doug Goldstein
  0 siblings, 1 reply; 4+ messages in thread
From: Donnie Berkholz @ 2007-10-18  0:51 UTC (permalink / raw
  To: gentoo-dev, dsd

On 15:55 Wed 17 Oct     , Daniel Drake (dsd) wrote:
> 1.1                  sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild
> 
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild?rev=1.1&view=markup
> 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

> 	keepdir /var/log/sandbox
> 	fowners root:portage /var/log/sandbox
> 	fperms 0770 /var/log/sandbox
> 
> 	cd ${S}
> 	dodoc AUTHORS ChangeLog NEWS README
> }
> 
> pkg_preinst() {
> 	chown root:portage ${D}/var/log/sandbox
> 	chmod 0770 ${D}/var/log/sandbox
> }

How come you need to repeat the permissions like this?

Also, quoting. =)

Thanks,
Donnie
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild
  2007-10-18  0:51 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild Donnie Berkholz
@ 2007-10-18  3:11   ` Doug Goldstein
  2007-10-18  4:01     ` Alec Warner
  0 siblings, 1 reply; 4+ messages in thread
From: Doug Goldstein @ 2007-10-18  3:11 UTC (permalink / raw
  To: gentoo-dev

Donnie Berkholz wrote:
> On 15:55 Wed 17 Oct     , Daniel Drake (dsd) wrote:
>> 1.1                  sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild
>>
>> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild?rev=1.1&view=markup
>> 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
> 
>> 	keepdir /var/log/sandbox
>> 	fowners root:portage /var/log/sandbox
>> 	fperms 0770 /var/log/sandbox
>>
>> 	cd ${S}
>> 	dodoc AUTHORS ChangeLog NEWS README
>> }
>>
>> pkg_preinst() {
>> 	chown root:portage ${D}/var/log/sandbox
>> 	chmod 0770 ${D}/var/log/sandbox
>> }
> 
> How come you need to repeat the permissions like this?
> 
> Also, quoting. =)
> 
> Thanks,
> Donnie

Also, pkg_preinst() is not binary package safe. So unless the portage 
group is always the same gid on EVERY Gentoo box. This will break binary 
packages.

-- 
Doug Goldstein <cardoe@gentoo.org>
http://dev.gentoo.org/~cardoe/
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild
  2007-10-18  3:11   ` Doug Goldstein
@ 2007-10-18  4:01     ` Alec Warner
  2007-10-29 11:57       ` Mike Frysinger
  0 siblings, 1 reply; 4+ messages in thread
From: Alec Warner @ 2007-10-18  4:01 UTC (permalink / raw
  To: gentoo-dev

On 10/17/07, Doug Goldstein <cardoe@gentoo.org> wrote:
> Donnie Berkholz wrote:
> > On 15:55 Wed 17 Oct     , Daniel Drake (dsd) wrote:
> >> 1.1                  sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild
> >>
> >> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild?rev=1.1&view=markup
> >> 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
> >
> >>      keepdir /var/log/sandbox
> >>      fowners root:portage /var/log/sandbox
> >>      fperms 0770 /var/log/sandbox
> >>
> >>      cd ${S}
> >>      dodoc AUTHORS ChangeLog NEWS README
> >> }
> >>
> >> pkg_preinst() {
> >>      chown root:portage ${D}/var/log/sandbox
> >>      chmod 0770 ${D}/var/log/sandbox
> >> }
> >
> > How come you need to repeat the permissions like this?
> >
> > Also, quoting. =)
> >
> > Thanks,
> > Donnie
>
> Also, pkg_preinst() is not binary package safe. So unless the portage
> group is always the same gid on EVERY Gentoo box. This will break binary
> packages.

Eh?

pkg_* runs for binpkgs...so depending on the target machine it will
chown appropriately in $IMAGE and then merge to the livefs.

If you build the binpkg on machine A and install it on B, pkg_preinst
will run on both (once for the build and one for the install)

-Alec
-- 
gentoo-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild
  2007-10-18  4:01     ` Alec Warner
@ 2007-10-29 11:57       ` Mike Frysinger
  0 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2007-10-29 11:57 UTC (permalink / raw
  To: gentoo-dev; +Cc: Alec Warner

[-- Attachment #1: Type: text/plain, Size: 1666 bytes --]

On Thursday 18 October 2007, Alec Warner wrote:
> On 10/17/07, Doug Goldstein <cardoe@gentoo.org> wrote:
> > Donnie Berkholz wrote:
> > > On 15:55 Wed 17 Oct     , Daniel Drake (dsd) wrote:
> > >> 1.1                  sys-apps/sandbox/sandbox-1.2.18.1-r1.ebuild
> > >>
> > >> file :
> > >> http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandb
> > >>ox-1.2.18.1-r1.ebuild?rev=1.1&view=markup plain:
> > >> http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/sandbox/sandb
> > >>ox-1.2.18.1-r1.ebuild?rev=1.1&content-type=text/plain
> > >>
> > >>      keepdir /var/log/sandbox
> > >>      fowners root:portage /var/log/sandbox
> > >>      fperms 0770 /var/log/sandbox
> > >>
> > >>      cd ${S}
> > >>      dodoc AUTHORS ChangeLog NEWS README
> > >> }
> > >>
> > >> pkg_preinst() {
> > >>      chown root:portage ${D}/var/log/sandbox
> > >>      chmod 0770 ${D}/var/log/sandbox
> > >> }
> > >
> > > How come you need to repeat the permissions like this?
> > >
> > > Also, quoting. =)
> > >
> > > Thanks,
> > > Donnie
> >
> > Also, pkg_preinst() is not binary package safe. So unless the portage
> > group is always the same gid on EVERY Gentoo box. This will break binary
> > packages.
>
> Eh?
>
> pkg_* runs for binpkgs...so depending on the target machine it will
> chown appropriately in $IMAGE and then merge to the livefs.
>
> If you build the binpkg on machine A and install it on B, pkg_preinst
> will run on both (once for the build and one for the install)

Alec is correct, this is perfectly binary safe.  but people should forget he 
ever said "$IMAGE" and pretend he said "$D" ;)
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-29 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1IiBEq-0003K6-Vv@stork.gentoo.org>
2007-10-18  0:51 ` [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/sandbox: ChangeLog sandbox-1.2.18.1-r1.ebuild Donnie Berkholz
2007-10-18  3:11   ` Doug Goldstein
2007-10-18  4:01     ` Alec Warner
2007-10-29 11:57       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox