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

Bug 273101

Summary: Need for a variable to set the number of parallel jobs
Product: Gentoo Hosted Projects Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: dev-portage, esigra, lpmichalik
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

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:
http://www.gentoo.org/proj/en/council/meeting-logs/20140617-summary.txt

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