diff --git a/autospec/util.py b/autospec/util.py index c459bf74..8c7c5cb4 100644 --- a/autospec/util.py +++ b/autospec/util.py @@ -90,6 +90,20 @@ def _process_line(line, prev_line, current_patch, reported_patches, error): _log_error("Compiler: " + m.group('error')) return True + if m := re.match(r'Could NOT find (?P.*) .missing', line): + _log_error("CMake module " + m.group('package') + " not found") + return True + if m := re.match(r'Could not find a package configuration file provided by (?P.*) with', line): + _log_error("CMake module " + m.group('package') + " not found") + return True + # Unable to find program 'gperf' + if m := re.match(r"Failed to find program ‘(?P.*)’", line): + _log_error("Failed to find " + m.group('module')) + return True + if m := re.match(r"Failed to find ‘(?P.*)’", line): + _log_error("Failed to find " + m.group('module')) + return True + return False