Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614116 - sys-apps/portage: EbuildBuild._fetchonly_exit triggers event loop recursion
Summary: sys-apps/portage: EbuildBuild._fetchonly_exit triggers event loop recursion
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 591760 619102
  Show dependency tree
 
Reported: 2017-03-28 04:55 UTC by Zac Medico
Modified: 2017-08-11 19:47 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 Zac Medico gentoo-dev 2017-03-28 04:55:13 UTC
The EbuildBuild._fetchonly_exit method triggers event loop recursion when it calls the spawn_nofetch function. There spawn_nofetch function needs to be refactored into an asynchronous task.
Comment 1 Zac Medico gentoo-dev 2017-04-03 01:05:32 UTC
The EbuildBuild._fetchonly_exit method can also call digestgen, which can trigger event loop recursion via portdbapi.aux_get and spawn_nofetch calls.
Comment 2 Zac Medico gentoo-dev 2017-04-03 01:24:11 UTC
We can move the digestgen call from EbuildBuild._fetchonly_exit (bug 470238) to Scheduler._generate_digests (where it currently skips the digestgen call when --fetchonly is enabled).
Comment 5 Zac Medico gentoo-dev 2017-08-11 19:47:16 UTC
Fixed in 2.3.6.