summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog9
-rwxr-xr-xdebian/rules5
2 files changed, 13 insertions, 1 deletions
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 <debian@jff-webhosting.net> 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