1 |
Fabian Groffen <mailto:grobian@g.o> wrote: |
2 |
> On 02-04-2008 10:56:28 +0200, Duft Markus wrote: |
3 |
>> Hi! |
4 |
>> |
5 |
>> ImportError: No module named portage.const |
6 |
> |
7 |
> ^^^^ |
8 |
> |
9 |
>> configure: error: bad value for --with-root-user |
10 |
>> |
11 |
>> !!! Please attach the following file when seeking support: |
12 |
>> !!! |
13 |
>> |
14 |
/opt/gentoo/var/tmp/portage/sys-apps/portage-2.2.00.9583/work/prefix-por |
15 |
tage-2.2.00.9583/config.log |
16 |
>> * * ERROR: sys-apps/portage-2.2.00.9583 failed. |
17 |
>> |
18 |
>> What can i do? |
19 |
>> |
20 |
>> From the portage i use for bootstrap: |
21 |
>> |
22 |
/tools/snapshot/prefix-launcher-1pre.20080225/i586-pc-interix3.5/lib/por |
23 |
tage/pym/portage/__init__.py:VERSION="2.2.00.8280-prefix" |
24 |
>> If i change the ebuild and hardcode the root user, everything works |
25 |
>> fine. Is my bootstrap portage too old? |
26 |
> |
27 |
> Feels like quite ancient to me, yes, but IIRC, portage.const should |
28 |
> exist there too. Does 'import portage' work with your (bootstrapped) |
29 |
> python? I think it works for noone during bootstrapping actually, |
30 |
> unless python (from the tree) is emerged before reinstalling portage. |
31 |
> I think my bootstrap docs at least for Mac OS X and Solaris (the only |
32 |
> two that are possibly correct by the way) pull in python before |
33 |
> portage reemerges itself (step 1.10 in the Solaris bootstrap) hence |
34 |
> it works there. Maybe that's not an option for you, then we have to |
35 |
> make a workaround. |
36 |
|
37 |
I now tried to emerge python as first package, before portage. This |
38 |
results in the same, since i have problems setting the PATH right. The |
39 |
portage i use to bootstrap the prefix comes from prefix-launcher, and |
40 |
(as all portage's do) insists on setting the PATH to some known value |
41 |
(which doesn't include the dirs of the to-bootstrap prefix, and hence |
42 |
misses the just installed python, but rather gets the python 2.4 from |
43 |
prefix-launcher. |
44 |
|
45 |
Cheers, Markus |
46 |
|
47 |
> |
48 |
> |
49 |
> -- |
50 |
> Fabian Groffen |
51 |
> Gentoo on a different level |
52 |
|
53 |
-- |
54 |
gentoo-alt@l.g.o mailing list |