From fdcdf49663e60b3c291a0c492e008e4ff3865a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 7 Feb 2016 19:01:56 +0100 Subject: Add test for NO_CPUS == 0 --- debian/changelog | 9 +++++++++ debian/rules | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'debian') diff --git a/debian/changelog b/debian/changelog index e7ee5c8..ff60f45 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +xsd (4.0.0-4) UNRELEASED; urgency=medium + + * debian/rules: + - Add test if NO_CPUS == 0 to prevent build errors + on some architetures. + - Use nproc from coreutils to get the number of processors. + + -- Jörg Frings-Fürst Wed, 03 Feb 2016 06:16:14 +0100 + xsd (4.0.0-3) unstable; urgency=low * debian/copyright: diff --git a/debian/rules b/debian/rules index 391d831..f1fe1f8 100755 --- a/debian/rules +++ b/debian/rules @@ -18,7 +18,10 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all # # Get the number of cpus # -NO_CPUS=$(shell cat /proc/cpuinfo | grep processor | wc -l) +NO_CPUS=$(shell nproc) +ifeq ($(NO_CPUS),0) +NO_CPUS=1 +endif export verbose=1 -- cgit v1.2.3