[Pkg-running-devel] [antpm] 01/02: antpm: Fix nbcpu computation on non-linux

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Mon Oct 12 19:09:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch master
in repository antpm.

commit 7b19a8637724257ede306180df6866e5c2f138d6
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Mon Oct 12 20:48:09 2015 +0200

    antpm: Fix nbcpu computation on non-linux
    
    Reported by: Samuel Thibault <sthibault at debian.org>
    Patch by: Samuel Thibault <sthibault at debian.org>
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 08a94c2..9ef7537 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,6 +11,9 @@ NUMCPUS=$(shell grep -c '^processor' /proc/cpuinfo)
 ifeq ($(NUMCPUS),0)
 		NUMCPUS=1
 endif
+ifeq ($(NUMCPUS),)
+		NUMCPUS=1
+endif
 
 CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list