This is more portable and does not depend on libsys-cpu-perl being
installed.
Closes:888496.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
explanation, rather than looping with a false coplaint about git
fetch. Closes:#871317.
+ test suite:
+ * Use nproc(1) rather than Sys::CPU. This is more portable and does not
+ depend on libsys-cpu-perl being installed. Closes:888496.
+
--
dgit (5.1) unstable; urgency=medium
set -o pipefail
-set +e
-jcpus=`perl -MSys::CPU -we 'printf "-j%d\n", 1.34 * Sys::CPU::cpu_count()'`
-set -e
+ncpus=$(nproc || echo 1)
+jcpus=-j$(( ncpus * 134 / 100 ))
if [ $# != 0 ]; then
set TESTSCRIPTS="$*"