summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2021-06-21 11:08:45 +0200
committerPanu Matilainen <pmatilai@redhat.com>2021-06-22 15:02:29 +0300
commit1b626c883a05cac0dc2e811ca25e062f11baee00 (patch)
tree81dd4751a5136ffff0e36784da522f68d1e5996c
parent45e56320da54a8a20a55770b3a3578b44e9fa8c0 (diff)
downloadrpm-1b626c883a05cac0dc2e811ca25e062f11baee00.tar.gz
Run rpath check in parallel
using RPM_BUILD_NCPUS Related: #1713 (cherry picked from commit 9b94a9a8f1e41a8a65843652c3e5b7b7580f14e4)
-rwxr-xr-xscripts/check-rpaths4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/check-rpaths b/scripts/check-rpaths
index 089e43c00..4b7e47334 100755
--- a/scripts/check-rpaths
+++ b/scripts/check-rpaths
@@ -25,4 +25,6 @@ if [ -z "$RPM_BUILD_ROOT" ] || [ "$RPM_BUILD_ROOT" = "/" ]; then
exit 0
fi
-find "$RPM_BUILD_ROOT" -type f -print0 | xargs -0r /usr/lib/rpm/check-rpaths-worker
+NCPUS=${RPM_BUILD_NCPUS:-1}
+
+find "$RPM_BUILD_ROOT" -type f -print0 | xargs -0 -r -P$NCPUS -n32 /usr/lib/rpm/check-rpaths-worker