* [gentoo-user] Different install prefix - howto ?
@ 2006-10-06 8:21 Helmut Jarausch
2006-10-06 11:08 ` Hans-Werner Hilse
0 siblings, 1 reply; 5+ messages in thread
From: Helmut Jarausch @ 2006-10-06 8:21 UTC (permalink / raw
To: gentoo-user
Hi,
I'd like to install an experimental package with a different prefix, say
/usr/local/test
What should I write into the ebuild file?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Different install prefix - howto ?
2006-10-06 8:21 [gentoo-user] Different install prefix - howto ? Helmut Jarausch
@ 2006-10-06 11:08 ` Hans-Werner Hilse
2006-10-06 12:25 ` Bo Ørsted Andresen
0 siblings, 1 reply; 5+ messages in thread
From: Hans-Werner Hilse @ 2006-10-06 11:08 UTC (permalink / raw
To: gentoo-user
Hi,
On Fri, 06 Oct 2006 10:21:05 +0200 (CEST) Helmut Jarausch
<jarausch@igpm.rwth-aachen.de> wrote:
> I'd like to install an experimental package with a different prefix,
> say /usr/local/test
> What should I write into the ebuild file?
I don't think the ROOT environment variable when emerging is what you
want. I think you can just append "--prefix=/usr/local/test" to the
call to "econf". All of this assumes usage of autoconf, of course.
Another common approach is to set DESTDIR to ${D}/usr/local/test for
"make install".
See http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
-hwh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Different install prefix - howto ?
2006-10-06 11:08 ` Hans-Werner Hilse
@ 2006-10-06 12:25 ` Bo Ørsted Andresen
2006-10-06 12:50 ` Hans-Werner Hilse
0 siblings, 1 reply; 5+ messages in thread
From: Bo Ørsted Andresen @ 2006-10-06 12:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
On Friday 06 October 2006 13:08, Hans-Werner Hilse wrote:
> > I'd like to install an experimental package with a different prefix,
> > say /usr/local/test
> > What should I write into the ebuild file?
>
> I don't think the ROOT environment variable when emerging is what you
> want. I think you can just append "--prefix=/usr/local/test" to the
> call to "econf". All of this assumes usage of autoconf, of course.
> Another common approach is to set DESTDIR to ${D}/usr/local/test for
> "make install".
>
> See
> http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
Probably a better a reference is [1]. I'm not sure why you don't think he
wants the ROOT var. Also ${D} isn't where it's going to be installed to (in
the ebuild qmerge sense - see `man ebuild'). It's where the image is going to
be installed (the ebuild install sense - again see `man ebuild`). Also it's a
var to be used internally in the ebuild only (which I assume you know). If I
am correct about what he wants then the point is that there is no need to
edit the ebuild file (otherwise it's a bug).
[1] http://dev.gentoo.org/~plasmaroo/devmanual//ebuild-writing/variables/
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Different install prefix - howto ?
2006-10-06 12:25 ` Bo Ørsted Andresen
@ 2006-10-06 12:50 ` Hans-Werner Hilse
2006-10-06 13:06 ` Bo Ørsted Andresen
0 siblings, 1 reply; 5+ messages in thread
From: Hans-Werner Hilse @ 2006-10-06 12:50 UTC (permalink / raw
To: gentoo-user
Hi,
On Fri, 6 Oct 2006 14:25:47 +0200 Bo Ørsted Andresen
<bo.andresen@zlin.dk> wrote:
> On Friday 06 October 2006 13:08, Hans-Werner Hilse wrote:
> > > I'd like to install an experimental package with a different
> > > prefix, say /usr/local/test
> > > What should I write into the ebuild file?
> >
> > I don't think the ROOT environment variable when emerging is what
> > you want. I think you can just append "--prefix=/usr/local/test" to
> > the call to "econf". All of this assumes usage of autoconf, of
> > course. Another common approach is to set DESTDIR to
> > ${D}/usr/local/test for "make install".
>
> Probably a better a reference is [1]. I'm not sure why you don't
> think he wants the ROOT var.
Because it didn't sound like he was trying to set up a chroot
environment just for that package but rather make shure its installed
files don't cludder /usr. If ROOT is set, that will also emerge all
RDEPENDs into that.
> Also ${D} isn't where it's going to be
> installed to (in the ebuild qmerge sense - see `man ebuild'). It's
> where the image is going to be installed (the ebuild install sense -
> again see `man ebuild`).
Well, I'm not an English master, but I find your statement irritating.
The image gets installed into the real ROOT as set when emerging, i.e.
"/" in most cases (that's what qmerge does). The ebuild itself installs
what it has to install _into_ the image. So in terms of ebuild writing,
${D} is where you should install to. portage will care (ebuild qmerge)
for moving that over to the real ROOT.
> Also it's a var to be used internally in the
> ebuild only (which I assume you know). If I am correct about what he
> wants then the point is that there is no need to edit the ebuild file
> (otherwise it's a bug).
That's probably where our understanding differs: I think the question
was about ebuild writing or modification.
-hwh
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] Different install prefix - howto ?
2006-10-06 12:50 ` Hans-Werner Hilse
@ 2006-10-06 13:06 ` Bo Ørsted Andresen
0 siblings, 0 replies; 5+ messages in thread
From: Bo Ørsted Andresen @ 2006-10-06 13:06 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]
On Friday 06 October 2006 14:50, Hans-Werner Hilse wrote:
[SNIP]
> > I'm not sure why you don't
> > think he wants the ROOT var.
>
> Because it didn't sound like he was trying to set up a chroot
> environment just for that package but rather make shure its installed
> files don't cludder /usr. If ROOT is set, that will also emerge all
> RDEPENDs into that.
Hmm... By reading the thread again seems you're right. I blame lack of sleep.
> > Also ${D} isn't where it's going to be
> > installed to (in the ebuild qmerge sense - see `man ebuild'). It's
> > where the image is going to be installed (the ebuild install sense -
> > again see `man ebuild`).
>
> Well, I'm not an English master, but I find your statement irritating.
[SNIP]
It was because I managed to overlook the important part. I just read: "set
DESTDIR to ${D}". Sorry.. Thanks for clearing this. :)
[SNIP]
At least we agree now... And just for the OP: The ROOT var changes the
location of the vdb (/var/db/pkg) too. It contains info about what packages
are installed etc... So the main system (when the ROOT var isn't set - it
defaults to '/') won't even know that a package installed with the ROOT var
set to something else than '/' is installed...
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-10-06 13:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06 8:21 [gentoo-user] Different install prefix - howto ? Helmut Jarausch
2006-10-06 11:08 ` Hans-Werner Hilse
2006-10-06 12:25 ` Bo Ørsted Andresen
2006-10-06 12:50 ` Hans-Werner Hilse
2006-10-06 13:06 ` Bo Ørsted Andresen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox