Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Data-ObjectDriver for 
openSUSE:Factory checked in at 2023-02-14 16:47:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Data-ObjectDriver (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Data-ObjectDriver.new.27156 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Data-ObjectDriver"

Tue Feb 14 16:47:16 2023 rev:7 rq:1065568 version:0.22

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Data-ObjectDriver/perl-Data-ObjectDriver.changes
    2020-10-30 11:58:58.802308396 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Data-ObjectDriver.new.27156/perl-Data-ObjectDriver.changes
 2023-02-14 16:47:56.795336887 +0100
@@ -1,0 +2,6 @@
+Thu Feb  2 03:06:08 UTC 2023 - Tina Müller <[email protected]>
+
+- updated to 0.22
+   see /usr/share/doc/packages/perl-Data-ObjectDriver/Changes
+
+-------------------------------------------------------------------

Old:
----
  Data-ObjectDriver-0.21.tar.gz

New:
----
  Data-ObjectDriver-0.22.tar.gz

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

Other differences:
------------------
++++++ perl-Data-ObjectDriver.spec ++++++
--- /var/tmp/diff_new_pack.rAmNVh/_old  2023-02-14 16:47:57.255339603 +0100
+++ /var/tmp/diff_new_pack.rAmNVh/_new  2023-02-14 16:47:57.259339626 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Data-ObjectDriver
 #
-# Copyright (c) 2020 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
@@ -16,18 +16,16 @@
 #
 
 
+%define cpan_name Data-ObjectDriver
 Name:           perl-Data-ObjectDriver
-Version:        0.21
+Version:        0.22
 Release:        0
-%define cpan_name Data-ObjectDriver
-Summary:        Simple, transparent data interface, with caching
 License:        Artistic-1.0 OR GPL-1.0-or-later
-Group:          Development/Libraries/Perl
+Summary:        Simple, transparent data interface, with caching
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/S/SI/SIXAPART/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(Class::Accessor::Fast)
@@ -56,7 +54,8 @@
 where the data is stored.
 
 %prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup  -n %{cpan_name}-%{version}
+
 find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path 
"*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
 
 %build
@@ -71,7 +70,6 @@
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
 %doc Changes minil.toml README.md ToDo
 %license LICENSE
 

++++++ Data-ObjectDriver-0.21.tar.gz -> Data-ObjectDriver-0.22.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-ObjectDriver-0.21/Changes 
new/Data-ObjectDriver-0.22/Changes
--- old/Data-ObjectDriver-0.21/Changes  2020-10-29 06:58:38.000000000 +0100
+++ new/Data-ObjectDriver-0.22/Changes  2023-02-01 06:14:52.000000000 +0100
@@ -1,4 +1,8 @@
-0.21 2020-10-29T05:58:31Z
+0.22 2023-02-01T05:14:50Z
+
+0.22 2023-02-01T05:14:13Z
+    - Clear %Handle cache if dbh is set to undef #42
+    - Skip fork test on win32 #41
 
 0.21 2020-10-29T05:54:05Z
     - Add GitHub Actions #38
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-ObjectDriver-0.21/META.json 
new/Data-ObjectDriver-0.22/META.json
--- old/Data-ObjectDriver-0.21/META.json        2020-10-29 06:58:38.000000000 
+0100
+++ new/Data-ObjectDriver-0.22/META.json        2023-02-01 06:14:52.000000000 
+0100
@@ -1,10 +1,10 @@
 {
    "abstract" : "Simple, transparent data interface, with caching",
    "author" : [
-      "-2006"
+      "& COPYRIGHT"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Minilla/v3.1.11",
+   "generated_by" : "Minilla/v3.1.20",
    "license" : [
       "perl_5"
    ],
@@ -132,7 +132,7 @@
    "provides" : {
       "Data::ObjectDriver" : {
          "file" : "lib/Data/ObjectDriver.pm",
-         "version" : "0.21"
+         "version" : "0.22"
       },
       "Data::ObjectDriver::BaseObject" : {
          "file" : "lib/Data/ObjectDriver/BaseObject.pm"
@@ -220,11 +220,12 @@
       },
       "homepage" : "https://github.com/sixapart/data-objectdriver";,
       "repository" : {
-         "url" : "git://github.com/sixapart/data-objectdriver.git",
+         "type" : "git",
+         "url" : "https://github.com/sixapart/data-objectdriver.git";,
          "web" : "https://github.com/sixapart/data-objectdriver";
       }
    },
-   "version" : "0.21",
+   "version" : "0.22",
    "x_authority" : "cpan:SIXAPART",
    "x_contributors" : [
       "Adam Thomason <[email protected]>",
@@ -257,6 +258,6 @@
       "ambs <[email protected]>",
       "ziguzagu <[email protected]>"
    ],
-   "x_serialization_backend" : "JSON::PP version 2.97001",
+   "x_serialization_backend" : "JSON::PP version 4.06",
    "x_static_install" : 1
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-ObjectDriver-0.21/META.yml 
new/Data-ObjectDriver-0.22/META.yml
--- old/Data-ObjectDriver-0.21/META.yml 2020-10-29 06:58:38.000000000 +0100
+++ new/Data-ObjectDriver-0.22/META.yml 2023-02-01 06:14:52.000000000 +0100
@@ -1,7 +1,7 @@
 ---
 abstract: 'Simple, transparent data interface, with caching'
 author:
-  - '-2006'
+  - '& COPYRIGHT'
 build_requires:
   ExtUtils::MakeMaker: '6.59'
   Test::Exception: '0'
@@ -9,7 +9,7 @@
 configure_requires:
   Module::Build::Tiny: '0.035'
 dynamic_config: 0
-generated_by: 'Minilla/v3.1.11, CPAN::Meta::Converter version 2.150010'
+generated_by: 'Minilla/v3.1.20, CPAN::Meta::Converter version 2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -59,7 +59,7 @@
 provides:
   Data::ObjectDriver:
     file: lib/Data/ObjectDriver.pm
-    version: '0.21'
+    version: '0.22'
   Data::ObjectDriver::BaseObject:
     file: lib/Data/ObjectDriver/BaseObject.pm
   Data::ObjectDriver::BaseView:
@@ -124,8 +124,8 @@
 resources:
   bugtracker: https://github.com/sixapart/data-objectdriver/issues
   homepage: https://github.com/sixapart/data-objectdriver
-  repository: git://github.com/sixapart/data-objectdriver.git
-version: '0.21'
+  repository: https://github.com/sixapart/data-objectdriver.git
+version: '0.22'
 x_authority: cpan:SIXAPART
 x_contributors:
   - 'Adam Thomason <[email protected]>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Data-ObjectDriver-0.21/lib/Data/ObjectDriver/Driver/DBI.pm 
new/Data-ObjectDriver-0.22/lib/Data/ObjectDriver/Driver/DBI.pm
--- old/Data-ObjectDriver-0.21/lib/Data/ObjectDriver/Driver/DBI.pm      
2020-10-29 06:58:38.000000000 +0100
+++ new/Data-ObjectDriver-0.22/lib/Data/ObjectDriver/Driver/DBI.pm      
2023-02-01 06:14:52.000000000 +0100
@@ -23,7 +23,7 @@
     return 1;
 }
 
-__PACKAGE__->mk_accessors(qw( dsn username password connect_options dbh 
get_dbh dbd prefix reuse_dbh force_no_prepared_cache));
+__PACKAGE__->mk_accessors(qw( dsn username password connect_options get_dbh 
dbd prefix reuse_dbh force_no_prepared_cache));
 
 
 sub init {
@@ -52,7 +52,7 @@
         weaken(my $driver_weaken = $driver);
         POSIX::AtFork->add_to_child(sub {
             return unless $driver_weaken;
-            $driver_weaken->dbh(undef);
+            $driver_weaken->{dbh} = undef;
             %Handles = ();
         });
     }
@@ -108,6 +108,18 @@
     return $dbh;
 }
 
+sub dbh {
+    my $driver = shift;
+    if (@_) {
+        my $dbh = $driver->{dbh} = shift;
+        if (!$dbh && $driver->reuse_dbh) {
+            $dbh = delete $Handles{$driver->dsn};
+            $dbh->disconnect if $dbh;
+        }
+    }
+    $driver->{dbh};
+}
+
 sub rw_handle {
     my $driver = shift;
     my $db = shift || 'main';
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-ObjectDriver-0.21/lib/Data/ObjectDriver.pm 
new/Data-ObjectDriver-0.22/lib/Data/ObjectDriver.pm
--- old/Data-ObjectDriver-0.21/lib/Data/ObjectDriver.pm 2020-10-29 
06:58:38.000000000 +0100
+++ new/Data-ObjectDriver-0.22/lib/Data/ObjectDriver.pm 2023-02-01 
06:14:52.000000000 +0100
@@ -11,7 +11,7 @@
 
 __PACKAGE__->mk_accessors(qw( pk_generator txn_active ));
 
-our $VERSION = '0.21';
+our $VERSION = '0.22';
 our $DEBUG = $ENV{DOD_DEBUG} || 0;
 our $PROFILE = $ENV{DOD_PROFILE} || 0;
 our $PROFILER;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-ObjectDriver-0.21/t/60-fork.t 
new/Data-ObjectDriver-0.22/t/60-fork.t
--- old/Data-ObjectDriver-0.21/t/60-fork.t      2020-10-29 06:58:38.000000000 
+0100
+++ new/Data-ObjectDriver-0.22/t/60-fork.t      2023-02-01 06:14:52.000000000 
+0100
@@ -7,6 +7,8 @@
 use DodTestUtil;
 
 BEGIN {
+    plan skip_all => 'Not for Win32' if $^O eq 'MSWin32';
+
     my @requires = qw(
         Parallel::ForkManager
         Test::SharedFork
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Data-ObjectDriver-0.21/t/lib/DodTestUtil.pm 
new/Data-ObjectDriver-0.22/t/lib/DodTestUtil.pm
--- old/Data-ObjectDriver-0.21/t/lib/DodTestUtil.pm     2020-10-29 
06:58:38.000000000 +0100
+++ new/Data-ObjectDriver-0.22/t/lib/DodTestUtil.pm     2023-02-01 
06:14:52.000000000 +0100
@@ -62,20 +62,42 @@
     if ( $driver =~ /MySQL|MariaDB/ ) {
         if ( $driver eq 'MariaDB' && !$test_mysqld_dsn ) {
             my $help = `mysql --help`;
-            my ($mariadb_version) = $help =~ 
/\A.*?([0-9]+\.[0-9]+)\.[0-9]+\-MariaDB/;
+            my ($mariadb_major_version, $mariadb_minor_version) = $help =~ 
/\A.*?([0-9]+)\.([0-9]+)\.[0-9]+\-MariaDB/;
             no warnings 'redefine';
             $test_mysqld_dsn = \&Test::mysqld::dsn;
             *Test::mysqld::dsn = sub {
                 my $dsn = $test_mysqld_dsn->(@_);
                 # cf. https://github.com/kazuho/p5-test-mysqld/issues/32
-                $dsn =~ s/;user=root// if $mariadb_version && $mariadb_version 
> 10.3;
+                $dsn =~ s/;user=root// if $mariadb_major_version && 
$mariadb_major_version >= 10 && $mariadb_minor_version > 3;
                 $dsn;
             };
         }
+        if ($driver eq 'MySQL') {
+            *Test::mysqld::wait_for_stop = sub {
+                my $self = shift;
+                local $?;    # waitpid may change this value :/
+                my $ct = 0;
+                # XXX: modified
+                while (waitpid($self->pid, POSIX::WNOHANG()) <= 0) {
+                    sleep 1;
+                    if ($ct++ > 10) {
+                        kill 9, $self->pid;
+                    }
+                }
+                $self->pid(undef);
+                # might remain for example when sending SIGKILL
+                unlink $self->my_cnf->{'pid-file'};
+            };
+        }
         $TestDB{$dbname} ||= Test::mysqld->new(
             my_cnf => {
                 'skip-networking' => '', # no TCP socket
+                'skip-name-resolve' => '',
+                'default_authentication_plugin' => 'mysql_native_password',
                 'sql-mode' => 
'TRADITIONAL,NO_AUTO_VALUE_ON_ZERO,ONLY_FULL_GROUP_BY',
+                'bind-address' => '127.0.0.1',
+                'disable-log-bin' => '',
+                'performance_schema' => 'OFF',
             }
         ) or die $Test::mysqld::errstr;
         my $dsn = $TestDB{$dbname}->dsn;

Reply via email to