Gentoo Archives: gentoo-portage-dev

From: Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
To: "gentoo-portage-dev@l.g.o" <gentoo-portage-dev@l.g.o>
Subject: Re: [gentoo-portage-dev] KeyError: 'ED' ?
Date: Thu, 06 May 2021 10:54:10
Message-Id: 14eb5ff273e510c5717f43c237a2d405d344f209.camel@infinera.com
In Reply to: [gentoo-portage-dev] KeyError: 'ED' ? by Joakim Tjernlund
1 On Wed, 2021-05-05 at 16:47 +0000, Joakim Tjernlund wrote:
2 > I am upgrading an old portage(2.3.76) to 3.0.18 using qmerge(binary pkg) and I get this:
3 >  qmerge -OK sys-apps/portage
4 > [R] sys-apps/portage-3.0.18
5 >  * Checking for suitable kernel configuration options...
6 >  [ ok ]
7 >  * Using python3.8 in global scope
8 > FEATURES variable contains unknown value(s): disabled
9 > Traceback (most recent call last):
10 >   File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
11 >     return _run_code(code, main_globals, None,
12 >   File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
13 >     exec(code, run_globals)
14 >   File "/var/tmp/qmerge/sys-apps/portage-3.0.18/image/usr/lib/python3.8/site-packages/portage/_compat_upgrade/default_locations.py", line 93, in <module>
15 >     main()
16 >   File "/var/tmp/qmerge/sys-apps/portage-3.0.18/image/usr/lib/python3.8/site-packages/portage/_compat_upgrade/default_locations.py", line 63, in main
17 >     config_path = os.path.join(os.environ['ED'], GLOBAL_CONFIG_PATH.lstrip(os.sep), 'make.globals')
18 >   File "/usr/lib/python3.8/os.py", line 675, in __getitem__
19 >     raise KeyError(key) from None
20 > KeyError: 'ED'
21 >
22 > so portage fails to install properly, I am guessin this is becuse I have an old portage to begin with?
23 > Can it be fixed?
24
25 The error goes away when I do: ED=/ qmerge -OK sys-apps/portage
26 Does that mean that it is qmerge(aka portage-utils) that needs to set ED during merge? which PHASES ?
27
28 Jocke

Replies

Subject Author
Re: [gentoo-portage-dev] KeyError: 'ED' ? Mike Gilbert <floppym@g.o>