[packages/rpm-build-macros] increment jobs for > 3 cpus
glen
glen at pld-linux.org
Thu Apr 18 11:08:51 CEST 2013
commit 799bf7abaada306a6f7ff500890aaceffd6d801c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Apr 18 12:07:31 2013 +0300
increment jobs for > 3 cpus
it's because 3/2 -> 1
rpm.macros | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rpm.macros b/rpm.macros
index 351e41a..3bcd3c5 100644
--- a/rpm.macros
+++ b/rpm.macros
@@ -30,7 +30,7 @@
#
# if you want to disable parallel build do:
# echo '%__jobs %{nil}' >> ~/.rpmmacros
-%__jobs %{expand:%%global __jobs %(_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN); [ "$_NCPUS" -gt 2 ] && echo $(($_NCPUS / 2)))%%{nil}}%__jobs
+%__jobs %{expand:%%global __jobs %(_NCPUS=$(/usr/bin/getconf _NPROCESSORS_ONLN); [ "$_NCPUS" -gt 3 ] && echo $(($_NCPUS / 2)))%%{nil}}%__jobs
# expands to -jN if %__jobs has a value
%_smp_mflags %{expand:%%global _smp_mflags %(jobs=%{__jobs}; echo ${jobs:+-j$jobs}%%{nil})}%_smp_mflags
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/799bf7abaada306a6f7ff500890aaceffd6d801c
More information about the pld-cvs-commit
mailing list