Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273101 - Need for a variable to set the number of parallel jobs
Summary: Need for a variable to set the number of parallel jobs
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: PMS/EAPI
Depends on:
Blocks: future-eapi
  Show dependency tree
Reported: 2009-06-07 20:14 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2014-06-24 09:57 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-06-07 20:14:52 UTC
We need a way to express clearly how many parallel jobs emerge should use; while we have been using MAKEOPTS up to now, it cannot be easily used for non-make buildsystems (waf, scons) which also support parallel build.

My proposal is to create a new variable, get it to default to 1 if not set, and then use that as -j parameter for emake _before_ makeopts (this way users can still re-set make to use the load average and other alternatives.

Even though other buildsystems can use the load average, it would be a _huge_ improvement to have at least a static number of job setting!
Comment 1 Ulrich Müller gentoo-dev 2014-06-24 09:57:03 UTC
Rejected for EAPI 5 and again for EAPI 6:

makeopts_jobs() and makeopts_loadavg() in multiprocessing.eclass provide similar functionality.