public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Fabian Groffen <grobian@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] KeyError: 'ED' ?
Date: Thu, 10 Jun 2021 08:23:39 +0200	[thread overview]
Message-ID: <YMGv60AWhTqwAOAO@gentoo.org> (raw)
In-Reply-To: <CAJ0EP41=RWNA+=Veh6QfWiG6FwU4yFfctioyTb-O8r8ikyOqeQ@mail.gmail.com>

[-- 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 --]

      reply	other threads:[~2021-06-10  6:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YMGv60AWhTqwAOAO@gentoo.org \
    --to=grobian@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox