Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788325 - support MAKEOPTS="-jauto"
Summary: support MAKEOPTS="-jauto"
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-05 12:19 UTC by Agostino Sarubbo
Modified: 2021-05-06 04:08 UTC (History)
2 users (show)

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 Agostino Sarubbo gentoo-dev 2021-05-05 12:19:41 UTC
It is very common that in configurations that uses numbers of cores there is the auto magic word that means all available cores on the machine.

auto in this case should be meant as $( nproc )
Comment 1 Ionen Wolkens gentoo-dev 2021-05-06 03:06:51 UTC
It's not documented as far as I know but, if MAKEOPTS is entirely unset, portage currently defaults to -j$(nproc)

if 'MAKEOPTS' not in mysettings:
	nproc = get_cpu_count()
	if nproc:
		mysettings['MAKEOPTS'] = '-j%d' % (nproc)