diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-16 21:25:11 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-16 21:25:11 +0000 |
commit | 86fe3b9afa6c819c07c4cd1fb1d4eca42dc0ff20 (patch) | |
tree | a1eafdfc09bd06f3cd0b262f9489d20c9ef2af04 | |
parent | 11a21cd27ae9f9bbe46c28cffc2908bd30579f0d (diff) | |
download | portage-86fe3b9afa6c819c07c4cd1fb1d4eca42dc0ff20.tar.gz portage-86fe3b9afa6c819c07c4cd1fb1d4eca42dc0ff20.tar.bz2 portage-86fe3b9afa6c819c07c4cd1fb1d4eca42dc0ff20.zip |
Add a QA Notice for 'jobserver unavailable' from make in the build log. Thanks
to Diego 'Flameeyes' Pettenò <flameeyes@g.o> for the suggestion.
svn path=/main/trunk/; revision=11972
-rw-r--r-- | pym/portage/__init__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index d4d1f9518..ef77a8300 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4519,6 +4519,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 \ @@ -4533,6 +4538,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() @@ -4579,6 +4588,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" |