SVN: toys/tools/cleanbuild/findbr

glen glen at pld-linux.org
Sun Aug 18 16:03:14 CEST 2013


Author: glen
Date: Sun Aug 18 16:03:14 2013
New Revision: 12713

Modified:
   toys/tools/cleanbuild/findbr
Log:
deps for ruby and vala


Modified: toys/tools/cleanbuild/findbr
==============================================================================
--- toys/tools/cleanbuild/findbr	(original)
+++ toys/tools/cleanbuild/findbr	Sun Aug 18 16:03:14 2013
@@ -259,6 +259,20 @@
 				"/usr/lib*/python2*/_$mod.so",
 				"/usr/lib*/python2*/$mod.so" );
 	}
+
+	if (
+		m{^cannot load such file -- (\S+)} or
+		m{in `require': cannot load such file -- (\S+) \(LoadError\)}
+	) {
+		my $mod = $1;
+		warn "Looking for ruby module $mod\n";
+		poldek_file(
+			"/usr/share/ruby/*/$mod.rb",
+			"/usr/share/ruby/vendor_ruby/*/$mod.rb",
+			"/usr/lib64/ruby/vendor_ruby/*/$mod.so",
+		);
+	}
+
 	if ( /configure(?:\.in|\.ac)?:\d+: error: possibly undefined macro: (\S+)/
 			or m{configure(?:\.in|\.ac)?:\d+: error: m4 macro `(\S+)' is not defined}
 			or m{warning: macro `(\S+)' not found in library} ) {
@@ -300,20 +314,21 @@
 			or m{ gettext tools not found}
 			) {
 		add_br( "gettext-devel" );
-		#exit;
 		next;
 	}
+
 	if ( m{ pkg-config .*not .*found}
 			or m{^checking for pkg-config\.\.\. no} ) {
 		add_br( "pkgconfig" );
-		#exit;
 		next;
 	}
+
 	if ( m{^Can't locate (.*?\.pm) in \@INC} ) {
 		my $mod = $1;
 		warn "Looking for perl module $mod\n";
 		poldek_file( "/usr/lib*/perl*/$mod", "/usr/share/perl*/$mod" );
 	}
+
 	if ( m{^(?:/usr/bin/ld: )?cannot find -l(.*?)$} ) {
 		my $lib = $1;
 		warn "Looking for library $lib\n";
@@ -332,11 +347,20 @@
 		warn "Looking for file $file\n";
 		poldek_file( $file );
 	}
+
 	if ( m{^ValueError: Couldn't find include '(.*\.gir)'} ) {
 		my $file = $1;
 		warn "Looking for gir file $file\n";
 		poldek_file( "/usr/share/gir-1.0/" . $file );
 	}
+
+	if ( m{^error: Package `(\S+)' not found in specified Vala API directories or GObject-Introspection GIR directories}
+	) {
+		my $file = $1;
+		warn "Looking for gir file $file\n";
+		poldek_file( "/usr/share/vala/vapi/$file.vapi");
+	}
+
 	if ( m{failed.*http://www\.oasis-open\.org/docbook/xml/([\d\.]+/\S+\.dtd)} ) {
 		my $dtd = $1;
 		warn "Looking for docbook file $dtd\n";


More information about the pld-cvs-commit mailing list