summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Andrew Clemons <andrew.clemons@gmail.com>2024-06-30 18:00:25 +0900
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-06 12:16:40 +0700
commitfccb411de806f1981ee9ff670dc74d467a9baea6 (patch)
treeb6449fba8280883c9165661d4bfaa4495e1c024f
parent6286ef61b248101d6bfeaf2fef7592eb493eb3e8 (diff)
downloadslackbuilds-fccb411de806f1981ee9ff670dc74d467a9baea6.tar.gz
slackbuilds-fccb411de806f1981ee9ff670dc74d467a9baea6.tar.xz
system/pcp: Use a single build job on 32bit.
This causes random errors on 32bit. We have not seen the issue on 64bit so we will not force a single job there since this package takes a while to build. Related to #6944 Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/pcp/pcp.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/system/pcp/pcp.SlackBuild b/system/pcp/pcp.SlackBuild
index d4cae53601..87345bcb99 100644
--- a/system/pcp/pcp.SlackBuild
+++ b/system/pcp/pcp.SlackBuild
@@ -99,8 +99,16 @@ CXXFLAGS="$SLKCFLAGS" \
--with-qt \
--build=$ARCH-slackware-linux
-make
-make DIST_ROOT="$PKG" NO_CHOWN=true install_pcp
+if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ] ; then
+ # seems building with multiple jobs can cause flaky builds on 32bit
+ # https://github.com/SlackBuildsOrg/slackbuilds/issues/6944
+ make -j1
+ make -j1 DIST_ROOT="$PKG" NO_CHOWN=true install_pcp
+else
+ make
+ make DIST_ROOT="$PKG" NO_CHOWN=true install_pcp
+fi
+
mkdir -p "$PKG"/usr/doc/$PRGNAM-$VERSION
mv "$PKG"/usr/share/doc/* "$PKG"/usr/doc/$PRGNAM-$VERSION/