* [gentoo-portage-dev] KeyError: 'ED' ?
@ 2021-05-05 16:47 Joakim Tjernlund
2021-05-06 10:54 ` Joakim Tjernlund
0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2021-05-05 16:47 UTC (permalink / raw
To: gentoo-portage-dev@lists.gentoo.org
I am upgrading an old portage(2.3.76) to 3.0.18 using qmerge(binary pkg) and I get this:
qmerge -OK sys-apps/portage
[R] sys-apps/portage-3.0.18
* Checking for suitable kernel configuration options...
[ ok ]
* Using python3.8 in global scope
FEATURES variable contains unknown value(s): disabled
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
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>
main()
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
config_path = os.path.join(os.environ['ED'], GLOBAL_CONFIG_PATH.lstrip(os.sep), 'make.globals')
File "/usr/lib/python3.8/os.py", line 675, in __getitem__
raise KeyError(key) from None
KeyError: 'ED'
so portage fails to install properly, I am guessin this is becuse I have an old portage to begin with?
Can it be fixed?
Also, these "FEATURES variable contains unknown value(s): disabled" could tell me which value it does not like.
Jocke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] KeyError: 'ED' ?
2021-05-05 16:47 [gentoo-portage-dev] KeyError: 'ED' ? Joakim Tjernlund
@ 2021-05-06 10:54 ` Joakim Tjernlund
2021-06-09 18:19 ` Mike Gilbert
0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2021-05-06 10:54 UTC (permalink / raw
To: gentoo-portage-dev@lists.gentoo.org
On Wed, 2021-05-05 at 16:47 +0000, Joakim Tjernlund wrote:
> I am upgrading an old portage(2.3.76) to 3.0.18 using qmerge(binary pkg) and I get this:
> qmerge -OK sys-apps/portage
> [R] sys-apps/portage-3.0.18
> * Checking for suitable kernel configuration options...
> [ ok ]
> * Using python3.8 in global scope
> FEATURES variable contains unknown value(s): disabled
> Traceback (most recent call last):
> File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
> return _run_code(code, main_globals, None,
> File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
> exec(code, run_globals)
> 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>
> main()
> 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
> config_path = os.path.join(os.environ['ED'], GLOBAL_CONFIG_PATH.lstrip(os.sep), 'make.globals')
> File "/usr/lib/python3.8/os.py", line 675, in __getitem__
> raise KeyError(key) from None
> KeyError: 'ED'
>
> so portage fails to install properly, I am guessin this is becuse I have an old portage to begin with?
> Can it be fixed?
The error goes away when I do: ED=/ qmerge -OK sys-apps/portage
Does that mean that it is qmerge(aka portage-utils) that needs to set ED during merge? which PHASES ?
Jocke
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] KeyError: 'ED' ?
2021-05-06 10:54 ` Joakim Tjernlund
@ 2021-06-09 18:19 ` Mike Gilbert
2021-06-10 6:23 ` Fabian Groffen
0 siblings, 1 reply; 4+ messages in thread
From: Mike Gilbert @ 2021-06-09 18:19 UTC (permalink / raw
To: gentoo-portage-dev
On Thu, May 6, 2021 at 6:54 AM Joakim Tjernlund
<Joakim.Tjernlund@infinera.com> wrote:
>
> On Wed, 2021-05-05 at 16:47 +0000, Joakim Tjernlund wrote:
> > I am upgrading an old portage(2.3.76) to 3.0.18 using qmerge(binary pkg) and I get this:
> > qmerge -OK sys-apps/portage
> > [R] sys-apps/portage-3.0.18
> > * Checking for suitable kernel configuration options...
> > [ ok ]
> > * Using python3.8 in global scope
> > FEATURES variable contains unknown value(s): disabled
> > Traceback (most recent call last):
> > File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
> > return _run_code(code, main_globals, None,
> > File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
> > exec(code, run_globals)
> > 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>
> > main()
> > 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
> > config_path = os.path.join(os.environ['ED'], GLOBAL_CONFIG_PATH.lstrip(os.sep), 'make.globals')
> > File "/usr/lib/python3.8/os.py", line 675, in __getitem__
> > raise KeyError(key) from None
> > KeyError: 'ED'
> >
> > so portage fails to install properly, I am guessin this is becuse I have an old portage to begin with?
> > Can it be fixed?
>
> The error goes away when I do: ED=/ qmerge -OK sys-apps/portage
> Does that mean that it is qmerge(aka portage-utils) that needs to set ED during merge? which PHASES ?
According to PMS, a package manager must define ED in src_install,
pkg_preinst, and pkg_postinst.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-portage-dev] KeyError: 'ED' ?
2021-06-09 18:19 ` Mike Gilbert
@ 2021-06-10 6:23 ` Fabian Groffen
0 siblings, 0 replies; 4+ messages in thread
From: Fabian Groffen @ 2021-06-10 6:23 UTC (permalink / raw
To: gentoo-portage-dev
[-- Attachment #1: Type: text/plain, Size: 1993 bytes --]
On 09-06-2021 14:19:38 -0400, Mike Gilbert wrote:
> On Thu, May 6, 2021 at 6:54 AM Joakim Tjernlund
> <Joakim.Tjernlund@infinera.com> wrote:
> >
> > On Wed, 2021-05-05 at 16:47 +0000, Joakim Tjernlund wrote:
> > > I am upgrading an old portage(2.3.76) to 3.0.18 using qmerge(binary pkg) and I get this:
> > > qmerge -OK sys-apps/portage
> > > [R] sys-apps/portage-3.0.18
> > > * Checking for suitable kernel configuration options...
> > > [ ok ]
> > > * Using python3.8 in global scope
> > > FEATURES variable contains unknown value(s): disabled
> > > Traceback (most recent call last):
> > > File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
> > > return _run_code(code, main_globals, None,
> > > File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
> > > exec(code, run_globals)
> > > 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>
> > > main()
> > > 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
> > > config_path = os.path.join(os.environ['ED'], GLOBAL_CONFIG_PATH.lstrip(os.sep), 'make.globals')
> > > File "/usr/lib/python3.8/os.py", line 675, in __getitem__
> > > raise KeyError(key) from None
> > > KeyError: 'ED'
> > >
> > > so portage fails to install properly, I am guessin this is becuse I have an old portage to begin with?
> > > Can it be fixed?
> >
> > The error goes away when I do: ED=/ qmerge -OK sys-apps/portage
> > Does that mean that it is qmerge(aka portage-utils) that needs to set ED during merge? which PHASES ?
>
> According to PMS, a package manager must define ED in src_install,
> pkg_preinst, and pkg_postinst.
Perhaps qmerge should use export for these vars. In any case this seems
tracked in bug 792273.
--
Fabian Groffen
Gentoo on a different level
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-06-10 6:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-05 16:47 [gentoo-portage-dev] KeyError: 'ED' ? Joakim Tjernlund
2021-05-06 10:54 ` Joakim Tjernlund
2021-06-09 18:19 ` Mike Gilbert
2021-06-10 6:23 ` Fabian Groffen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox