Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ebuild basics
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NU-Slacker
n00b
n00b


Joined: 18 Apr 2002
Posts: 69
Location: Northwestern University

PostPosted: Fri Nov 08, 2002 4:58 am    Post subject: Ebuild basics Reply with quote

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
View user's profile Send private message
kutsuya
Retired Dev
Retired Dev


Joined: 21 Oct 2002
Posts: 189

PostPosted: Fri Nov 08, 2002 8:03 am    Post subject: Re: Ebuild basics Reply with quote

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
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Fri Nov 08, 2002 8:28 am    Post subject: Reply with quote

/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
View user's profile Send private message
NU-Slacker
n00b
n00b


Joined: 18 Apr 2002
Posts: 69
Location: Northwestern University

PostPosted: Fri Nov 08, 2002 11:37 am    Post subject: Reply with quote

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
View user's profile Send private message
phong
Bodhisattva
Bodhisattva


Joined: 16 Jul 2002
Posts: 778
Location: Michigan - 15 & Ryan

PostPosted: Fri Nov 08, 2002 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
sarnold
Developer
Developer


Joined: 28 Nov 2002
Posts: 115
Location: California

PostPosted: Wed Jul 09, 2003 4:34 pm    Post subject: what was the fix? Reply with quote

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
View user's profile Send private message
Pythonhead
Developer
Developer


Joined: 16 Dec 2002
Posts: 1801
Location: Redondo Beach, Republic of Calif.

PostPosted: Wed Jul 09, 2003 4:40 pm    Post subject: Re: what was the fix? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum