[projects/pld-builder.new] Redefine make to use --output-sync=target (requires make >= 4.0) to make build logs more readable.
arekm
arekm at pld-linux.org
Sat Nov 1 15:07:56 CET 2014
commit e16c2f19c436edf0532b8a64c4abf177d7d50c82
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Nov 1 15:07:49 2014 +0100
Redefine make to use --output-sync=target (requires make >= 4.0) to make build logs more readable.
PLD_Builder/rpm_builder.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 4570334..c52afe1 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -227,7 +227,7 @@ def build_rpm(r, b):
if r.max_jobs > 0:
max_jobs = max(min(config.max_jobs, r.max_jobs), 1)
cmd = "set -ex; : build-id: %(r_id)s; TMPDIR=%(tmpdir)s exec nice -n %(nice)s " \
- "rpmbuild -bb --define '_smp_mflags -j%(max_jobs)d' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
+ "rpmbuild -bb --define '_smp_mflags -j%(max_jobs)d' --define '__make /usr/bin/make -Otarget %{?_smp_mflags}' --define '_pld_builder 1' %(rpmdefs)s %(topdir)s/%(spec)s" % {
'r_id' : r.id,
'tmpdir': tmpdir,
'nice' : config.nice,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/e16c2f19c436edf0532b8a64c4abf177d7d50c82
More information about the pld-cvs-commit
mailing list