httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@p6m7g8.com>
Subject [PATCH[ build/version_check.pl fix ExtUtils::XSBuilder version detection
Date Fri, 08 Apr 2005 08:11:59 GMT
Hi,

this fixes version check to not die with a fatal perl error when 
ExtUtils::XSBuilder is not installed and instead print version not found 
message like it does for other tools.

[against branches/multi-env-unstable/]

Index: build/version_check.pl
===================================================================
--- build/version_check.pl      (revision 160526)
+++ build/version_check.pl      (working copy)
@@ -10,9 +10,10 @@
  sub gnu_version { scalar qx/$path --version/ }

  sub xsb_version {
-    package ExtUtils::XSBuilder;
-    require ExtUtils::XSBuilder;
-    return our $VERSION;
+               eval {
+                       require ExtUtils::XSBuilder;
+               };
+               $@ ? return '' : return $ExtUtils::XSBuilder::VERSION;
  }

-- 
END
------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml

Mime
View raw message