Skip to content

Commit

Permalink
libraries/webkit2gtk4.1: Fix -j0 build fails on single-core systems.
Browse files Browse the repository at this point in the history
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
  • Loading branch information
B. Watson authored and willysr committed Oct 19, 2024
1 parent 23a96bb commit 31f35c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31f35c6

Please sign in to comment.