r61443 - in /branches/upstream/libmodule-install-xsutil-perl/current: Changes META.yml lib/Module/Install/XSUtil.pm

angelabad-guest at users.alioth.debian.org angelabad-guest at users.alioth.debian.org
Sun Aug 8 16:01:40 UTC 2010


Author: angelabad-guest
Date: Sun Aug  8 16:00:31 2010
New Revision: 61443

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=61443
Log:
[svn-upgrade] new version libmodule-install-xsutil-perl (0.26)

Modified:
    branches/upstream/libmodule-install-xsutil-perl/current/Changes
    branches/upstream/libmodule-install-xsutil-perl/current/META.yml
    branches/upstream/libmodule-install-xsutil-perl/current/lib/Module/Install/XSUtil.pm

Modified: branches/upstream/libmodule-install-xsutil-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-install-xsutil-perl/current/Changes?rev=61443&op=diff
==============================================================================
--- branches/upstream/libmodule-install-xsutil-perl/current/Changes (original)
+++ branches/upstream/libmodule-install-xsutil-perl/current/Changes Sun Aug  8 16:00:31 2010
@@ -1,4 +1,7 @@
 Revision history for Perl extension Module::Install::XSUtil
+
+0.26 Sat Aug  7 17:47:37 2010
+    - Use the version of installed gcc, not $Config{gccversion} (xaicron)
 
 0.25 Tue Jul 13 19:43:34 2010
     - Add requires_c99() to assert that the compiler supports C99

Modified: branches/upstream/libmodule-install-xsutil-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-install-xsutil-perl/current/META.yml?rev=61443&op=diff
==============================================================================
--- branches/upstream/libmodule-install-xsutil-perl/current/META.yml (original)
+++ branches/upstream/libmodule-install-xsutil-perl/current/META.yml Sun Aug  8 16:00:31 2010
@@ -31,4 +31,4 @@
 resources:
   license: http://dev.perl.org/licenses/
   repository: git://github.com/gfx/Perl-Module-Install-XSUtil.git
-version: 0.25
+version: 0.26

Modified: branches/upstream/libmodule-install-xsutil-perl/current/lib/Module/Install/XSUtil.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-install-xsutil-perl/current/lib/Module/Install/XSUtil.pm?rev=61443&op=diff
==============================================================================
--- branches/upstream/libmodule-install-xsutil-perl/current/lib/Module/Install/XSUtil.pm (original)
+++ branches/upstream/libmodule-install-xsutil-perl/current/lib/Module/Install/XSUtil.pm Sun Aug  8 16:00:31 2010
@@ -2,7 +2,7 @@
 
 use 5.005_03;
 
-$VERSION = '0.25';
+$VERSION = '0.26';
 
 use Module::Install::Base;
 @ISA     = qw(Module::Install::Base);
@@ -141,6 +141,12 @@
     return;
 }
 
+sub _gccversion {
+    my $res = `$Config{cc} --version`;
+    my ($version) = $res =~ /\(GCC\) ([0-9.]+)/;
+    return $version || 0;
+}
+
 sub cc_warnings{
     my($self) = @_;
 
@@ -151,9 +157,10 @@
         $self->cc_append_to_ccflags(qw(-Wall));
 
         no warnings 'numeric';
-        if($Config{gccversion} >= 4.0){
+        my $gccversion = _gccversion();
+        if($gccversion >= 4.0){
             $self->cc_append_to_ccflags('-Wextra -Wdeclaration-after-statement');
-            if($Config{gccversion} >= 4.1){
+            if($gccversion >= 4.1){
                 $self->cc_append_to_ccflags('-Wc++-compat');
             }
         }
@@ -627,7 +634,7 @@
 
 =head1 VERSION
 
-This document describes Module::Install::XSUtil version 0.25.
+This document describes Module::Install::XSUtil version 0.26.
 
 =head1 SYNOPSIS
 




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