Hello community,

here is the log from the commit of package perl-Struct-Dumb for 
openSUSE:Factory checked in at 2020-04-22 20:55:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Struct-Dumb (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Struct-Dumb.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Struct-Dumb"

Wed Apr 22 20:55:38 2020 rev:6 rq:796187 version:0.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Struct-Dumb/perl-Struct-Dumb.changes        
2020-04-21 13:05:29.724193384 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Struct-Dumb.new.2738/perl-Struct-Dumb.changes  
    2020-04-22 20:55:42.051710390 +0200
@@ -1,0 +2,13 @@
+Tue Apr 21 03:12:17 UTC 2020 -  <timueller+p...@suse.de>
+
+- updated to 0.12
+   see /usr/share/doc/packages/perl-Struct-Dumb/Changes
+
+  0.12    2020-04-21
+          [BUGFIXES] 
+           * Better ways to detect late-loading of Data::Dump.
+              + Avoid touching its $VERSION
+              + Check it is loaded when the destroywatch is invoked before
+                actually applying filter
+
+-------------------------------------------------------------------

Old:
----
  Struct-Dumb-0.11.tar.gz

New:
----
  Struct-Dumb-0.12.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Struct-Dumb.spec ++++++
--- /var/tmp/diff_new_pack.83DBJ9/_old  2020-04-22 20:55:42.999712246 +0200
+++ /var/tmp/diff_new_pack.83DBJ9/_new  2020-04-22 20:55:42.999712246 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           perl-Struct-Dumb
-Version:        0.11
+Version:        0.12
 Release:        0
 %define cpan_name Struct-Dumb
 Summary:        Make simple lightweight record-like structures
@@ -30,7 +30,6 @@
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
-BuildRequires:  perl(Data::Dump)
 BuildRequires:  perl(Module::Build) >= 0.400400
 BuildRequires:  perl(Test::Fatal)
 BuildRequires:  perl(Test::More) >= 0.88

++++++ Struct-Dumb-0.11.tar.gz -> Struct-Dumb-0.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/Build.PL 
new/Struct-Dumb-0.12/Build.PL
--- old/Struct-Dumb-0.11/Build.PL       2020-04-17 02:24:18.000000000 +0200
+++ new/Struct-Dumb-0.12/Build.PL       2020-04-21 01:41:51.000000000 +0200
@@ -6,7 +6,6 @@
 my $build = Module::Build->new(
    module_name => 'Struct::Dumb',
    test_requires => {
-      'Data::Dump' => 0,
       'Test::Fatal' => 0,
       'Test::More' => '0.88', # done_testing
    },
@@ -14,7 +13,6 @@
       'Module::Build' => '0.4004', # test_requires
    },
    license => 'perl',
-   create_makefile_pl => 'traditional',
    create_license => 1,
    create_readme  => 1,
 );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/Changes new/Struct-Dumb-0.12/Changes
--- old/Struct-Dumb-0.11/Changes        2020-04-17 02:24:18.000000000 +0200
+++ new/Struct-Dumb-0.12/Changes        2020-04-21 01:41:51.000000000 +0200
@@ -1,5 +1,12 @@
 Revision history for Struct-Dumb
 
+0.12    2020-04-21
+        [BUGFIXES] 
+         * Better ways to detect late-loading of Data::Dump.
+            + Avoid touching its $VERSION
+            + Check it is loaded when the destroywatch is invoked before
+              actually applying filter
+
 0.11    2020-04-17
         [BUGFIXES]
          * Fix for detecting Data::Dump being loaded afterward Struct::Dumb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/MANIFEST 
new/Struct-Dumb-0.12/MANIFEST
--- old/Struct-Dumb-0.11/MANIFEST       2020-04-17 02:24:18.000000000 +0200
+++ new/Struct-Dumb-0.12/MANIFEST       2020-04-21 01:41:51.000000000 +0200
@@ -2,7 +2,6 @@
 Changes
 lib/Struct/Dumb.pm
 LICENSE
-Makefile.PL
 MANIFEST                       This list of files
 META.json
 META.yml
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/META.json 
new/Struct-Dumb-0.12/META.json
--- old/Struct-Dumb-0.11/META.json      2020-04-17 02:24:18.000000000 +0200
+++ new/Struct-Dumb-0.12/META.json      2020-04-21 01:41:51.000000000 +0200
@@ -21,7 +21,6 @@
       },
       "test" : {
          "requires" : {
-            "Data::Dump" : "0",
             "Test::Fatal" : "0",
             "Test::More" : "0.88"
          }
@@ -30,7 +29,7 @@
    "provides" : {
       "Struct::Dumb" : {
          "file" : "lib/Struct/Dumb.pm",
-         "version" : "0.11"
+         "version" : "0.12"
       }
    },
    "release_status" : "stable",
@@ -39,6 +38,6 @@
          "http://dev.perl.org/licenses/";
       ]
    },
-   "version" : "0.11",
+   "version" : "0.12",
    "x_serialization_backend" : "JSON::PP version 4.04"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/META.yml 
new/Struct-Dumb-0.12/META.yml
--- old/Struct-Dumb-0.11/META.yml       2020-04-17 02:24:18.000000000 +0200
+++ new/Struct-Dumb-0.12/META.yml       2020-04-21 01:41:51.000000000 +0200
@@ -3,7 +3,6 @@
 author:
   - 'Paul Evans <leon...@leonerd.org.uk>'
 build_requires:
-  Data::Dump: '0'
   Test::Fatal: '0'
   Test::More: '0.88'
 configure_requires:
@@ -18,8 +17,8 @@
 provides:
   Struct::Dumb:
     file: lib/Struct/Dumb.pm
-    version: '0.11'
+    version: '0.12'
 resources:
   license: http://dev.perl.org/licenses/
-version: '0.11'
+version: '0.12'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/Makefile.PL 
new/Struct-Dumb-0.12/Makefile.PL
--- old/Struct-Dumb-0.11/Makefile.PL    2020-04-17 02:24:18.000000000 +0200
+++ new/Struct-Dumb-0.12/Makefile.PL    1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.4224
-use ExtUtils::MakeMaker;
-WriteMakefile
-(
-  'NAME' => 'Struct::Dumb',
-  'VERSION_FROM' => 'lib/Struct/Dumb.pm',
-  'PREREQ_PM' => {},
-  'INSTALLDIRS' => 'site',
-  'EXE_FILES' => [],
-  'PL_FILES' => {}
-)
-;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/lib/Struct/Dumb.pm 
new/Struct-Dumb-0.12/lib/Struct/Dumb.pm
--- old/Struct-Dumb-0.11/lib/Struct/Dumb.pm     2020-04-17 02:24:18.000000000 
+0200
+++ new/Struct-Dumb-0.12/lib/Struct/Dumb.pm     2020-04-21 01:41:51.000000000 
+0200
@@ -8,7 +8,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.11';
+our $VERSION = '0.12';
 
 use Carp;
 
@@ -359,8 +359,10 @@
 
 =cut
 
-sub apply_datadump_filter
+sub maybe_apply_datadump_filter
 {
+   return unless $INC{"Data/Dump.pm"};
+
    require Data::Dump::Filtered;
 
    Data::Dump::Filtered::add_dump_filter( sub {
@@ -383,10 +385,14 @@
 }
 
 if( defined &Data::Dump::dump ) {
-   apply_datadump_filter;
+   maybe_apply_datadump_filter;
 }
 else {
-   $Data::Dump::VERSION = bless \( my $x = \&apply_datadump_filter ), 
"Struct::Dumb::_DestroyWatch";
+   # A package var we observe that Data/Dump.pm seems to set when loaded
+   # We can't attach to VERSION because too many other things get upset by
+   # that.
+   $Data::Dump::DEBUG = bless \( my $x = \&maybe_apply_datadump_filter ),
+      "Struct::Dumb::_DestroyWatch";
 }
 
 {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/t/10data-dump.t 
new/Struct-Dumb-0.12/t/10data-dump.t
--- old/Struct-Dumb-0.11/t/10data-dump.t        2020-04-17 02:24:18.000000000 
+0200
+++ new/Struct-Dumb-0.12/t/10data-dump.t        2020-04-21 01:41:51.000000000 
+0200
@@ -5,7 +5,11 @@
 
 use Test::More;
 
-use Data::Dump 'pp';
+BEGIN {
+   plan skip_all => "No Data::Dump" unless eval { require Data::Dump; };
+
+   Data::Dump->import( 'pp' );
+}
 use Struct::Dumb;
 
 struct Point => [qw( x y )];
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Struct-Dumb-0.11/t/11data-dump-late.t 
new/Struct-Dumb-0.12/t/11data-dump-late.t
--- old/Struct-Dumb-0.11/t/11data-dump-late.t   2020-04-17 02:24:18.000000000 
+0200
+++ new/Struct-Dumb-0.12/t/11data-dump-late.t   2020-04-21 01:41:51.000000000 
+0200
@@ -6,7 +6,11 @@
 use Test::More;
 
 use Struct::Dumb;
-use Data::Dump 'pp';
+BEGIN {
+   plan skip_all => "No Data::Dump" unless eval { require Data::Dump; };
+
+   Data::Dump->import( 'pp' );
+}
 
 struct Point => [qw( x y )];
 


Reply via email to