Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579526 - sys-apps/portage - run pkg_pretend phase in parallel jobs
Summary: sys-apps/portage - run pkg_pretend phase in parallel jobs
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
Depends on: 710432
Blocks: 184128 835380
  Show dependency tree
Reported: 2016-04-10 18:14 UTC by Mike Gilbert
Modified: 2022-03-16 00:54 UTC (History)
3 users (show)

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 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.