1 |
Hi, |
2 |
|
3 |
On Fri, 6 Oct 2006 14:25:47 +0200 Bo Ørsted Andresen |
4 |
<bo.andresen@××××.dk> wrote: |
5 |
|
6 |
> On Friday 06 October 2006 13:08, Hans-Werner Hilse wrote: |
7 |
> > > I'd like to install an experimental package with a different |
8 |
> > > prefix, say /usr/local/test |
9 |
> > > What should I write into the ebuild file? |
10 |
> > |
11 |
> > I don't think the ROOT environment variable when emerging is what |
12 |
> > you want. I think you can just append "--prefix=/usr/local/test" to |
13 |
> > the call to "econf". All of this assumes usage of autoconf, of |
14 |
> > course. Another common approach is to set DESTDIR to |
15 |
> > ${D}/usr/local/test for "make install". |
16 |
> |
17 |
> Probably a better a reference is [1]. I'm not sure why you don't |
18 |
> think he wants the ROOT var. |
19 |
|
20 |
Because it didn't sound like he was trying to set up a chroot |
21 |
environment just for that package but rather make shure its installed |
22 |
files don't cludder /usr. If ROOT is set, that will also emerge all |
23 |
RDEPENDs into that. |
24 |
|
25 |
> Also ${D} isn't where it's going to be |
26 |
> installed to (in the ebuild qmerge sense - see `man ebuild'). It's |
27 |
> where the image is going to be installed (the ebuild install sense - |
28 |
> again see `man ebuild`). |
29 |
|
30 |
Well, I'm not an English master, but I find your statement irritating. |
31 |
The image gets installed into the real ROOT as set when emerging, i.e. |
32 |
"/" in most cases (that's what qmerge does). The ebuild itself installs |
33 |
what it has to install _into_ the image. So in terms of ebuild writing, |
34 |
${D} is where you should install to. portage will care (ebuild qmerge) |
35 |
for moving that over to the real ROOT. |
36 |
|
37 |
> Also it's a var to be used internally in the |
38 |
> ebuild only (which I assume you know). If I am correct about what he |
39 |
> wants then the point is that there is no need to edit the ebuild file |
40 |
> (otherwise it's a bug). |
41 |
|
42 |
That's probably where our understanding differs: I think the question |
43 |
was about ebuild writing or modification. |
44 |
|
45 |
-hwh |
46 |
|
47 |
-- |
48 |
gentoo-user@g.o mailing list |