• Re: [gentoo-dev] [PATCH] multiprocessing.eclass: Default makeopts_jobs

    From =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?=@21:1/5 to All on Thu Apr 28 13:10:01 2022
    On Thu, 2022-04-28 at 12:59 +0200, Michał Górny wrote:
    Change the default value for 'inf' argument to makeopts_jobs from 999
    to $(get_nproc). This means that if MAKEOPTS specifies a `-j` argument without a specific value, nproc will be used rather than infinity-ish
    number of jobs.

    The old default made sense for ebuilds using both makeopts_jobs
    and makeopts_loadavg. However, these are very rare — only 4 packages
    and 3 eclass at this time. For the remaining ebuilds, they meant uncontrollably using up to 999 jobs.

    The new default is both safer and more correct for the vast majority
    of Gentoo packages, removing the necessity of repeating:

    $(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")

    The ebuilds and eclasses using makeopts_loadavg have been updated
    to pass the old default.


    Complete set of commits updating the ebuilds and eclasses:

    https://github.com/gentoo/gentoo/pull/25238

    --
    Best regards,
    Michał Górny

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)