Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[CLOSED] after 'emerge' what default file locations?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Feb 13, 2004 7:03 pm    Post subject: [CLOSED] after 'emerge' what default file locations? Reply with quote

Curious. If I emerge lets say mysql or mod_php, where do these packages get installed? I would prefer for all packages from now on to default to /usr/local, can this be done? Because I don't see anywhere to specify a '--prefix=/'

After the long Redhat years, I was hoping to have more control over where these things end up. Can I even create a directory called 'progs' and bung them in all there? thx.


Last edited by trossachs on Sat Feb 21, 2004 4:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
boroshan
l33t
l33t


Joined: 16 Apr 2003
Posts: 730
Location: upside down

PostPosted: Fri Feb 13, 2004 7:59 pm    Post subject: hmmm... tricky. Reply with quote

hmmm... a quick investigation suggests you may be out of luck on this one. the ebuilds seem to have the prefix hard coded into them. This comes from sys-apps/which:
Code:
src_compile() {
        ./configure --prefix=/Usr || die
        make || die
}

I suppose a lot of the porblem is that the --prefix is only a rough consensus - not every linux app respects it, or even uses ./configure for that matter.

You ight try raising this as a bug on bugzilla - be easy enough to add a DEFAULT_PREFIX or PREFIX_OVERRIDE macro in make.conf . Failing that, you could copy key apps onto PORTAGE_OVERLAY and edit the prefix line there - a pain, but it'd work.

That said - why do you want to put your apps in /usr/local? gentoo sticks apps in /usr because they are part of the distro and supported as such, whereas most hand compiled apps default into /usr/local because they don't expect to be part of the supported distro and by installing into /usr/local it makes them easier to remove if things go pear shaped. Even then, portage's uninstall is good enough that unmerging appliations rarely gives problems. Just a thought....
_________________
Don't let THEM immanentize the Eschaton!
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Fri Feb 13, 2004 9:39 pm    Post subject: Reply with quote

Just fancied a change having always had to contend with RH putting programs in so many different places. Thought with Gentoo I would have more control. No worries.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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