From 31f35c6afd1203cda4147d6fbeb2bd0776876fc7 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 16 Oct 2024 22:14:24 -0400 Subject: [PATCH] libraries/webkit2gtk4.1: Fix -j0 build fails on single-core systems. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild b/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild index 258a0082bb2..5a08a554490 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