From 04d9e0eefd40907c5e306687bff6acddef211646 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 16 Nov 2008 21:31:49 +0000 Subject: [PATCH] =?utf8?q?Add=20a=20QA=20Notice=20for=20'jobserver=20unava?= =?utf8?q?ilable'=20from=20make=20in=20the=20build=20log.=20Thanks=20to=20?= =?utf8?q?Diego=20'Flameeyes'=20Petten=C3=B2=20=20for=20the?= =?utf8?q?=20suggestion.=20(trunk=20r11972)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit svn path=/main/branches/2.1.6/; revision=11973 --- pym/portage/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index eeecab11f..bc26b73fb 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4509,6 +4509,11 @@ def _check_build_log(mysettings, out=None): am_maintainer_mode_re = re.compile(r'.*/missing --run .*') am_maintainer_mode_exclude_re = \ re.compile(r'.*/missing --run (autoheader|makeinfo)') + + make_jobserver_re = \ + re.compile(r'make\[\d+\]: warning: jobserver unavailable:') + make_jobserver = [] + try: for line in f: if am_maintainer_mode_re.search(line) is not None and \ @@ -4523,6 +4528,10 @@ def _check_build_log(mysettings, out=None): if configure_opts_warn_re.match(line) is not None: configure_opts_warn.append(line.rstrip("\n")) + + if make_jobserver_re.match(line) is not None: + make_jobserver.append(line.rstrip("\n")) + finally: f.close() @@ -4569,6 +4578,12 @@ def _check_build_log(mysettings, out=None): msg.extend("\t" + line for line in configure_opts_warn) _eqawarn(msg) + if make_jobserver: + msg = ["QA Notice: make jobserver unavailable:"] + msg.append("") + msg.extend("\t" + line for line in make_jobserver) + _eqawarn(msg) + def _post_src_install_uid_fix(mysettings): """ Files in $D with user and group bits that match the "portage" -- 2.26.2