Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 658426 - sys-apps/portage-2.3.40-r1: emerge doesn't finish if an ebuild vanishes
Summary: sys-apps/portage-2.3.40-r1: emerge doesn't finish if an ebuild vanishes
Status: RESOLVED DUPLICATE of bug 639374
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-18 16:50 UTC by Toralf Förster
Modified: 2018-06-18 18:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-06-18 16:50:23 UTC
At my thinderox I run (rarely) into a racy condition where the /usr/portage repository is changed whilst an emerge is running, yielding into something like:

>>> Jobs: 277 of 318 complete                       Load avg: 12.1, 12.9, 12.9
>>> Jobs: 278 of 318 complete                       Load avg: 12.1, 12.9, 12.9
>>> Jobs: 278 of 318 complete, 1 running            Load avg: 12.1, 12.9, 12.9
>>> Emerging (279 of 318) x11-misc/xdg-utils-1.1.3::gentoo
>>> Jobs: 278 of 318 complete, 1 running            Load avg: 12.1, 12.9, 12.9
Exception in callback AsynchronousTask.wait()
handle: <Handle AsynchronousTask.wait()>
Traceback (most recent call last):
  File "/usr/lib64/python3.5/asyncio/events.py", line 127, in _run
    self._callback(*self._args)
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 84, in wait
    self._wait_hook()
  File "/usr/lib64/python3.5/site-packages/_emerge/AsynchronousTask.py", line 195, in _wait_hook
    self._exit_listener_stack.pop()(self)
  File "/usr/lib64/python3.5/site-packages/_emerge/EbuildBuild.py", line 68, in _start_with_metadata
    settings.configdict["pkg"]["SRC_URI"], = aux_get_task.future.result()
  File "/usr/lib64/python3.5/asyncio/futures.py", line 294, in result
    raise self._exception
portage.exception.PortageKeyError: 'x11-misc/xdg-utils-1.1.3'


In the past the emerge just finished/crashed and I could detect and act at this situation. But since few weeks the emerge doesn't finish (at least it is still running/idling after 12 hours). The command line is:


emerge,14215 -b /usr/lib/python-exec/python3.5/emerge --update --newuse --changed-use --deep --changed-deps=y @system


Coudl the behaviour changed so that emerge finishes?
Comment 1 Zac Medico gentoo-dev 2018-06-18 18:53:08 UTC
In order to cover all cases we really need to use locking to prevent the sync from occurring while emerge is running.

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