public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-dev] ACCESS VIOLATION WITH EBUILD
  2002-05-14 22:17 [gentoo-dev] ACCESS VIOLATION WITH EBUILD hanez
@ 2002-05-14 22:12 ` Spider
  2002-05-14 22:40   ` hanez
  0 siblings, 1 reply; 5+ messages in thread
From: Spider @ 2002-05-14 22:12 UTC (permalink / raw
  To: gentoo-dev

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

please look inside /usr/portage/skel.ebuild and see how its done there.

//Spider

begin  quote
On Wed, 15 May 2002 00:17:25 +0200
hanez <you@hanez.org> wrote:

> hello all,
> 
> i have some problems with an ebuild i made:
> 
> ###START SNIP
> 
> >>> Install myprogramm-0.9.0-r1 into 
> /var/tmp/portage/myprogramm-0.9.0-r1/image/ category media-sound
> Making install in src
> make[1]: Entering directory 
> `/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
> make[2]: Entering directory 
> `/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
> /bin/sh ../mkinstalldirs /usr/bin
>   /bin/install -c myprogramm /usr/bin/myprogramm
> ACCESS DENIED  open_wr:   /usr/bin/myprogramm
> /bin/install: cannot create regular file `/usr/bin/myprogramm':
> Permission denied
> make[2]: *** [install-binPROGRAMS] Error 1
> make[2]: Leaving directory 
> `/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
> make[1]: *** [install-am] Error 2
> make[1]: Leaving directory 
> `/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
> make: *** [install-recursive] Error 1
> strip:
> >>> Completed installing into
> >/var/tmp/portage/myprogramm-0.9.0-r1/image/
> 
> --------------------------- ACCESS VIOLATION SUMMARY 
> ---------------------------
> LOG FILE = "/tmp/sandbox-myprogramm-0.9.0-r1-12505.log"
> 
> open_wr:   /usr/bin/myprogramm
> ---------------------------------------------------------------------
> -----------!!! emerge aborting on  
> /usr/portage/media-sound/myprogramm/myprogramm-0.9.0-r1.ebuild .
> 
> ###STOP SNIP
> 
> when i compile "myprogramm" by hand there are no problems. the emerge
> process stops when installing the binary to /usr/bin/myprogramm. the
> LOG FILE on ly have this content:
> 
> ###START SNIP
> 
> unlink: /usr/bin/myprogramm
> 
> ###STOP SNIP
> 
> help would be wonderfull... i'm so confused after sitting here for
> hours §%&$.
> 
> :-(
> 
> regards
> 
> 
> hanez
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev


--
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* [gentoo-dev] ACCESS VIOLATION WITH EBUILD
@ 2002-05-14 22:17 hanez
  2002-05-14 22:12 ` Spider
  0 siblings, 1 reply; 5+ messages in thread
From: hanez @ 2002-05-14 22:17 UTC (permalink / raw
  To: gentoo-dev

hello all,

i have some problems with an ebuild i made:

###START SNIP

>>> Install myprogramm-0.9.0-r1 into 
/var/tmp/portage/myprogramm-0.9.0-r1/image/ category media-sound
Making install in src
make[1]: Entering directory 
`/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
make[2]: Entering directory 
`/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
/bin/sh ../mkinstalldirs /usr/bin
  /bin/install -c myprogramm /usr/bin/myprogramm
ACCESS DENIED  open_wr:   /usr/bin/myprogramm
/bin/install: cannot create regular file `/usr/bin/myprogramm': Permission 
denied
make[2]: *** [install-binPROGRAMS] Error 1
make[2]: Leaving directory 
`/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory 
`/var/tmp/portage/myprogramm-0.9.0-r1/work/myprogramm-0.9.0-r1/src'
make: *** [install-recursive] Error 1
strip:
>>> Completed installing into /var/tmp/portage/myprogramm-0.9.0-r1/image/

--------------------------- ACCESS VIOLATION SUMMARY 
---------------------------
LOG FILE = "/tmp/sandbox-myprogramm-0.9.0-r1-12505.log"

open_wr:   /usr/bin/myprogramm
--------------------------------------------------------------------------------
!!! emerge aborting on  
/usr/portage/media-sound/myprogramm/myprogramm-0.9.0-r1.ebuild .

###STOP SNIP

when i compile "myprogramm" by hand there are no problems. the emerge process 
stops when installing the binary to /usr/bin/myprogramm. the LOG FILE on ly 
have this content:

###START SNIP

unlink: /usr/bin/myprogramm

###STOP SNIP

help would be wonderfull... i'm so confused after sitting here for hours §%&$.

:-(

regards


hanez


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

* Re: [gentoo-dev] ACCESS VIOLATION WITH EBUILD
  2002-05-14 22:12 ` Spider
@ 2002-05-14 22:40   ` hanez
  2002-05-14 23:21     ` JR Boyens
  2002-05-14 23:46     ` Spider
  0 siblings, 2 replies; 5+ messages in thread
From: hanez @ 2002-05-14 22:40 UTC (permalink / raw
  To: gentoo-dev

On Wednesday 15 May 2002 00:12, Spider wrote:
> please look inside /usr/portage/skel.ebuild and see how its done there.

argghh, i've seen it.

i have changed the line:

make install || die

to:

make DESTDIR=${S} install || die

it's so crazy. i'm sitting here so long trying this...

is it only security feature??? i must allow writing in this path???

thanx a lot. ;-)

best regards


hanez


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

* Re: [gentoo-dev] ACCESS VIOLATION WITH EBUILD
  2002-05-14 22:40   ` hanez
@ 2002-05-14 23:21     ` JR Boyens
  2002-05-14 23:46     ` Spider
  1 sibling, 0 replies; 5+ messages in thread
From: JR Boyens @ 2002-05-14 23:21 UTC (permalink / raw
  To: gentoo-dev

The reason for this is to protect the real filesystem as long as 
possible. If you start installing to the live filesystem right away and 
the ebuild dies, how do you fix the problems it may cause? I believe 
the Portage Developers Guide on www.gentoo.org covers this.

--
JR Boyens
jboyens@fooninja.org
On 2002.05.14 17:40 hanez wrote:
> On Wednesday 15 May 2002 00:12, Spider wrote:
> > please look inside /usr/portage/skel.ebuild and see how its done
> there.
> 
> argghh, i've seen it.
> 
> i have changed the line:
> 
> make install || die
> 
> to:
> 
> make DESTDIR=${S} install || die
> 
> it's so crazy. i'm sitting here so long trying this...
> 
> is it only security feature??? i must allow writing in this path???
> 
> thanx a lot. ;-)
> 
> best regards
> 
> 
> hanez
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> 
> 


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

* Re: [gentoo-dev] ACCESS VIOLATION WITH EBUILD
  2002-05-14 22:40   ` hanez
  2002-05-14 23:21     ` JR Boyens
@ 2002-05-14 23:46     ` Spider
  1 sibling, 0 replies; 5+ messages in thread
From: Spider @ 2002-05-14 23:46 UTC (permalink / raw
  To: gentoo-dev

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

begin  quote
On Wed, 15 May 2002 00:40:44 +0200
> is it only security feature??? i must allow writing in this path???

Its security in several ways, this makes sure you get all files listed,
by disallowing write to all other places than the temporary directory
where you install things to, this allows good lists of files, makes sure
an ebuild doesn't do anything "bad" and simplifies making packages and
tracing changes.


I'm sure there are other things as well

//Spider


--
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2002-05-14 23:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-14 22:17 [gentoo-dev] ACCESS VIOLATION WITH EBUILD hanez
2002-05-14 22:12 ` Spider
2002-05-14 22:40   ` hanez
2002-05-14 23:21     ` JR Boyens
2002-05-14 23:46     ` Spider

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