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

Bug 822846

Summary: please add an option to emerge that limits -j to 1 on a per package option
Product: Portage Development Reporter: korte
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description korte 2021-11-10 09:20:25 UTC
To prevent emerge starting extreme swapping or running OoM, it could be a solution to have a local config file, which package should be build on it own, without running other concurrent jobs. The option could be named --single-job <package>/<file with pkg list> or --build-alone or --one-and-only.

If you have a strong machine (core/ram ratio re compiling) then you can build a big package with the default MAKEOPTS="-j" options. If you have a slower machine you can even combine the emerge limit with a lower make -j values on a per package base.

Thanks to ezakimak.

See also https://bugs.gentoo.org/184128 [TRACKER] portage "job control" functionality

Reproducible: Always
Comment 1 Zac Medico gentoo-dev 2021-11-10 22:59:44 UTC
The spi

*** This bug has been marked as a duplicate of bug 737098 ***
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-10 23:00:36 UTC
Note that https://wiki.gentoo.org/wiki//etc/portage/package.env may help.