Hello community, here is the log from the commit of package perl-Sereal-Decoder for openSUSE:Factory checked in at 2019-09-05 12:34:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Sereal-Decoder (Old) and /work/SRC/openSUSE:Factory/.perl-Sereal-Decoder.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Sereal-Decoder" Thu Sep 5 12:34:21 2019 rev:4 rq:727220 version:4.007 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Sereal-Decoder/perl-Sereal-Decoder.changes 2018-11-09 07:53:54.679746078 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Sereal-Decoder.new.7948/perl-Sereal-Decoder.changes 2019-09-05 12:34:24.619572236 +0200 @@ -1,0 +2,23 @@ +Fri Aug 30 10:34:26 UTC 2019 - Tina Mueller <tina.muel...@suse.com> + +- Add custom_build in cpanspec.yml. make doesn't work here with -j... + +------------------------------------------------------------------- +Wed Apr 10 05:24:08 UTC 2019 - Stephan Kulow <co...@suse.com> + +- updated to 4.007 + see /usr/share/doc/packages/perl-Sereal-Decoder/Changes + + 4.007 Tues Apr 9, 2019 + * Tweak docs for looks_like_sereal/scalar_looks_like_sereal + + 4.006 Mon Apr 8, 2019 + * Version bump only + +------------------------------------------------------------------- +Tue Apr 9 05:24:03 UTC 2019 - Stephan Kulow <co...@suse.com> + +- updated to 4.006 + see /usr/share/doc/packages/perl-Sereal-Decoder/Changes + +------------------------------------------------------------------- Old: ---- Sereal-Decoder-4.005.tar.gz New: ---- Sereal-Decoder-4.007.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Sereal-Decoder.spec ++++++ --- /var/tmp/diff_new_pack.gVh5HK/_old 2019-09-05 12:34:25.147572132 +0200 +++ /var/tmp/diff_new_pack.gVh5HK/_new 2019-09-05 12:34:25.147572132 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Sereal-Decoder # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: perl-Sereal-Decoder -Version: 4.005 +Version: 4.007 Release: 0 %define cpan_name Sereal-Decoder Summary: Binary serialization module for Perl (decoder part) ++++++ Sereal-Decoder-4.005.tar.gz -> Sereal-Decoder-4.007.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-Decoder-4.005/Changes new/Sereal-Decoder-4.007/Changes --- old/Sereal-Decoder-4.005/Changes 2018-01-23 21:42:21.000000000 +0100 +++ new/Sereal-Decoder-4.007/Changes 2019-04-09 19:01:19.000000000 +0200 @@ -5,6 +5,12 @@ * of the decoder before upgrading to version 4 of the * * encoder! * **************************************************************** +4.007 Tues Apr 9, 2019 + * Tweak docs for looks_like_sereal/scalar_looks_like_sereal + +4.006 Mon Apr 8, 2019 + * Version bump only + 4.005 Tues Jan 23, 2018 * Document and fix decode_from_file() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-Decoder-4.005/META.json new/Sereal-Decoder-4.007/META.json --- old/Sereal-Decoder-4.005/META.json 2018-01-23 21:49:58.000000000 +0100 +++ new/Sereal-Decoder-4.007/META.json 2019-04-09 19:04:35.000000000 +0200 @@ -4,7 +4,7 @@ "Steffen Mueller <smuel...@cpan.org>, Yves Orton <y...@cpan.org>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -62,6 +62,6 @@ "url" : "git://github.com/Sereal/Sereal.git" } }, - "version" : "4.005", - "x_serialization_backend" : "JSON::PP version 2.27400" + "version" : "4.007", + "x_serialization_backend" : "JSON::PP version 2.27400_02" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-Decoder-4.005/META.yml new/Sereal-Decoder-4.007/META.yml --- old/Sereal-Decoder-4.005/META.yml 2018-01-23 21:49:58.000000000 +0100 +++ new/Sereal-Decoder-4.007/META.yml 2019-04-09 19:04:35.000000000 +0200 @@ -18,7 +18,7 @@ configure_requires: ExtUtils::MakeMaker: '7.0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -34,5 +34,5 @@ resources: bugtracker: https://github.com/Sereal/Sereal/issues repository: git://github.com/Sereal/Sereal.git -version: '4.005' -x_serialization_backend: 'CPAN::Meta::YAML version 0.011' +version: '4.007' +x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-Decoder-4.005/lib/Sereal/Decoder/Constants.pm new/Sereal-Decoder-4.007/lib/Sereal/Decoder/Constants.pm --- old/Sereal-Decoder-4.005/lib/Sereal/Decoder/Constants.pm 2018-01-23 21:43:47.000000000 +0100 +++ new/Sereal-Decoder-4.007/lib/Sereal/Decoder/Constants.pm 2019-04-09 19:01:31.000000000 +0200 @@ -4,7 +4,7 @@ require Exporter; our @ISA= qw(Exporter); -our $VERSION = '4.005'; # Don't forget to update the TestCompat set for testing against installed encoders! +our $VERSION = '4.007'; # Don't forget to update the TestCompat set for testing against installed encoders! our (@EXPORT_OK, %DEFINE, %TAG_INFO_HASH, @TAG_INFO_ARRAY); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-Decoder-4.005/lib/Sereal/Decoder.pm new/Sereal-Decoder-4.007/lib/Sereal/Decoder.pm --- old/Sereal-Decoder-4.005/lib/Sereal/Decoder.pm 2018-01-23 21:43:47.000000000 +0100 +++ new/Sereal-Decoder-4.007/lib/Sereal/Decoder.pm 2019-04-09 19:01:31.000000000 +0200 @@ -5,7 +5,7 @@ use Carp qw/croak/; use XSLoader; -our $VERSION = '4.005'; # Don't forget to update the TestCompat set for testing against installed encoders! +our $VERSION = '4.007'; # Don't forget to update the TestCompat set for testing against installed encoders! our $XS_VERSION = $VERSION; $VERSION= eval $VERSION; # not for public consumption, just for testing. @@ -15,9 +15,12 @@ use Exporter 'import'; our @EXPORT_OK = qw( - decode_sereal looks_like_sereal decode_sereal_with_header_data + decode_sereal + looks_like_sereal + decode_sereal_with_header_data scalar_looks_like_sereal - sereal_decode_with_object sereal_decode_with_header_with_object + sereal_decode_with_object + sereal_decode_with_header_with_object sereal_decode_only_header_with_object sereal_decode_only_header_with_offset_with_object sereal_decode_with_header_and_offset_with_object @@ -133,7 +136,7 @@ } return @ret; } - return $self->decode($buf, $_[2]); + return $self->decode($buf, @_ > 2 ? $_[2] : ()); } my $flags= sub { @@ -459,8 +462,6 @@ the first (or only) packet in the file. Accepts an optinal "target" variable as a second argument. -=head1 EXPORTABLE FUNCTIONS - =head2 looks_like_sereal Performs some rudimentary check to determine if the argument @@ -469,7 +470,7 @@ is valid, merely that it appears to be valid. On the other hand a false result is always reliable. -The return of this function may be treated as a simple boolean but +The return of this method may be treated as a simple boolean but is in fact a more complex return. When the argument does not look anything like a Sereal document then the return is perl's FALSE, which has the property of being string equivalent to "" and @@ -480,7 +481,7 @@ otherwise returns the protocol version of the document. This means you can write something like this: - $type= looks_like_sereal($thing); + $type= Sereal::Decoder->looks_like_sereal($thing); if ($type eq '') { say "Not a Sereal document"; } elsif ($type eq '0') { @@ -495,6 +496,13 @@ corresponds with the reported version number, as well as other checks, which may be enhanced in the future. +Note that looks_like_sereal() may be called as a class or object method, +and may also be called as a single argument function. See the related +scalar_looks_like_sereal() for a version which may ONLY be called as a +function, not as a method (and which is typically much faster). + +=head1 EXPORTABLE FUNCTIONS + =head2 sereal_decode_with_object The functional interface that is equivalent to using C<decode>. Takes a @@ -604,6 +612,10 @@ The functional interface that is equivalent to using C<looks_like_sereal>. +Note that this version cannot be called as a method. It is normally executed +as a custom opcode, as such errors about its usage may be caught at compile +time, and it should be much faster than looks_like_sereal. + =head1 ROBUSTNESS This implementation of a Sereal decoder tries to be as robust to invalid diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-Decoder-4.005/zstd/Makefile.PL new/Sereal-Decoder-4.007/zstd/Makefile.PL --- old/Sereal-Decoder-4.005/zstd/Makefile.PL 2018-01-23 21:18:23.000000000 +0100 +++ new/Sereal-Decoder-4.007/zstd/Makefile.PL 2019-04-09 16:10:54.000000000 +0200 @@ -41,13 +41,13 @@ .PHONY: default all clean test test_dynamic +all: lib + test: test_dynamic: default: lib -all: lib - libzstd.o: $(ZSTD_FILES) @echo compiling static library $(CC) $(FLAGS) -c $(ZSTD_FILES) ++++++ cpanspec.yml ++++++ --- /var/tmp/diff_new_pack.gVh5HK/_old 2019-09-05 12:34:25.255572111 +0200 +++ /var/tmp/diff_new_pack.gVh5HK/_new 2019-09-05 12:34:25.255572111 +0200 @@ -17,8 +17,10 @@ # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 -#custom_build: |- -#./Build build flags=%{?_smp_mflags} --myflag +custom_build: |- + perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" + # Don't build with smp_flags! + make #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module