Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916335 - sys-apps/portage-3.0.53 crashes in the middle of the build with error NameError: name 'pkg' is not defined
Summary: sys-apps/portage-3.0.53 crashes in the middle of the build with error NameErr...
Status: RESOLVED DUPLICATE of bug 915551
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Depends on:
Reported: 2023-10-27 12:09 UTC by Sebastian Pipping
Modified: 2023-10-27 12:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2023-10-27 12:09:57 UTC
I saw this with portage 3.0.53 the other day:

*** Resuming merge...

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
Dependency resolution took 13.22 s.

[ebuild     U  ] kde-frameworks/ktexteditor-5.111.0:5/5.111::gentoo [5.110.0:5/5.110::gentoo] USE="editorconfig -debug -doc -test" 0 KiB
[ebuild     U  ] kde-frameworks/knotifyconfig-5.111.0:5/5.111::gentoo [5.110.0:5/5.110::gentoo] USE="-debug -doc -phonon" 0 KiB
[ebuild     U  ] kde-frameworks/knewstuff-5.111.0:5/5.111::gentoo [5.110.0:5/5.110::gentoo] USE="-debug -designer -doc -opds" 0 KiB

Total: 3 packages (3 upgrades), Size of downloads: 0 KiB
 * emerge --keep-going: kde-frameworks/kcmutils-5.111.0 dropped because it
 * requires =kde-frameworks/kdeclarative-5.111*:5
>>> Emerging (1 of 3) kde-frameworks/knewstuff-5.111.0::gentoo
>>> Emerging (2 of 3) kde-frameworks/knotifyconfig-5.111.0::gentoo
>>> Emerging (3 of 3) kde-frameworks/ktexteditor-5.111.0::gentoo
>>> Installing (2 of 3) kde-frameworks/knotifyconfig-5.111.0::gentoo
>>> Completed (2 of 3) kde-frameworks/knotifyconfig-5.111.0::gentoo
>>> Failed to emerge kde-frameworks/knewstuff-5.111.0, Log file:
>>>  '/var/log/portage/logdir/kde-frameworks:knewstuff-5.111.0:20231024-010251.log'
>>> Installing (3 of 3) kde-frameworks/ktexteditor-5.111.0::gentoo
>>> Completed (3 of 3) kde-frameworks/ktexteditor-5.111.0::gentoo
>>> Jobs: 2 of 3 complete, 1 failed                 Load avg: 7.67, 8.87, 7.16
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.10/emerge", line 59, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.10/site-packages/_emerge/", line 1306, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.10/site-packages/_emerge/", line 4020, in run_action
    retval = action_build(emerge_config, spinner=spinner)
  File "/usr/lib/python3.10/site-packages/_emerge/", line 677, in action_build
    retval = mergetask.merge()
  File "/usr/lib/python3.10/site-packages/_emerge/", line 1263, in merge
    color = "PKG_BINARY_MERGE" if pkg.built else "INFORM"
NameError: name 'pkg' is not defined

Adding as a blocker to #916256 just in case it's not fixed and fixable for 3.0.55, please feel free to drop.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-27 12:21:25 UTC
Should be fixed in .54 already: bug 915551.

*** This bug has been marked as a duplicate of bug 915551 ***