Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Sereal for openSUSE:Factory checked in at 2023-03-10 22:08:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Sereal (Old) and /work/SRC/openSUSE:Factory/.perl-Sereal.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Sereal" Fri Mar 10 22:08:38 2023 rev:11 rq:1070663 version:5.003 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Sereal/perl-Sereal.changes 2022-09-27 20:14:50.953947674 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Sereal.new.31432/perl-Sereal.changes 2023-03-10 22:09:01.757583033 +0100 @@ -1,0 +2,6 @@ +Thu Feb 9 03:12:06 UTC 2023 - Tina Müller <[email protected]> + +- updated to 5.003 + see /usr/share/doc/packages/perl-Sereal/Changes + +------------------------------------------------------------------- Old: ---- Sereal-5.001.tar.gz New: ---- Sereal-5.003.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Sereal.spec ++++++ --- /var/tmp/diff_new_pack.nJAWxW/_old 2023-03-10 22:09:02.281585419 +0100 +++ /var/tmp/diff_new_pack.nJAWxW/_new 2023-03-10 22:09:02.285585437 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Sereal # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %define cpan_name Sereal Name: perl-Sereal -Version: 5.001 +Version: 5.003 Release: 0 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Binary serialization module for Perl @@ -28,15 +28,15 @@ BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Sereal::Decoder) >= 5.001 -BuildRequires: perl(Sereal::Encoder) >= 5.001 +BuildRequires: perl(Sereal::Decoder) >= 5.003 +BuildRequires: perl(Sereal::Encoder) >= 5.003 BuildRequires: perl(Test::Deep) BuildRequires: perl(Test::Differences) BuildRequires: perl(Test::LongString) BuildRequires: perl(Test::More) >= 0.88 BuildRequires: perl(Test::Warn) -Requires: perl(Sereal::Decoder) >= 5.001 -Requires: perl(Sereal::Encoder) >= 5.001 +Requires: perl(Sereal::Decoder) >= 5.003 +Requires: perl(Sereal::Encoder) >= 5.003 %{perl_requires} %description ++++++ Sereal-5.001.tar.gz -> Sereal-5.003.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/Changes new/Sereal-5.003/Changes --- old/Sereal-5.001/Changes 2022-09-03 15:37:06.000000000 +0200 +++ new/Sereal-5.003/Changes 2023-02-08 03:33:28.000000000 +0100 @@ -1,8 +1,8 @@ Revision history for Perl extension Sereal Sereal is a dependency package that pulls in the real Sereal::Encoder -and Sereal::Decoder. For the actual changes between Sereal releases, -please see the Encoder and Decoder changelogs: +and Sereal::Decoder. These are summaries or copies of the actual changes +from the the Encoder and Decoder changelogs: * https://github.com/Sereal/Sereal/blob/master/Perl/Decoder/Changes * https://github.com/Sereal/Sereal/blob/master/Perl/Encoder/Changes @@ -13,6 +13,47 @@ * Sereal package and instead install the Encoder or * * Decoder independently. * **************************************************************** +5.003 + * Production release of 5.002_001 and 5.002_002 + * OpenBSD build fixes. Gracious thanks to Andrew Hewus Fresh + for providing guidance and access to an OpenBSD box to use to + debug and fix this. + * Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16 + * Assorted build fixes related to these updates. + +5.002_002 + * OpenBSD build fixes. Gracious thanks to Andrew Hewus Fresh + for providing guidance and access to an OpenBSD box to use to + debug and fix this. + +5.002_001 + * Update Miniz to 3.0.2, Zstd to 1.5.2 and Devel::CheckLib to 1.16 + * Assorted build fixes related to these updates. + +5.002 + * Fixup Decoder tests to run on perl 5.8 which has no defined-or. + - Consolidated changes from 5.001_00x: + * Ensure that Encoder depends on the correct version of the Decoder. + Gracious thanks to Slaven Rezic for being so patient in helping + me get this release working properly. + * Test compatibility fixes when no perl is already installed. + * Add t/195_backcompat.t to check if the latest decoder will + seamlessly handle reading output from older versions. + * Test compatibility fixes with version 3 and earlier. + +5.001_003 + * Ensure that Encoder depends on the correct version of the Decoder. + Gracious thanks to Slaven Rezic for being so patient in helping + me get 5.001_00x working properly. + +5.001_002 + * Test compatibility fixes when no perl is already installed. + * Decoder: Add t/195_backcompat.t to check if the latest decoder + will seamlessly handle reading output from older versions. + +5.001_001 + * Test compatibility fixes with version 3 and earlier. + 5.001 * First official release of protocol 5. Better support for non standard NV types. Support for the new Perl 5.36 bools. @@ -147,7 +188,7 @@ * Fix builds under 5.8.9 3.012 Dec 6 2015 - * Yet another release related to broken META files. + * Yet another release related to broken META files. ExtUtils::MakeMaker and CPAN::Meta need to be up to date or the META files miss stuff. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/META.json new/Sereal-5.003/META.json --- old/Sereal-5.001/META.json 2022-09-03 15:42:16.000000000 +0200 +++ new/Sereal-5.003/META.json 2023-02-08 03:38:11.000000000 +0100 @@ -4,7 +4,7 @@ "Steffen Mueller <[email protected]>, Yves Orton <[email protected]>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -32,8 +32,8 @@ }, "runtime" : { "requires" : { - "Sereal::Decoder" : "5.001", - "Sereal::Encoder" : "5.001", + "Sereal::Decoder" : "5.003", + "Sereal::Encoder" : "5.003", "perl" : "5.008" } }, @@ -42,8 +42,8 @@ "Data::Dumper" : "0", "File::Spec" : "0", "Scalar::Util" : "0", - "Sereal::Decoder" : "5.001", - "Sereal::Encoder" : "5.001", + "Sereal::Decoder" : "5.003", + "Sereal::Encoder" : "5.003", "Test::Deep" : "0", "Test::Differences" : "0", "Test::LongString" : "0", @@ -62,6 +62,6 @@ "url" : "git://github.com/Sereal/Sereal.git" } }, - "version" : "5.001", - "x_serialization_backend" : "JSON::PP version 4.11" + "version" : "5.003", + "x_serialization_backend" : "JSON::PP version 4.06" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/META.yml new/Sereal-5.003/META.yml --- old/Sereal-5.001/META.yml 2022-09-03 15:42:16.000000000 +0200 +++ new/Sereal-5.003/META.yml 2023-02-08 03:38:11.000000000 +0100 @@ -7,8 +7,8 @@ ExtUtils::MakeMaker: '0' File::Spec: '0' Scalar::Util: '0' - Sereal::Decoder: '5.001' - Sereal::Encoder: '5.001' + Sereal::Decoder: '5.003' + Sereal::Encoder: '5.003' Test::Deep: '0' Test::Differences: '0' Test::LongString: '0' @@ -17,7 +17,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.64, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.62, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -28,11 +28,11 @@ - t - inc requires: - Sereal::Decoder: '5.001' - Sereal::Encoder: '5.001' + Sereal::Decoder: '5.003' + Sereal::Encoder: '5.003' perl: '5.008' resources: bugtracker: https://github.com/Sereal/Sereal/issues repository: git://github.com/Sereal/Sereal.git -version: '5.001' +version: '5.003' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/Makefile.PL new/Sereal-5.003/Makefile.PL --- old/Sereal-5.001/Makefile.PL 2022-09-03 15:37:12.000000000 +0200 +++ new/Sereal-5.003/Makefile.PL 2023-02-08 03:31:59.000000000 +0100 @@ -4,7 +4,8 @@ use ExtUtils::MakeMaker; use Cwd; -our $VERSION= '5.001'; +our $VERSION= '5.003'; +$VERSION = eval $VERSION or die "WTF: $VERSION: $@"; # deal with underbars my $shared_dir= "../shared"; my $its_our_repo_file= "../this_is_the_Sereal_repo.txt"; @@ -54,8 +55,8 @@ NAME => 'Sereal', VERSION_FROM => 'lib/Sereal.pm', # finds $VERSION PREREQ_PM => { - 'Sereal::Encoder' => $VERSION, 'Sereal::Decoder' => $VERSION, + 'Sereal::Encoder' => $VERSION, }, # e.g., Module::Name => 1.1 LICENSE => 'perl', ABSTRACT_FROM => 'lib/Sereal.pm', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/inc/Sereal/BuildTools.pm new/Sereal-5.003/inc/Sereal/BuildTools.pm --- old/Sereal-5.001/inc/Sereal/BuildTools.pm 2022-08-30 19:40:40.000000000 +0200 +++ new/Sereal-5.003/inc/Sereal/BuildTools.pm 2023-02-07 11:20:10.000000000 +0100 @@ -85,6 +85,9 @@ my ( $libs, $defines, $objects, $subdirs )= @_; require Devel::CheckLib; + $$libs .= ' -L/usr/local/lib' + if $^O =~ /openbsd/; + if ( !$ENV{SEREAL_USE_BUNDLED_LIBS} && !$ENV{SEREAL_USE_BUNDLED_CSNAPPY} @@ -163,6 +166,12 @@ $defines .= " -Dinline= "; } + $defines .= " -DMINIZ_NO_STDIO"; + if ($ENV{USE_UNALIGNED}) { + $defines .= " -DMINIZ_USE_UNALIGNED_LOAD_AND_STORE=1"; + $defines .= " -DMINIZ_UNALIGNED_USE_MEMCOPY"; + } + return $defines; } @@ -217,6 +226,10 @@ } } + # silence warning about STMT_START and STMT_END. + $OPTIMIZE .= " -Wno-compound-token-split-by-macro" + if $clang; + return $OPTIMIZE; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/lib/Sereal.pm new/Sereal-5.003/lib/Sereal.pm --- old/Sereal-5.001/lib/Sereal.pm 2022-09-03 15:37:12.000000000 +0200 +++ new/Sereal-5.003/lib/Sereal.pm 2023-02-08 03:31:59.000000000 +0100 @@ -2,9 +2,9 @@ use 5.008; use strict; use warnings; -our $VERSION= '5.001'; +our $VERSION= '5.003'; our $XS_VERSION= $VERSION; $VERSION= eval $VERSION; -use Sereal::Encoder 5.001 qw( +use Sereal::Encoder 5.003 qw( encode_sereal sereal_encode_with_object SRL_UNCOMPRESSED @@ -12,7 +12,7 @@ SRL_ZLIB SRL_ZSTD ); -use Sereal::Decoder 5.001 qw( +use Sereal::Decoder 5.003 qw( decode_sereal looks_like_sereal decode_sereal_with_header_data diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/t/002_have_enc_and_dec.t new/Sereal-5.003/t/002_have_enc_and_dec.t --- old/Sereal-5.001/t/002_have_enc_and_dec.t 2022-09-02 19:58:47.000000000 +0200 +++ new/Sereal-5.003/t/002_have_enc_and_dec.t 2023-02-01 08:59:41.000000000 +0100 @@ -11,8 +11,11 @@ } use Sereal::TestSet qw(:all); my $problem= check_for_dependency_issues(); -if ( !$problem or $problem!~/is missing/ ) { - plan tests => 1; +if ( !$problem or $problem !~ /available to test/ and + $Sereal::Decoder::VERSION and + $Sereal::Encoder::VERSION + ) { + plan tests => 2; } else { plan skip_all => 'Must have both encoder and decoder to run this test.'; @@ -20,8 +23,14 @@ diag "Testing with both encoder and decoder."; diag "Sereal::Decoder v$Sereal::Decoder::VERSION"; diag "Sereal::Encoder v$Sereal::Encoder::VERSION"; +my $show_diag; +cmp_ok($Sereal::Encoder::VERSION,'<=',$Sereal::Decoder::VERSION, + "Check that Decoder version is newer or the same as Encoder") + or $show_diag++; is($problem,"","There should be no Encoder/Decoder dependency problems.") - or diag "If this test fails it means you need to upgrade Sereal::Decoder first!\n" + or $show_diag++; +diag "If this test fails it means you need to upgrade Sereal::Decoder first!\n" . "You are strongly advised to follow this guidance, upgrading the Encoder\n" . "before you upgrade the Decoder may lead to serious problems\n\n" - . "YOU HAVE BEEN WARNED.\n\n"; + . "YOU HAVE BEEN WARNED.\n\n" + if $show_diag; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Sereal-5.001/t/lib/Sereal/TestSet.pm new/Sereal-5.003/t/lib/Sereal/TestSet.pm --- old/Sereal-5.001/t/lib/Sereal/TestSet.pm 2022-09-02 20:39:47.000000000 +0200 +++ new/Sereal-5.003/t/lib/Sereal/TestSet.pm 2023-02-01 08:56:28.000000000 +0100 @@ -674,58 +674,37 @@ } sub have_encoder_and_decoder { - return !check_for_dependency_issues(@_); + my $ret= check_for_dependency_issues(@_); + diag $ret if $ret; + return !$ret; } +my %have_version; sub check_for_dependency_issues { my ($min_v)= @_; - - # $Class is the already-loaded class, so the one we're testing - my @need= - $Class =~ /Encoder/ ? ("Decoder") - : $Class =~ /Decoder/ ? ("Encoder") - : ( "Decoder", "Encoder" ); - my @need_class= ( $Class, map { "Sereal::$_" } @need ); - - foreach my $class (@need_class) { - eval "use $class; 1" - or do { - note( "Could not locate $class for testing" . ( $@ ? " (Exception: $@)" : "" ) ); - return "$Class is missing."; - }; - my $cmp_v= $class->VERSION; - - if (!defined $min_v and $Class eq $class) { - if ($class eq "Sereal::Encoder") { - $min_v= $cmp_v; - } elsif ($class eq "Sereal::Decoder") { - if ($0=~m!/v(\d+)/!) { - $min_v= $1; - if ($Config{usequadmath} || $Config{uselongdouble}) { - $min_v= 5; - } - } - } - } - - if ( $min_v and $cmp_v < $min_v ) { - diag( "Could not load correct version of $class for testing " - . "(got: $cmp_v, needed at least $min_v)" ); - return "$class version $cmp_v too low, need version $min_v"; - } - - $cmp_v =~ s/_//; - $cmp_v= sprintf( "%.2f", int( $cmp_v * 100 ) / 100 ); - my %compat_versions= map { $_ => 1 } $Class->_test_compat(); - if ( not length($cmp_v) or not exists $compat_versions{$cmp_v} ) { - diag( "Could not load correct version of $class for testing " - . "(got: $cmp_v, needed any of " - . join( ", ", keys %compat_versions ) - . ")" ); - return "$class version $cmp_v not compatible, $Class is version $min_v" + foreach my $class ("Sereal::Encoder", "Sereal::Decoder") { + eval "use $class; 1" or next; + $have_version{$class} = $class->VERSION; + } + my $Other = ($Class eq "Sereal::Decoder") + ? "Sereal::Encoder" + : "Sereal::Decoder"; + + my $this_version = $have_version{$Class} + or die "panic: No version for the module ($Class) we are building?"; + + my $other_version = $have_version{$Other} + or return "No $Other available to test with."; + + if (!$min_v and $0 =~ m!/v(\d+)/!) { + $min_v= $1; + if ($Config{usequadmath} || $Config{uselongdouble}) { + $min_v= 5; } } - + if ($min_v and $other_version < $min_v) { + return "This test requires version $min_v for $Other but we have version $other_version"; + } return ""; }
