diff options
author | Ulrich Mueller <ulm@gentoo.org> | 2011-01-01 17:08:44 +0100 |
---|---|---|
committer | Ulrich Mueller <ulm@gentoo.org> | 2011-01-01 20:37:54 +0100 |
commit | f3785f651bff9febc0bb3be4f0ee8e4d732495d5 (patch) | |
tree | bebb30707bdd206cfc309b276be1829f46d8a07e | |
parent | 5895611e45ceb2dbd967d2656607d8c97e05186c (diff) | |
download | portage-f3785f651bff9febc0bb3be4f0ee8e4d732495d5.tar.gz portage-f3785f651bff9febc0bb3be4f0ee8e4d732495d5.tar.bz2 portage-f3785f651bff9febc0bb3be4f0ee8e4d732495d5.zip |
Filter QA warning for --disable-dependency-tracking configure option.
-rw-r--r-- | pym/portage/package/ebuild/doebuild.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py index aeb3f864a..f1f8260d9 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -1237,6 +1237,10 @@ def _check_build_log(mysettings, out=None): configure_opts_warn = [] configure_opts_warn_re = re.compile( r'^configure: WARNING: [Uu]nrecognized options: ') + # --disable-dependency-tracking is passed by default in EAPI 4; + # filter the warning if this is the only unrecognized option. + configure_opts_warn_exclude_re = re.compile( + r': --disable-dependency-tracking$') # Exclude output from dev-libs/yaz-3.0.47 which looks like this: # @@ -1268,7 +1272,8 @@ def _check_build_log(mysettings, out=None): if helper_missing_file_re.match(line) is not None: helper_missing_file.append(line.rstrip("\n")) - if configure_opts_warn_re.match(line) is not None: + if configure_opts_warn_re.match(line) is not None and \ + configure_opts_warn_exclude_re.search(line) is None: configure_opts_warn.append(line.rstrip("\n")) if make_jobserver_re.match(line) is not None: |