aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-10-16 22:14:24 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-10-19 16:22:17 +0700
commit31f35c6afd1203cda4147d6fbeb2bd0776876fc7 (patch)
tree85637cc0b62aa799d2670628ac177ea9b780539f /libraries
parent23a96bbb9ce26fe7d3ad2d516247b064b1718515 (diff)
libraries/webkit2gtk4.1: Fix -j0 build fails on single-core systems.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild b/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
index 258a0082bb2c..5a08a5544907 100644
--- a/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
+++ b/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
@@ -109,7 +109,9 @@ cd build
# The build might crash on high specs machines because ninja eat all
# of the resources, so let's try to limit it to half the available ones
-"${NINJA:=ninja}" -j$(expr $(nproc) / 2)
+# 20241016 bkw: make sure we never get -j0, see webkit2gtk.SlackBuild
+# for detailed explanation.
+"${NINJA:=ninja}" -j$(expr '(' $(nproc) + 1 ')' / 2)
DESTDIR=$PKG $NINJA -j1 install
mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.1