Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822846 - please add an option to emerge that limits -j to 1 on a per package option
Summary: please add an option to emerge that limits -j to 1 on a per package option
Status: RESOLVED DUPLICATE of bug 737098
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-11-10 09:20 UTC by korte
Modified: 2021-11-10 23:00 UTC (History)
0 users

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