r50561 - in /branches/upstream/libmodule-install-xsutil-perl/current: Changes META.yml Makefile.PL example/src/Foo.xs lib/Module/Install/XSUtil.pm

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Sat Jan 9 17:49:17 UTC 2010


Author: jawnsy-guest
Date: Sat Jan  9 17:49:08 2010
New Revision: 50561

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

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/Makefile.PL
    branches/upstream/libmodule-install-xsutil-perl/current/example/src/Foo.xs
    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=50561&op=diff
==============================================================================
--- branches/upstream/libmodule-install-xsutil-perl/current/Changes (original)
+++ branches/upstream/libmodule-install-xsutil-perl/current/Changes Sat Jan  9 17:49:08 2010
@@ -1,4 +1,10 @@
 Revision history for Perl extension Module::Install::XSUtil
+
+0.20 Sat Jan  9 16:31:53 2010
+    - Change cc_warnings()
+        - Add -Wc++-compat on gcc 4
+        - Add -Wno-comment on gcc 3
+    - Remove ExtUtils::CBuilder dependency, use can_cc() instead
 
 0.19 Tue Dec  8 10:35:19 2009
     - Make cc_available recognize the '--pp' and '--xs' options

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=50561&op=diff
==============================================================================
--- branches/upstream/libmodule-install-xsutil-perl/current/META.yml (original)
+++ branches/upstream/libmodule-install-xsutil-perl/current/META.yml Sat Jan  9 17:49:08 2010
@@ -5,7 +5,6 @@
 build_requires:
   B::Hooks::OP::Annotation: 0.43
   Devel::PPPort: 3.19
-  ExtUtils::CBuilder: 0.21
   ExtUtils::MakeMaker: 6.42
   ExtUtils::ParseXS: 2.21
   Test::More: 0.88
@@ -32,4 +31,4 @@
 resources:
   license: http://dev.perl.org/licenses/
   repository: git://github.com/gfx/Perl-Module-Install-XSUtil.git
-version: 0.19
+version: 0.20

Modified: branches/upstream/libmodule-install-xsutil-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-install-xsutil-perl/current/Makefile.PL?rev=50561&op=diff
==============================================================================
--- branches/upstream/libmodule-install-xsutil-perl/current/Makefile.PL (original)
+++ branches/upstream/libmodule-install-xsutil-perl/current/Makefile.PL Sat Jan  9 17:49:08 2010
@@ -10,7 +10,6 @@
 
 # these modules are required for t/01_example.t
 test_requires 'Devel::PPPort'     => 3.19;
-test_requires 'ExtUtils::CBuilder'=> 0.21;
 test_requires 'ExtUtils::ParseXS' => 2.21;
 test_requires 'XSLoader'          => 0.10;
 test_requires 'B::Hooks::OP::Annotation'

Modified: branches/upstream/libmodule-install-xsutil-perl/current/example/src/Foo.xs
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmodule-install-xsutil-perl/current/example/src/Foo.xs?rev=50561&op=diff
==============================================================================
--- branches/upstream/libmodule-install-xsutil-perl/current/example/src/Foo.xs (original)
+++ branches/upstream/libmodule-install-xsutil-perl/current/example/src/Foo.xs Sat Jan  9 17:49:08 2010
@@ -20,12 +20,19 @@
 #endif
 }
 
+STATIC OPAnnotationGroup MYMODULE_ANNOTATIONS;
+
 MODULE = Foo	PACKAGE = Foo
 
 PROTOTYPES: DISABLE
 
 BOOT:
-	op_annotation_group_free(aTHX_ op_annotation_group_new());
+	MYMODULE_ANNOTATIONS = op_annotation_group_new();
+
+void
+END()
+CODE:
+    op_annotation_group_free(aTHX_ MYMODULE_ANNOTATIONS);
 
 bool
 foo_is_ok()

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=50561&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 Sat Jan  9 17:49:08 2010
@@ -2,7 +2,7 @@
 
 use 5.005_03;
 
-$VERSION = '0.19';
+$VERSION = '0.20';
 
 use Module::Install::Base;
 @ISA     = qw(Module::Install::Base);
@@ -17,7 +17,7 @@
 use constant _VERBOSE => $ENV{MI_VERBOSE} ? 1 : 0;
 
 my %ConfigureRequires = (
-    'ExtUtils::CBuilder' => 0.21, # for have_compiler()
+    # currently nothing
 );
 
 my %BuildRequires = (
@@ -95,11 +95,7 @@
             }
         }
 
-        local $@;
-        return $cc_available = eval{
-            require ExtUtils::CBuilder;
-            ExtUtils::CBuilder->new(quiet => 1)->have_compiler();
-        } ? 1 : 0;
+        return $cc_available = shift->can_cc();
     }
 }
 
@@ -146,10 +142,10 @@
 
         no warnings 'numeric';
         if($Config{gccversion} >= 4.00){
-            $self->cc_append_to_ccflags('-Wextra -Wdeclaration-after-statement');
+            $self->cc_append_to_ccflags('-Wextra -Wdeclaration-after-statement -Wc++-compat');
         }
         else{
-            $self->cc_append_to_ccflags('-W');
+            $self->cc_append_to_ccflags('-W -Wno-comment');
         }
     }
     elsif(_is_msvc()){
@@ -537,7 +533,7 @@
 
 =head1 VERSION
 
-This document describes Module::Install::XSUtil version 0.19.
+This document describes Module::Install::XSUtil version 0.20.
 
 =head1 SYNOPSIS
 




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