* [gentoo-dev] Directory create in ebuilds
@ 2002-08-07 20:32 Jon Griffin
2002-08-07 20:41 ` George Shapovalov
0 siblings, 1 reply; 14+ messages in thread
From: Jon Griffin @ 2002-08-07 20:32 UTC (permalink / raw
To: gentoo-dev
I need to create the /etc/logcheck directory and it seems that (sandbox?)
is preventing this. Any help would be appreciated and if I missed it in the
doc please let me know.
Here is the error:
Creating install directory /etc/logcheck
ACCESS DENIED mkdir: /etc/logcheck
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-07 20:32 [gentoo-dev] Directory create in ebuilds Jon Griffin
@ 2002-08-07 20:41 ` George Shapovalov
2002-08-07 20:46 ` Re[2]: " Jon Griffin
2002-08-07 23:47 ` Mark Guertin
0 siblings, 2 replies; 14+ messages in thread
From: George Shapovalov @ 2002-08-07 20:41 UTC (permalink / raw
To: gentoo-dev
dodir /etc/logcheck
also please check the contents of /usr/lib/portage/bin/ for what's available
(such as dobin, dodoc ...).
You should be using these instead of direct mkdir, cp, mv...
Sometimes you may want to do something nonstandsrd or may be some recursive
task and it may be desireble to do cp -r someplace omeother_place. In any
case, *do not* perform any such operation on a "live sustem", that is right
under /usr or whereever. Use ${D}/usr/what/ever instead. ${D} will point to
the right place, where package gets installed before merging in.
Also, it would be usefull to read some doc on sandbox'ing. This is mentioned
in developer docs on gentoo.org, "man emerge" and "man ebuild" should also
help.
George
On Wednesday 07 August 2002 13:32, Jon Griffin wrote:
> I need to create the /etc/logcheck directory and it seems that (sandbox?)
> is preventing this. Any help would be appreciated and if I missed it in the
> doc please let me know.
>
> Here is the error:
>
> Creating install directory /etc/logcheck
> ACCESS DENIED mkdir: /etc/logcheck
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re[2]: [gentoo-dev] Directory create in ebuilds
2002-08-07 20:41 ` George Shapovalov
@ 2002-08-07 20:46 ` Jon Griffin
2002-08-07 23:47 ` Mark Guertin
1 sibling, 0 replies; 14+ messages in thread
From: Jon Griffin @ 2002-08-07 20:46 UTC (permalink / raw
To: gentoo-dev@gentoo.org
Thanks,
Now I know where to look.
On Wed, 7 Aug 2002 13:41:08 -0700 George Shapovalov <georges@its.caltech.edu> wrote:
> dodir /etc/logcheck
> also please check the contents of /usr/lib/portage/bin/ for what's
> available
> (such as dobin, dodoc ...).
> You should be using these instead of direct mkdir, cp, mv...
>
> Sometimes you may want to do something nonstandsrd or may be some
> recursive
> task and it may be desireble to do cp -r someplace omeother_place. In
> any
> case, *do not* perform any such operation on a "live sustem", that is
> right
> under /usr or whereever. Use ${D}/usr/what/ever instead. ${D} will point
> to
> the right place, where package gets installed before merging in.
> Also, it would be usefull to read some doc on sandbox'ing. This is
> mentioned
> in developer docs on gentoo.org, "man emerge" and "man ebuild" should
> also
> help.
>
> George
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-07 20:41 ` George Shapovalov
2002-08-07 20:46 ` Re[2]: " Jon Griffin
@ 2002-08-07 23:47 ` Mark Guertin
2002-08-07 23:11 ` Marius Bernklev
1 sibling, 1 reply; 14+ messages in thread
From: Mark Guertin @ 2002-08-07 23:47 UTC (permalink / raw
To: gentoo-dev
On Wednesday 07 August 2002 20:41, George Shapovalov wrote:
> dodir /etc/logcheck
> also please check the contents of /usr/lib/portage/bin/ for what's
> available (such as dobin, dodoc ...).
> You should be using these instead of direct mkdir, cp, mv...
you can also look at:
man 5 ebuild
Mark
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-07 23:47 ` Mark Guertin
@ 2002-08-07 23:11 ` Marius Bernklev
2002-08-07 23:57 ` Mark Guertin
0 siblings, 1 reply; 14+ messages in thread
From: Marius Bernklev @ 2002-08-07 23:11 UTC (permalink / raw
To: Mark Guertin; +Cc: gentoo-dev
Mark Guertin <gerk@gentoo.org> writes:
> On Wednesday 07 August 2002 20:41, George Shapovalov wrote:
>> dodir /etc/logcheck
>> also please check the contents of /usr/lib/portage/bin/ for what's
>> available (such as dobin, dodoc ...).
>> You should be using these instead of direct mkdir, cp, mv...
>
> you can also look at:
>
> man 5 ebuild
...which is in dire need of updating. As is the howto on http.
Marius
--
A. Top posters.
Q. What is the most annoying thing on mailing lists?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-07 23:11 ` Marius Bernklev
@ 2002-08-07 23:57 ` Mark Guertin
2002-08-07 23:17 ` Marius Bernklev
0 siblings, 1 reply; 14+ messages in thread
From: Mark Guertin @ 2002-08-07 23:57 UTC (permalink / raw
To: Marius Bernklev; +Cc: gentoo-dev
On Wednesday 07 August 2002 23:11, Marius Bernklev wrote:
> > you can also look at:
> >
> > man 5 ebuild
>
> ...which is in dire need of updating. As is the howto on http.
Does that mean you're volunteering? :P
Mark
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-07 23:57 ` Mark Guertin
@ 2002-08-07 23:17 ` Marius Bernklev
2002-08-08 4:09 ` Charles Lacour
0 siblings, 1 reply; 14+ messages in thread
From: Marius Bernklev @ 2002-08-07 23:17 UTC (permalink / raw
To: Mark Guertin; +Cc: gentoo-dev
Mark Guertin <gerk@gentoo.org> writes:
> On Wednesday 07 August 2002 23:11, Marius Bernklev wrote:
>> > you can also look at:
>> >
>> > man 5 ebuild
>>
>> ...which is in dire need of updating. As is the howto on http.
>
> Does that mean you're volunteering? :P
Oops. Oh well, at least python is easy to read. :)
Marius
--
A. Top posters.
Q. What is the most annoying thing on mailing lists?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-07 23:17 ` Marius Bernklev
@ 2002-08-08 4:09 ` Charles Lacour
2002-08-08 8:35 ` Paul de Vrieze
0 siblings, 1 reply; 14+ messages in thread
From: Charles Lacour @ 2002-08-08 4:09 UTC (permalink / raw
To: Marius Bernklev, Mark Guertin; +Cc: gentoo-dev
On Wednesday 07 August 2002 18:17, Marius Bernklev wrote:
> Mark Guertin <gerk@gentoo.org> writes:
> > On Wednesday 07 August 2002 23:11, Marius Bernklev wrote:
> >> > you can also look at:
> >> > man 5 ebuild
> >> ...which is in dire need of updating. As is the howto on http.
> > Does that mean you're volunteering? :P
>
> Oops. Oh well, at least python is easy to read. :)
>
>
> Marius
_I'll_ volunteer to (re)write it, if someone will give me a boost up the
learning curve with Python.
I want to write some ebuilds myself, but I lack the time to figure out Python
cold. I quit learning (most) new languages about the time object-oriented
proogramming started up. The explanations of OOP in the early days were...
cryptic? Obtuse? A tangled bunch of gobbledygook? Something in that general
direction... Anyway, I wasn't working as a programmer, so I dropped out of
the "Language of the Month" club.
What I've seen of Python looks pretty easy, but there are some basic concepts
I don't have, and trying to reason backward to them from somebody else's code
hasn't worked too well.
I'd also like to get (and am willing to pay for with documentation of same)
an explanation of what exactly it is that sandbox does. (And probably a
couple of other pieces of portage.)
I know it keeps things from messing with the real filesystem, but _how_,
specifically? It's much harder to figure out why you're having a problem
with something when you have no idea what it's doing.
Since quasi-teaching somebody a language via email and such is not real high
on many people's list of fun things to do, I'll also put in a request for any
good online tutorials on doing Python. (And if the doc for portage still
needs to be done once I've mastered it, I'll be willing to help.)
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-08 4:09 ` Charles Lacour
@ 2002-08-08 8:35 ` Paul de Vrieze
0 siblings, 0 replies; 14+ messages in thread
From: Paul de Vrieze @ 2002-08-08 8:35 UTC (permalink / raw
To: Charles Lacour, Marius Bernklev, Mark Guertin; +Cc: gentoo-dev
On Thursday 08 August 2002 06:09, Charles Lacour wrote:
>
> I'd also like to get (and am willing to pay for with documentation of same)
> an explanation of what exactly it is that sandbox does. (And probably a
> couple of other pieces of portage.)
>
> I know it keeps things from messing with the real filesystem, but _how_,
> specifically? It's much harder to figure out why you're having a problem
> with something when you have no idea what it's doing.
>
> Since quasi-teaching somebody a language via email and such is not real
> high on many people's list of fun things to do, I'll also put in a request
> for any good online tutorials on doing Python. (And if the doc for portage
> still needs to be done once I've mastered it, I'll be willing to help.)
In short, sandbox replaces a number of glibc functions that concern the
filesystem. Examples of those functions are: fopen, mkdir, link, rename, etc.
All those functions are replaced with functions that check the place of the
file in the filesystem, and based on certain environment variables deny or
allow access to the functions. Because libsandbox.so is put in the
/lib/ld.so.preload file, all programs run first load this libsandbox before
anything else. This allows for the replacement of the glibc functions. BTW.
electric fence for example does the same trick on different functions
(malloc).
Paul
btw. I don't believe it is nescesarry to understand python to write ebuilds as
they are written entirely in bash.
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
@ 2002-08-07 23:57 Mark Guertin
0 siblings, 0 replies; 14+ messages in thread
From: Mark Guertin @ 2002-08-07 23:57 UTC (permalink / raw
To: gentoo-dev
On Wednesday 07 August 2002 23:11, Marius Bernklev wrote:
> > you can also look at:
> >
> > man 5 ebuild
>
> ...which is in dire need of updating. As is the howto on http.
Does that mean you're volunteering? :P
Mark
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [gentoo-dev] Directory create in ebuilds
@ 2002-08-08 16:09 Sean P. Kane
2002-08-08 18:33 ` Fredrik Jagenheim
0 siblings, 1 reply; 14+ messages in thread
From: Sean P. Kane @ 2002-08-08 16:09 UTC (permalink / raw
To: gentoo-dev
I'd also be interested in hearing about any really good Python
tutorials/books for people coming at it fresh and with a very rusty
programming background...grin....
Thanks,
Sean
-----Original Message-----
From: Charles Lacour [mailto:gentoo-dev@clacour.com]
Sent: Wednesday, August 07, 2002 21:10
To: Marius Bernklev; Mark Guertin
Cc:
Subject: Re: [gentoo-dev] Directory create in ebuilds
On Wednesday 07 August 2002 18:17, Marius Bernklev wrote:
> Mark Guertin <gerk@gentoo.org> writes:
> > On Wednesday 07 August 2002 23:11, Marius Bernklev wrote:
> >> > you can also look at:
> >> > man 5 ebuild
> >> ...which is in dire need of updating. As is the howto on http.
> > Does that mean you're volunteering? :P
>
> Oops. Oh well, at least python is easy to read. :)
>
>
> Marius
_I'll_ volunteer to (re)write it, if someone will give me a boost up the
learning curve with Python.
I want to write some ebuilds myself, but I lack the time to figure out
Python
cold. I quit learning (most) new languages about the time
object-oriented
proogramming started up. The explanations of OOP in the early days
were...
cryptic? Obtuse? A tangled bunch of gobbledygook? Something in that
general
direction... Anyway, I wasn't working as a programmer, so I dropped
out of
the "Language of the Month" club.
What I've seen of Python looks pretty easy, but there are some basic
concepts
I don't have, and trying to reason backward to them from somebody else's
code
hasn't worked too well.
I'd also like to get (and am willing to pay for with documentation of
same)
an explanation of what exactly it is that sandbox does. (And probably a
couple of other pieces of portage.)
I know it keeps things from messing with the real filesystem, but _how_,
specifically? It's much harder to figure out why you're having a
problem
with something when you have no idea what it's doing.
Since quasi-teaching somebody a language via email and such is not real
high
on many people's list of fun things to do, I'll also put in a request
for any
good online tutorials on doing Python. (And if the doc for portage still
needs to be done once I've mastered it, I'll be willing to help.)
_______________________________________________
gentoo-dev mailing list
gentoo-dev@gentoo.org
http://lists.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [gentoo-dev] Directory create in ebuilds
@ 2002-08-16 22:28 Sean P. Kane
2002-08-16 22:37 ` Mike Brockman
0 siblings, 1 reply; 14+ messages in thread
From: Sean P. Kane @ 2002-08-16 22:28 UTC (permalink / raw
To: gentoo-dev
It took me only two seconds as well, but I was looking for some opinions
on quality and approachability.
Sean
-----Original Message-----
From: Fredrik Jagenheim [mailto:humming@pobox.com]
Sent: Thursday, August 08, 2002 11:33
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Directory create in ebuilds
On Thu, Aug 08, 2002 at 09:09:46AM -0700, Sean P. Kane wrote:
>
> I'd also be interested in hearing about any really good Python
> tutorials/books for people coming at it fresh and with a very rusty
> programming background...grin....
Well, it took me two seconds to find this:
http://www.python.org/doc/Newbies.html
I can't say if it's of any use though, since it I've only
brushed the surface of Python myself.
//Humming, being more of a perl-person.
_______________________________________________
gentoo-dev mailing list
gentoo-dev@gentoo.org
http://lists.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-dev] Directory create in ebuilds
2002-08-16 22:28 Sean P. Kane
@ 2002-08-16 22:37 ` Mike Brockman
0 siblings, 0 replies; 14+ messages in thread
From: Mike Brockman @ 2002-08-16 22:37 UTC (permalink / raw
To: gentoo-dev
On 2002.08.17 00:28 Sean P. Kane wrote:
> It took me only two seconds as well, but I was looking for some
> opinions
> on quality and approachability.
>
> Sean
>
>
> -----Original Message-----
> From: Fredrik Jagenheim [mailto:humming@pobox.com]
> Sent: Thursday, August 08, 2002 11:33
> To: gentoo-dev@gentoo.org
> Subject: Re: [gentoo-dev] Directory create in ebuilds
>
>
> On Thu, Aug 08, 2002 at 09:09:46AM -0700, Sean P. Kane wrote:
> >
> > I'd also be interested in hearing about any really good Python
> > tutorials/books for people coming at it fresh and with a very rusty
> > programming background...grin....
>
> Well, it took me two seconds to find this:
> http://www.python.org/doc/Newbies.html
>
> I can't say if it's of any use though, since it I've only
> brushed the surface of Python myself.
>
> //Humming, being more of a perl-person.
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
>
I can attest to the fact that all the documentation at
http://www.python.org is most excellent.
Cheers,
Mike Brockman
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2002-08-16 22:37 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-07 20:32 [gentoo-dev] Directory create in ebuilds Jon Griffin
2002-08-07 20:41 ` George Shapovalov
2002-08-07 20:46 ` Re[2]: " Jon Griffin
2002-08-07 23:47 ` Mark Guertin
2002-08-07 23:11 ` Marius Bernklev
2002-08-07 23:57 ` Mark Guertin
2002-08-07 23:17 ` Marius Bernklev
2002-08-08 4:09 ` Charles Lacour
2002-08-08 8:35 ` Paul de Vrieze
-- strict thread matches above, loose matches on Subject: below --
2002-08-07 23:57 Mark Guertin
2002-08-08 16:09 Sean P. Kane
2002-08-08 18:33 ` Fredrik Jagenheim
2002-08-16 22:28 Sean P. Kane
2002-08-16 22:37 ` Mike Brockman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox