[projects/cleanbuild] findbr updates

glen glen at pld-linux.org
Mon Jul 4 10:07:36 CEST 2016


commit 42b8c385b9c3bf410e935d42051d9504c7469a70
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jul 4 11:07:17 2016 +0300

    findbr updates

 findbr | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/findbr b/findbr
index 9e4f7dd..f31853e 100755
--- a/findbr
+++ b/findbr
@@ -239,7 +239,9 @@ while ( $_ = shift @lines ) {
 	}
 
 	if ( /\S+\.[ch](?:pp|xx|c)?:\d+:\d+: error: (\S+): No such file or directory$/ or
-		/\S+\.[ch](?:pp|xx|c)?:\d+:\d+: fatal error: (\S+): No such file or directory$/ ) {
+		/\S+\.[ch](?:pp|xx|c)?:\d+:\d+: fatal error: (\S+): No such file or directory$/ or
+		/Can't find the '(\S+\.h)'? header/
+	) {
 		my $h = $1;
 		warn "Looking for C(++) header $h\n";
 		poldek_file( "/usr/include*/$h" );
@@ -331,6 +333,17 @@ while ( $_ = shift @lines ) {
 		next;
 	}
 
+	if (m{ERROR: CMake is required to build}) {
+		add_br("cmake");
+		next;
+	}
+
+	# lucky guessing
+	if (m{'yum install (\S+)'}) {
+		add_br($1);
+		next;
+	}
+
 	if ( m{^find-lang.sh: Error: international files not found for '}
 			or m{ gettext tools not found}
 			) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/cleanbuild.git/commitdiff/a958d6ce6e3540d977db28f41af029295de30d9b



More information about the pld-cvs-commit mailing list