Imported Upstream version 3.002.001
authorgregor herrmann <gregoa@debian.org>
Fri, 26 Sep 2014 12:13:21 +0000 (14:13 +0200)
committergregor herrmann <gregoa@debian.org>
Fri, 26 Sep 2014 12:13:21 +0000 (14:13 +0200)
Changes
META.json
META.yml
Makefile.PL
inc/Devel/CheckLib.pm
inc/Sereal/BuildTools.pm
lib/Sereal/Encoder.pm
lib/Sereal/Encoder/Constants.pm
snappy/csnappy_compress.c

diff --git a/Changes b/Changes
index 57427884a1997cd86b639203655992de9a6091ba..100a37dcb3f6f6300743ddb9860f6e018f7283cb 100644 (file)
--- a/Changes
+++ b/Changes
@@ -3,6 +3,11 @@ Revision history for Perl extension Sereal-Encoder
 * Warning: For a seamless upgrade, upgrade to version 3
 *          of the decoder before upgrading to version 3 of the
 *          encoder!
+3.002_001 Sept 26, 2014
+  * Niko Tyni fixed the 64-bit big endian Sereal bug! (Yay Niko!)
+  * Setup META.yml correctly so that certain dependencies are
+    marked as being test dependencies and not build or run-time
+    dependencies.
 
 3.002 Aug 20 2014
   Summary of changes from 3.001 - 3.002
index aef720dd9d6b62e7bf21c3317cf3198beb6674e4..13f07cd957cf81179a1d009b95a693281c38c9b7 100644 (file)
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
       "Steffen Mueller <smueller@cpan.org>, Yves Orton <yves@cpan.org>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 6.9, CPAN::Meta::Converter version 2.141520",
+   "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142060",
    "license" : [
       "perl_5"
    ],
    "prereqs" : {
       "build" : {
          "requires" : {
-            "Data::Dumper" : "0",
             "ExtUtils::ParseXS" : "2.21",
             "File::Find" : "0",
-            "File::Path" : "0",
-            "File::Spec" : "0",
-            "Scalar::Util" : "0",
-            "Sereal::Decoder" : "3.00",
-            "Test::LongString" : "0",
-            "Test::More" : "0.88",
-            "Test::Warn" : "0"
+            "File::Path" : "0"
          }
       },
       "configure" : {
             "XSLoader" : "0",
             "perl" : "5.008"
          }
+      },
+      "test" : {
+         "requires" : {
+            "Data::Dumper" : "0",
+            "File::Spec" : "0",
+            "Scalar::Util" : "0",
+            "Sereal::Decoder" : "3.00",
+            "Test::LongString" : "0",
+            "Test::More" : "0.88",
+            "Test::Warn" : "0"
+         }
       }
    },
-   "release_status" : "stable",
+   "release_status" : "testing",
    "resources" : {
       "bugtracker" : {
          "web" : "https://github.com/Sereal/Sereal/issues"
       },
       "repository" : {
+         "type" : "git",
          "url" : "git://github.com/Sereal/Sereal.git"
       }
    },
-   "version" : "3.002"
+   "version" : "3.002_001"
 }
index 4093ecf547aa20dfef10b971d8fcaac74ecb8f7c..c28fe065a79c7b65fcc2cdf87e83a5e35c1ac4fa 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -16,7 +16,7 @@ build_requires:
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.9, CPAN::Meta::Converter version 2.141520'
+generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.142060'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -32,4 +32,4 @@ requires:
 resources:
   bugtracker: https://github.com/Sereal/Sereal/issues
   repository: git://github.com/Sereal/Sereal.git
-version: '3.002'
+version: 3.002_001
index 25f9bca03cf7362701333e07eaa3e49f3ab85fb0..65d92921e4205765422f721b203688e580bb20c1 100644 (file)
@@ -70,23 +70,29 @@ WriteMakefile1(
     MIN_PERL_VERSION => '5.008',
     META_MERGE => {
         resources => {
-            repository => 'git://github.com/Sereal/Sereal.git',
-            bugtracker => 'https://github.com/Sereal/Sereal/issues',
+            repository => {
+              url => 'git://github.com/Sereal/Sereal.git',
+            },
+            bugtracker => {
+              web => 'https://github.com/Sereal/Sereal/issues',
+            },
         },
+        'meta-spec' => { version => 2 },
     },
-    BUILD_REQUIRES => {
+    TEST_REQUIRES => {
         'Test::More' => 0.88,
         'Scalar::Util' => 0,
-        'File::Find' => 0,
         'File::Spec' => 0,
-        'Scalar::Util' => 0,
-        'File::Path' => 0,
-        'ExtUtils::ParseXS' => '2.21',
         'Test::LongString' => '0',
-        'Data::Dumper' => '0',
         'Test::Warn' => '0',
+        'Data::Dumper' => '0',
         'Sereal::Decoder' => '3.00',
     },
+    BUILD_REQUIRES => {
+        'File::Find' => 0,
+        'File::Path' => 0,
+        'ExtUtils::ParseXS' => '2.21',
+    },
     NAME              => $module,
     VERSION_FROM      => 'lib/Sereal/Encoder.pm', # finds $VERSION
     PREREQ_PM         => {
@@ -112,6 +118,10 @@ sub WriteMakefile1 {  #Written by Alexandr Ciornii, version 0.20. Added by eumm-
     $eumm_version=eval $eumm_version;
     die "EXTRA_META is deprecated" if exists $params{EXTRA_META};
     die "License not specified" if not exists $params{LICENSE};
+    if ($params{TEST_REQUIRES} and $eumm_version < 6.6303) {
+        $params{BUILD_REQUIRES}={ %{$params{BUILD_REQUIRES} || {}} , %{$params{TEST_REQUIRES}} };
+        delete $params{TEST_REQUIRES};
+    }
     if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
         #EUMM 6.5502 has problems with BUILD_REQUIRES
         $params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
index c830d2fe914dc8d6ff13b82df051518f87e619f6..0a235854abe12975c834d2a870abbd2fc631a92a 100644 (file)
@@ -369,7 +369,7 @@ sub _findcc {
     my @cc = split(/\s+/, $Config{cc});
     return ( [ @cc, @ccflags ], \@ldflags ) if -x $cc[0];
     foreach my $path (@paths) {
-        my $compiler = File::Spec->catfile($path, $cc[0]) . $Config{_exe};
+        my $compiler = File::Spec->catfile($path, $cc[0]) . ($^O eq 'cygwin' ? '' : $Config{_exe});
         return ([ $compiler, @cc[1 .. $#cc], @ccflags ], \@ldflags)
             if -x $compiler;
     }
index 530efa30c8104e24de758bba0e3578702b10db45..a36e1e9fda4a5c07f28b65acd8e78041f37dfe89 100644 (file)
@@ -80,7 +80,7 @@ package $constant_namespace;
 use strict;
 use warnings;
 use Carp qw(croak);
-use $namespace; # for XSLoading
+use $namespace; our \$VERSION= \$$namespace\::VERSION; # for XSLoading
 our \@ISA = qw(Exporter);
 require Exporter;
 our \@EXPORT_OK;
index abb0285e9683e0f98d753eebdb055633e3f2166e..45232e5f9b48d8f011f7c19a6a9f9f2d978edf64 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 use Carp qw/croak/;
 use XSLoader;
 
-our $VERSION = '3.002'; # Don't forget to update the TestCompat set for testing against installed decoders!
+our $VERSION = '3.002_001'; # Don't forget to update the TestCompat set for testing against installed decoders!
 our $XS_VERSION = $VERSION; $VERSION= eval $VERSION;
 
 # not for public consumption, just for testing.
index 307dd9270b8b88813940fdb72bf39215ace849ca..9138baa683fceefacb8b7d0d2769799c49cf376e 100644 (file)
@@ -4,7 +4,7 @@ package Sereal::Encoder::Constants;
 use strict;
 use warnings;
 use Carp qw(croak);
-use Sereal::Encoder; # for XSLoading
+use Sereal::Encoder; our $VERSION= $Sereal::Encoder::VERSION; # for XSLoading
 our @ISA = qw(Exporter);
 require Exporter;
 our @EXPORT_OK;
index abc103b35bfffad26f3d7b9631f827f5fc153896..007bb82b470a2957dfa30f31c27a9469e88c9fa0 100644 (file)
@@ -441,7 +441,7 @@ static INLINE EightBytesReference GetEightBytesAt(const char* ptr) {
 static INLINE uint32_t GetUint32AtOffset(uint64_t v, int offset) {
        DCHECK_GE(offset, 0);
        DCHECK_LE(offset, 4);
-#ifdef __LITTLE_ENDIAN
+#if __BYTE_ORDER == __LITTLE_ENDIAN
        return v >> (8 * offset);
 #else
        return v >> (32 - 8 * offset);