View previous topic :: View next topic |
Author |
Message |
NU-Slacker n00b


Joined: 18 Apr 2002 Posts: 69 Location: Northwestern University
|
Posted: Fri Nov 08, 2002 4:58 am Post subject: Ebuild basics |
|
|
Hey all. I have finally decided that its time to start making ebuilds for a lot of the programs that I like to have around. I just made my first ebuild earlier today and after a little bit of confusion I have finally got it to download and compile without problems. However, when it comes time to install, sandbox violations pop up everywhere.
I am currently using the package's 'make install' to try and get it installed. Is there something Im missing. Is this a fault with the developer's make or my ebuild? Is there a more proper way to install a package? Any hints? _________________ "There are 10 types of people: those that understand binary and those who dont." |
|
Back to top |
|
 |
kutsuya Retired Dev


Joined: 21 Oct 2002 Posts: 189
|
Posted: Fri Nov 08, 2002 8:03 am Post subject: Re: Ebuild basics |
|
|
NU-Slacker wrote: | Hey all. I have finally decided that its time to start making ebuilds for a lot of the programs that I like to have around. I just made my first ebuild earlier today and after a little bit of confusion I have finally got it to download and compile without problems. However, when it comes time to install, sandbox violations pop up everywhere.
I am currently using the package's 'make install' to try and get it installed. Is there something Im missing. Is this a fault with the developer's make or my ebuild? Is there a more proper way to install a package? Any hints? |
Hi,
A sandbox violation usually means something in the ebuild tried to write directly to the root path. Instead it should write to a 'virtual root', which is located at ${D}.
So the ebuild might need to have something like this:
Code: | make prefix={$D}/ install || die |
Maybe look at some similar ebuilds that are already in the portage.
Good luck,
--Kutsuya |
|
Back to top |
|
 |
lx Veteran


Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Fri Nov 08, 2002 8:28 am Post subject: |
|
|
/usr/lib/portage/ebuild.sh contains the function einstall, you can use this function in your ebuild it's shorthand for make prefix=${D}/usr mandir=.... etc etc etc.
Many packages have a special variable for install something like DESTDIR in this case you can do make DESTDIR=${D} install, check the main Makefile for such a variable or else use einstall, what ever works for you,
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
 |
NU-Slacker n00b


Joined: 18 Apr 2002 Posts: 69 Location: Northwestern University
|
Posted: Fri Nov 08, 2002 11:37 am Post subject: |
|
|
Thanks for your help. I figured it was probably a problem with me specifying a path incorrectly somewhere, and you guys helped me find the problem. Now Ive just got to take care of some other annoying issues and I should be good to go.
Thanks for the help. _________________ "There are 10 types of people: those that understand binary and those who dont." |
|
Back to top |
|
 |
phong Bodhisattva


Joined: 16 Jul 2002 Posts: 778 Location: Michigan - 15 & Ryan
|
Posted: Fri Nov 08, 2002 3:05 pm Post subject: |
|
|
If you think your ebuild might be useful for others, please don't forget to share it on bugs.gentoo.org. It may get included in the official portage tree. _________________ "An empty head is not really empty; it is stuffed with rubbish. Hence the difficulty of forcing anything into an empty head."
-- Eric Hoffer |
|
Back to top |
|
 |
sarnold Developer


Joined: 28 Nov 2002 Posts: 115 Location: California
|
Posted: Wed Jul 09, 2003 4:34 pm Post subject: what was the fix? |
|
|
NU-Slacker wrote: | Thanks for your help. I figured it was probably a problem with me specifying a path incorrectly somewhere, and you guys helped me find the problem. Now Ive just got to take care of some other annoying issues and I should be good to go. |
So what specifically was the path issue? I'm having a similar problem that I can't quite figure out...
Thanks in advance, Steve |
|
Back to top |
|
 |
Pythonhead Developer


Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Wed Jul 09, 2003 4:40 pm Post subject: Re: what was the fix? |
|
|
sarnold wrote: | I'm having a similar problem that I can't quite figure out...
Thanks in advance, Steve |
Sometimes you need to change a Makefile that is trying to install something outside of DESTDIR=${D}
If you post the ebuild, maybe we can help. |
|
Back to top |
|
 |
|