Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 579526

Summary: sys-apps/portage - run pkg_pretend phase in parallel jobs
Product: Portage Development Reporter: Mike Gilbert <floppym>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: esigra, kingjon3377, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=787545
https://bugs.gentoo.org/show_bug.cgi?id=787542
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 710432    
Bug Blocks: 184128, 835380    

Description Mike Gilbert gentoo-dev 2016-04-10 18:14:03 UTC
It would be nice if portage would run the pkg_pretend phase in parallel jobs.

For example, when installing KDE/Plasma 5, every ebuild which inherits kde5.eclass runs the kde5_pkg_pretend function. This takes a few minutes to complete for around 60+ packages.
Comment 1 Zac Medico gentoo-dev 2016-04-10 21:43:16 UTC
Some notes:

* build log should be combined with the pkg_pretend log (they are currently separate because the build dir is destroyed in between)

* parallel-fetch tasks should be started at the same time as pkg_pretend
Comment 2 Zac Medico gentoo-dev 2020-10-26 17:29:13 UTC
The pkg_pretend phases run in a coroutine since bug 710432, so running them in parallel should not be much work.
Comment 3 Zac Medico gentoo-dev 2021-06-23 00:08:31 UTC
The UI will look very close to the existing emerge --jobs UI.