[Slackbuilds-users] Issues with webkit2gtk / webkit2gtk4.1 in a Slackware 32 bit

B. Watson urchlay at slackware.uk
Fri Jan 12 22:05:29 UTC 2024



On Fri, 12 Jan 2024, B. Watson wrote:

> But this actually would have been OK and not resulted in "-j0" on a 
> single-proc
> system:
>
> "${NINJA:=ninja}" -j$(expr $(nproc) / 2 + 1)
>
> That would have done what the author intended: use half the available
> cores, or 1 core on a single-core box.

The perils of posting code in an email without testing it. Slight correction:

"${NINJA:=ninja}" -j$(expr \( $(nproc) + 1 \) / 2 )

...works out to -j1 if you have 1, 2, or 3 cores, -j2 if you
have 4 or 5, -j4 if you have 8...


More information about the SlackBuilds-users mailing list