pld-builder.new: PLD_Builder/rpm_builder.py Limit number for make -jX to nu...
arekm
arekm at pld-linux.org
Tue Dec 21 22:09:40 CET 2010
Author: arekm Date: Tue Dec 21 21:09:40 2010 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
Limit number for make -jX to number of cpus online + 1.
---- Files affected:
pld-builder.new/PLD_Builder:
rpm_builder.py (1.123 -> 1.124)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/rpm_builder.py
diff -u pld-builder.new/PLD_Builder/rpm_builder.py:1.123 pld-builder.new/PLD_Builder/rpm_builder.py:1.124
--- pld-builder.new/PLD_Builder/rpm_builder.py:1.123 Mon Nov 15 21:15:20 2010
+++ pld-builder.new/PLD_Builder/rpm_builder.py Tue Dec 21 22:09:35 2010
@@ -183,7 +183,7 @@
if ("no-install-br" not in r.flags) and not install.install_br(r, b):
res = "FAIL_DEPS_INSTALL"
if not res:
- max_jobs = max(min(int(os.sysconf('SC_NPROCESSORS_ONLN') * 1.5), config.max_jobs), 1)
+ max_jobs = max(min(int(os.sysconf('SC_NPROCESSORS_ONLN') + 1), config.max_jobs), 1)
if r.max_jobs > 0:
max_jobs = max(min(config.max_jobs, r.max_jobs), 1)
cmd = "echo build-id: %s; cd rpm/SPECS; TMPDIR=%s exec nice -n %s rpmbuild -bb --define '_smp_mflags -j%d' %s %s" % \
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/rpm_builder.py?r1=1.123&r2=1.124&f=u
More information about the pld-cvs-commit
mailing list