Filter QA warning for --disable-dependency-tracking configure option.
authorUlrich Mueller <ulm@gentoo.org>
Sat, 1 Jan 2011 16:08:44 +0000 (17:08 +0100)
committerUlrich Mueller <ulm@gentoo.org>
Sat, 1 Jan 2011 19:37:54 +0000 (20:37 +0100)
pym/portage/package/ebuild/doebuild.py

index aeb3f864a95a2fd45c37e12dc53e79400c88c8f9..f1f8260d990f262276a867974d52bfc3e67530d9 100644 (file)
@@ -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: