View previous topic :: View next topic |
Author |
Message |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Fri Feb 13, 2004 7:03 pm Post subject: [CLOSED] after 'emerge' what default file locations? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
boroshan l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1637194748421925036df97.jpg)
Joined: 16 Apr 2003 Posts: 730 Location: upside down
|
Posted: Fri Feb 13, 2004 7:59 pm Post subject: hmmm... tricky. |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
trossachs Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Zangief.gif)
Joined: 22 Jan 2004 Posts: 1204 Location: London
|
Posted: Fri Feb 13, 2004 9:39 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|