LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 08-10-2012, 05:36 PM   #1
nokangaroo
Member
 
Registered: Nov 2009
Posts: 135

Rep: Reputation: 23
Gentoo prefix tries to install to /usr/bin


I am trying to build dvd+rw-tools-7.1 in Gentoo prefix on Mac OS X (one of the dependencies of bombono-dvd). The build fails with

install: cannot create regular file ‘/usr/bin/growisofs’: Permission denied
....

Since the whole point of a prefix install is to do without root privileges, I have to ask if ambitious builds are possible at all, or if it is possible to modify the ebuilds to install everything in the prefix tree. Are there tools for modifying ebuilds?

Edit: I added an export EPREFIX=/opt/Gentoo to $EPREFIX/etc/bash/bashrc, but now i get an error message in /opt/Gentoo/var/tmp/portage/app-cdr/dvd+rw-tools-7.1/temp/build.log:

install: cannot create regular file <E2><80><98>/usr/bin/growisofs<E2><80><99>: Permission denied

What the fsck is going on?

Edit:
What does this mean?
emake SHELL=/bin/bash prefix="${D}/usr" install || die;

Where is ${D} defined? Google does not show up anything

Last edited by nokangaroo; 08-10-2012 at 07:15 PM.
 
Old 08-11-2012, 02:52 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
Quote:
Originally Posted by nokangaroo View Post
I am trying to build dvd+rw-tools-7.1 in Gentoo prefix on Mac OS X (one of the dependencies of bombono-dvd). The build fails with

install: cannot create regular file ‘/usr/bin/growisofs’: Permission denied
....

Since the whole point of a prefix install is to do without root privileges, I have to ask if ambitious builds are possible at all, or if it is possible to modify the ebuilds to install everything in the prefix tree. Are there tools for modifying ebuilds?
It's possible, but don't expect every ebuild to compile on a prefix install. Gentoo has to deal with lots of different build scripts, some broken by design, and some that change from time to time. You might need to patch some packages. Don't forget to submit fixes to bugs.gentoo.org if you happen to produce any

Quote:
Edit: I added an export EPREFIX=/opt/Gentoo to $EPREFIX/etc/bash/bashrc, but now i get an error message in /opt/Gentoo/var/tmp/portage/app-cdr/dvd+rw-tools-7.1/temp/build.log:

install: cannot create regular file <E2><80><98>/usr/bin/growisofs<E2><80><99>: Permission denied

What the fsck is going on?
Regular users do not have write permissions on /opt (or in any other place for that matter, besides their $HOME, /tmp and little more). That's not Gentoo, it's how *nix has been for ages.

Quote:
Edit:
What does this mean?
emake SHELL=/bin/bash prefix="${D}/usr" install || die;

Where is ${D} defined? Google does not show up anything
You can start here:

http://devmanual.gentoo.org/

You won't get much support for Gentoo development questions in here. I advise you to either go to the portage and programming subforum at the official gentoo forums, or to the gentoo dev channels in freenode, or the gentoo-dev mailing list for the specific purpose you are seeking. That'd be anything with "dev" on its name on this list:

http://www.gentoo.org/main/en/lists.xml
 
Old 08-13-2012, 04:32 PM   #3
nokangaroo
Member
 
Registered: Nov 2009
Posts: 135

Original Poster
Rep: Reputation: 23
Solved - I managed to build bombono directly in Mac OS X, with dependencies mostly from Macports. I posted the results in the Other *NIX section. I'm afraid I'll give up on Gentoo Prefix; from what I've seen of it I don't like it at all.

Thank you, i92guboj. As for /opt/Gentoo, I have write permissions as a regular user. I'll take a look at the gentoo devmanual, and if I ever try gentoo again, I'll do it as a regular install.

Last edited by nokangaroo; 08-13-2012 at 04:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 04:00 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
xcdroast installation problems despite use of --with-cdrtools-prefix=/usr/bin ??? Raptor Ramjet Slackware 4 01-27-2004 06:55 AM


All times are GMT -5. The time now is 08:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration