From e16c2f19c436edf0532b8a64c4abf177d7d50c82 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sat, 1 Nov 2014 15:07:49 +0100 Subject: [PATCH] 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, -- 2.44.0