1 |
On 09-06-2021 14:19:38 -0400, Mike Gilbert wrote: |
2 |
> On Thu, May 6, 2021 at 6:54 AM Joakim Tjernlund |
3 |
> <Joakim.Tjernlund@××××××××.com> wrote: |
4 |
> > |
5 |
> > On Wed, 2021-05-05 at 16:47 +0000, Joakim Tjernlund wrote: |
6 |
> > > I am upgrading an old portage(2.3.76) to 3.0.18 using qmerge(binary pkg) and I get this: |
7 |
> > > qmerge -OK sys-apps/portage |
8 |
> > > [R] sys-apps/portage-3.0.18 |
9 |
> > > * Checking for suitable kernel configuration options... |
10 |
> > > [ ok ] |
11 |
> > > * Using python3.8 in global scope |
12 |
> > > FEATURES variable contains unknown value(s): disabled |
13 |
> > > Traceback (most recent call last): |
14 |
> > > File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main |
15 |
> > > return _run_code(code, main_globals, None, |
16 |
> > > File "/usr/lib/python3.8/runpy.py", line 87, in _run_code |
17 |
> > > exec(code, run_globals) |
18 |
> > > 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> |
19 |
> > > main() |
20 |
> > > 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 |
21 |
> > > config_path = os.path.join(os.environ['ED'], GLOBAL_CONFIG_PATH.lstrip(os.sep), 'make.globals') |
22 |
> > > File "/usr/lib/python3.8/os.py", line 675, in __getitem__ |
23 |
> > > raise KeyError(key) from None |
24 |
> > > KeyError: 'ED' |
25 |
> > > |
26 |
> > > so portage fails to install properly, I am guessin this is becuse I have an old portage to begin with? |
27 |
> > > Can it be fixed? |
28 |
> > |
29 |
> > The error goes away when I do: ED=/ qmerge -OK sys-apps/portage |
30 |
> > Does that mean that it is qmerge(aka portage-utils) that needs to set ED during merge? which PHASES ? |
31 |
> |
32 |
> According to PMS, a package manager must define ED in src_install, |
33 |
> pkg_preinst, and pkg_postinst. |
34 |
|
35 |
Perhaps qmerge should use export for these vars. In any case this seems |
36 |
tracked in bug 792273. |
37 |
|
38 |
-- |
39 |
Fabian Groffen |
40 |
Gentoo on a different level |