r72548 - in /branches/upstream/libdevel-checklib-perl/current: CHANGES META.yml lib/Devel/CheckLib.pm t/lib/Helper.pm

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Tue Apr 12 21:47:36 UTC 2011


Author: periapt-guest
Date: Tue Apr 12 21:47:26 2011
New Revision: 72548

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=72548
Log:
[svn-upgrade] new version libdevel-checklib-perl (0.93)

Modified:
    branches/upstream/libdevel-checklib-perl/current/CHANGES
    branches/upstream/libdevel-checklib-perl/current/META.yml
    branches/upstream/libdevel-checklib-perl/current/lib/Devel/CheckLib.pm
    branches/upstream/libdevel-checklib-perl/current/t/lib/Helper.pm

Modified: branches/upstream/libdevel-checklib-perl/current/CHANGES
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdevel-checklib-perl/current/CHANGES?rev=72548&op=diff
==============================================================================
--- branches/upstream/libdevel-checklib-perl/current/CHANGES (original)
+++ branches/upstream/libdevel-checklib-perl/current/CHANGES Tue Apr 12 21:47:26 2011
@@ -1,3 +1,6 @@
+0.93    2011-04-09      Add support for gcc that have version number in the command name.
+                        Fix about that the command path include space character.
+
 0.92    2010-12-13      Patch included, thanks to CHM and SISYPHUS (see RT #63742)
 
 0.91    2010-09-29      Version bump up.

Modified: branches/upstream/libdevel-checklib-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdevel-checklib-perl/current/META.yml?rev=72548&op=diff
==============================================================================
--- branches/upstream/libdevel-checklib-perl/current/META.yml (original)
+++ branches/upstream/libdevel-checklib-perl/current/META.yml Tue Apr 12 21:47:26 2011
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               Devel-CheckLib
-version:            0.92
+version:            0.93
 abstract:           ~
 author:  []
 license:            perl
@@ -8,20 +8,21 @@
 configure_requires:
     ExtUtils::MakeMaker:  0
 build_requires:
+    ExtUtils::MakeMaker:  0
+requires:
+    Exporter:           0
+    File::Spec:         0
+    File::Temp:         0.16
     IO::CaptureOutput:  1.0801
+    perl:               5.00405
     Test::More:         0.62
-requires:
-    Exporter:    0
-    File::Spec:  0
-    File::Temp:  0.16
-    perl:        5.00405
 resources:
     repository:  http://github.com/mattn/p5-Devel-CheckLib
 no_index:
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.56
+generated_by:       ExtUtils::MakeMaker version 6.55_02
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: branches/upstream/libdevel-checklib-perl/current/lib/Devel/CheckLib.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdevel-checklib-perl/current/lib/Devel/CheckLib.pm?rev=72548&op=diff
==============================================================================
--- branches/upstream/libdevel-checklib-perl/current/lib/Devel/CheckLib.pm (original)
+++ branches/upstream/libdevel-checklib-perl/current/lib/Devel/CheckLib.pm Tue Apr 12 21:47:26 2011
@@ -5,7 +5,7 @@
 use 5.00405; #postfix foreach
 use strict;
 use vars qw($VERSION @ISA @EXPORT);
-$VERSION = '0.92';
+$VERSION = '0.93';
 use Config qw(%Config);
 use Text::ParseWords 'quotewords';
 
@@ -255,7 +255,7 @@
         }
         warn "# @sys_cmd\n" if $args{debug};
         my $rv = $args{debug} ? system(@sys_cmd) : _quiet_system(@sys_cmd);
-        push @missing, $header if $rv != 0 || ! -x $exefile; 
+        push @missing, $header if $rv != 0 || ! -x $exefile;
         _cleanup_exe($exefile);
         unlink $cfile;
     } 
@@ -308,7 +308,9 @@
         warn "# @sys_cmd\n" if $args{debug};
         my $rv = $args{debug} ? system(@sys_cmd) : _quiet_system(@sys_cmd);
         push @missing, $lib if $rv != 0 || ! -x $exefile;
-        push @wrongresult, $lib if $rv == 0 && -x $exefile && system(File::Spec->rel2abs($exefile)) != 0; 
+        my $absexefile = File::Spec->rel2abs($exefile);
+        $absexefile = '"'.$absexefile.'"' if $absexefile =~ m/\s/;
+        push @wrongresult, $lib if $rv == 0 && -x $exefile && system($absexefile) != 0;
         _cleanup_exe($exefile);
     } 
     unlink $cfile;

Modified: branches/upstream/libdevel-checklib-perl/current/t/lib/Helper.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libdevel-checklib-perl/current/t/lib/Helper.pm?rev=72548&op=diff
==============================================================================
--- branches/upstream/libdevel-checklib-perl/current/t/lib/Helper.pm (original)
+++ branches/upstream/libdevel-checklib-perl/current/t/lib/Helper.pm Tue Apr 12 21:47:26 2011
@@ -13,7 +13,7 @@
 use vars qw/@EXPORT @ISA/;
 @ISA = qw/Exporter/;
 @EXPORT = qw(
-    create_testlib 
+    create_testlib
     find_compiler
     find_binary
 );
@@ -42,13 +42,15 @@
     my $code_fh = IO::File->new("${libname}.c", ">");
     print {$code_fh} "int libversion() { return 42; }\nint foo() { return 0; }\n";
     $code_fh->close;
-    
+
     my $cc = $Config{cc};
-    my $rv = 
+    my $gccv = $Config{gccversion};
+    my $rv =
         $cc eq 'gcc'    ? _gcc_lib( $libname )  :
         $cc eq 'cc'     ? _gcc_lib( $libname )  :
         $cc eq 'cl'     ? _cl_lib( $libname )   :
-                          undef         ;     
+        $gccv           ? _gcc_lib( $libname )  :
+                          undef         ;
 
     chdir $orig_wd;
     return $rv ? canonpath($tempdir) : undef;




More information about the Pkg-perl-cvs-commits mailing list