Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] EROOT changing ?
Date: Sun, 07 Nov 2010 17:11:33
Message-Id: 20101107171108.GZ14638@gentoo.org
In Reply to: Re: [gentoo-alt] EROOT changing ? by Alan Hourihane
1 On 06-11-2010 00:14:18 +0000, Alan Hourihane wrote:
2 > On Fri, 2010-11-05 at 23:48 +0000, Alan Hourihane wrote:
3 > > On Thu, 2010-11-04 at 19:05 +0100, Fabian Groffen wrote:
4 > > > On 04-11-2010 15:24:47 +0000, Alan Hourihane wrote:
5 > > > > On Wed, 2010-11-03 at 20:38 +0000, Alan Hourihane wrote:
6 > > > > > Hi all,
7 > > > > >
8 > > > > > I'm having a recent issue where has_version is getting EROOT set to ./
9 > > > > > where normally for me it's set to /
10 > > > > >
11 > > > > > When doing the autotools check for LATEST_VERSION it's failing during
12 > > > > > the ebuild, yet calling portageq directly works. And in all other cases
13 > > > > > it works fine too, just this autotools check.
14 > > > > >
15 > > > > > I've traced it back to vartree.py and when it pulls in the value of
16 > > > > > EROOT it's wrong, and fails the search.
17 > > > > >
18 > > > > > Anyone any clues where EROOT could be getting set to ./ instead of just
19 > > > > > staying with / ?
20 > > > >
21 > > > > Any help ?
22 > > >
23 > > > well, only puzzledness. I assume you don't have ROOT set. Maybe
24 > > > canonicalise() is being called somewhere, but why that would introduce
25 > > > the . (which is wrong of course) is unclear to me.
26 > >
27 > > I don't have ROOT, EROOT or EPREFIX set in my environment, but.....
28 > >
29 > > I printed out EPREFIX and ROOT where EROOT is used in vartree.py and it
30 > > says that EPREFIX is set to . and ROOT is /
31 > >
32 > > Why would EPREFIX get set to .
33 >
34 > Ah ha....
35 >
36 > Turns out it's this in const.py.
37 >
38 > # pick up EPREFIX from the environment if set
39 > if "EPREFIX" in os.environ:
40 > EPREFIX = os.path.normpath(os.environ["EPREFIX"])
41 >
42 > If EPREFIX is "", then normpath turns EPREFIX into "."
43
44 Ok, would this work for you?
45
46 if "EPREFIX" in os.environ and os.environ["EPREFIX"] != "":
47
48
49 --
50 Fabian Groffen
51 Gentoo on a different level

Replies

Subject Author
Re: [gentoo-alt] EROOT changing ? Alan Hourihane <alanh@×××××××××××.uk>
Re: [gentoo-alt] EROOT changing ? Alan Hourihane <alanh@×××××××××××.uk>
Re: [gentoo-alt] EROOT changing ? Alan Hourihane <alanh@×××××××××××.uk>