[cairo-commit] rcairo ChangeLog,1.208,1.209 pkg-config.rb,1.7,1.8

Kouhei Sutou commit at pdx.freedesktop.org
Thu Apr 3 19:40:09 PDT 2008


Committed by: kou

Update of /cvs/cairo/rcairo
In directory kemper:/tmp/cvs-serv16429

Modified Files:
	ChangeLog pkg-config.rb 
Log Message:
* pkg-config.rb: handle DL error.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/rcairo/ChangeLog,v
retrieving revision 1.208
retrieving revision 1.209
diff -u -d -r1.208 -r1.209
--- ChangeLog	3 Apr 2008 12:23:56 -0000	1.208
+++ ChangeLog	4 Apr 2008 02:44:15 -0000	1.209
@@ -1,3 +1,7 @@
+2008-04-04  Kouhei Sutou  <kou at cozmixng.org>
+
+	* pkg-config.rb: handle DL error.
+
 2008-04-03  Kouhei Sutou  <kou at cozmixng.org>
 
 	* pkg-config.rb, test/test_pkg_config.rb: support

Index: pkg-config.rb
===================================================================
RCS file: /cvs/cairo/rcairo/pkg-config.rb,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- pkg-config.rb	3 Apr 2008 12:23:56 -0000	1.7
+++ pkg-config.rb	4 Apr 2008 02:44:15 -0000	1.8
@@ -162,6 +162,9 @@
         end
         begin
           dlload RbConfig::CONFIG["LIBRUBY"]
+        rescue RuntimeError
+          return default_path if $!.message == "unknown error"
+          raise
         rescue DL::DLError
           return default_path
         end



More information about the cairo-commit mailing list