Hello community,

here is the log from the commit of package perl-Log-Log4perl for 
openSUSE:Factory checked in at 2020-08-06 17:30:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Log-Log4perl (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Log-Log4perl.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Log-Log4perl"

Thu Aug  6 17:30:44 2020 rev:32 rq:824358 version:1.50

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Log-Log4perl/perl-Log-Log4perl.changes      
2017-03-03 14:33:18.464879016 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Log-Log4perl.new.3399/perl-Log-Log4perl.changes
    2020-08-06 17:31:11.813081410 +0200
@@ -1,0 +2,12 @@
+Tue Jul 28 09:40:31 UTC 2020 - Tina Müller <timueller+p...@suse.de>
+
+- updated to 1.50
+   see /usr/share/doc/packages/perl-Log-Log4perl/Changes
+
+  1.50 2020-07-22
+     *    (ms) Fix for slow unlinking on Windows test - thanks @zhiyuan-lin
+     *    (ms) [rt.cpan.org #121346] Gabor Kanizsai reported a regression
+               with empty messages logged via syswrite(). Fixed with test
+               case.
+
+-------------------------------------------------------------------

Old:
----
  Log-Log4perl-1.49.tar.gz

New:
----
  Log-Log4perl-1.50.tar.gz

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

Other differences:
------------------
++++++ perl-Log-Log4perl.spec ++++++
--- /var/tmp/diff_new_pack.rDsC2c/_old  2020-08-06 17:31:14.701082087 +0200
+++ /var/tmp/diff_new_pack.rDsC2c/_new  2020-08-06 17:31:14.705082088 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Log-Log4perl
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,19 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           perl-Log-Log4perl
-Version:        1.49
+Version:        1.50
 Release:        0
 %define cpan_name Log-Log4perl
 Summary:        Log4j implementation for Perl
-License:        GPL-1.0+ or Artistic-1.0
+License:        Artistic-1.0 OR GPL-1.0-or-later
 Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/Log-Log4perl/
-Source0:        
https://cpan.metacpan.org/authors/id/M/MS/MSCHILLI/%{cpan_name}-%{version}.tar.gz
+URL:            https://metacpan.org/release/%{cpan_name}
+Source0:        
https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -79,14 +79,14 @@
 
 %prep
 %setup -q -n %{cpan_name}-%{version}
-find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
+find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path 
"*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
 %check
-%{__make} test
+make test
 
 %install
 %perl_make_install

++++++ Log-Log4perl-1.49.tar.gz -> Log-Log4perl-1.50.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Log-Log4perl-1.49/Changes 
new/Log-Log4perl-1.50/Changes
--- old/Log-Log4perl-1.49/Changes       2017-02-21 07:17:06.000000000 +0100
+++ new/Log-Log4perl-1.50/Changes       2020-07-22 02:05:21.000000000 +0200
@@ -2,6 +2,12 @@
  Revision history for Log::Log4perl
 ##################################################
 
+1.50 2020-07-22
+   *    (ms) Fix for slow unlinking on Windows test - thanks @zhiyuan-lin
+   *    (ms) [rt.cpan.org #121346] Gabor Kanizsai reported a regression
+             with empty messages logged via syswrite(). Fixed with test
+             case.
+
 1.49 (2017/02/20)
    *    (ms) Adapted to perl 5.24 which balks at syswrite/utf8:
           https://github.com/mschilli/log4perl/issues/78
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Log-Log4perl-1.49/META.json 
new/Log-Log4perl-1.50/META.json
--- old/Log-Log4perl-1.49/META.json     2017-02-21 07:19:12.000000000 +0100
+++ new/Log-Log4perl-1.50/META.json     2020-07-22 02:08:30.000000000 +0200
@@ -4,13 +4,13 @@
       "Mike Schilli <m...@perlmeister.com>"
    ],
    "dynamic_config" : 1,
-   "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter 
version 2.142690",
+   "generated_by" : "ExtUtils::MakeMaker version 7.36, CPAN::Meta::Converter 
version 2.150010",
    "license" : [
       "unknown"
    ],
    "meta-spec" : {
       "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec";,
-      "version" : "2"
+      "version" : 2
    },
    "name" : "Log-Log4perl",
    "no_index" : {
@@ -45,5 +45,6 @@
       },
       "x_MailingList" : "mailto:log4perl-de...@lists.sourceforge.net";
    },
-   "version" : "1.49"
+   "version" : "1.50",
+   "x_serialization_backend" : "JSON::PP version 4.00"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Log-Log4perl-1.49/META.yml 
new/Log-Log4perl-1.50/META.yml
--- old/Log-Log4perl-1.49/META.yml      2017-02-21 07:19:11.000000000 +0100
+++ new/Log-Log4perl-1.50/META.yml      2020-07-22 02:08:30.000000000 +0200
@@ -7,7 +7,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 
2.142690'
+generated_by: 'ExtUtils::MakeMaker version 7.36, CPAN::Meta::Converter version 
2.150010'
 license: unknown
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,4 +24,5 @@
 resources:
   MailingList: mailto:log4perl-de...@lists.sourceforge.net
   repository: http://github.com/mschilli/log4perl
-version: '1.49'
+version: '1.50'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Log-Log4perl-1.49/lib/Log/Log4perl/Appender/File.pm 
new/Log-Log4perl-1.50/lib/Log/Log4perl/Appender/File.pm
--- old/Log-Log4perl-1.49/lib/Log/Log4perl/Appender/File.pm     2017-02-21 
07:17:06.000000000 +0100
+++ new/Log-Log4perl-1.50/lib/Log/Log4perl/Appender/File.pm     2020-07-22 
02:03:22.000000000 +0200
@@ -305,7 +305,7 @@
                  $self->{ syswrite_encoder }->($params{message}) :
                  $params{message} );
 
-         if(!$rc) {
+         if(!defined $rc) {
              die "Cannot syswrite to '$self->{filename}': $!";
          }
     } else {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Log-Log4perl-1.49/lib/Log/Log4perl.pm 
new/Log-Log4perl-1.50/lib/Log/Log4perl.pm
--- old/Log-Log4perl-1.49/lib/Log/Log4perl.pm   2017-02-21 07:17:06.000000000 
+0100
+++ new/Log-Log4perl-1.50/lib/Log/Log4perl.pm   2020-07-22 02:03:22.000000000 
+0200
@@ -16,7 +16,7 @@
 use Log::Log4perl::Config;
 use Log::Log4perl::Appender;
 
-our $VERSION = '1.49';
+our $VERSION = '1.50';
 
    # set this to '1' if you're using a wrapper
    # around Log::Log4perl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Log-Log4perl-1.49/t/026FileApp.t 
new/Log-Log4perl-1.50/t/026FileApp.t
--- old/Log-Log4perl-1.49/t/026FileApp.t        2017-02-21 07:17:06.000000000 
+0100
+++ new/Log-Log4perl-1.50/t/026FileApp.t        2020-07-22 02:03:22.000000000 
+0200
@@ -447,6 +447,7 @@
 log4perl.appender.Logfile.filename = ${testfile}_5
 log4perl.appender.Logfile.header_text = This is a nice header.
 log4perl.appender.Logfile.syswrite = 1
+log4perl.appender.Logfile.mode=write
 log4perl.appender.Logfile.layout   = Log::Log4perl::Layout::SimpleLayout
 );
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Log-Log4perl-1.49/t/052Utf8.t 
new/Log-Log4perl-1.50/t/052Utf8.t
--- old/Log-Log4perl-1.49/t/052Utf8.t   2017-02-21 07:17:06.000000000 +0100
+++ new/Log-Log4perl-1.50/t/052Utf8.t   2020-07-22 02:03:22.000000000 +0200
@@ -11,6 +11,7 @@
 }
 
 use strict;
+use warnings;
 
 my $EG_DIR = "eg";
 $EG_DIR = "../eg" unless -d $EG_DIR;
@@ -22,7 +23,7 @@
     if($] < 5.008) {
         plan skip_all => "utf-8 tests with perl >= 5.8 only";
     } else {
-        plan tests => 7;
+        plan tests => 8;
     }
 }
 
@@ -132,7 +133,7 @@
 ###########
 # utf8 + syswrite
 ###########
-my $conf = <<EOT;
+$conf = <<EOT;
     log4perl.logger = DEBUG, A1
     log4perl.appender.A1=Log::Log4perl::Appender::File
     log4perl.appender.A1.filename=$TMP_FILE
@@ -142,12 +143,33 @@
     log4perl.appender.A1.layout=PatternLayout
     log4perl.appender.A1.layout.ConversionPattern=%d-%c %m%n
 EOT
-$DB::single = 1;
 Log::Log4perl->reset();
 Log::Log4perl->init(\$conf);
 
 DEBUG "quack \x{A4}";
 open FILE, "<:utf8", $TMP_FILE or die "Cannot open $TMP_FILE";
-my $data = join '', <FILE>;
+$data = join '', <FILE>;
 close FILE;
 like($data, qr/\x{A4}/, "conf: utf8-1");
+
+##################
+# syswrite 0 bytes
+##################
+$conf = <<EOT;
+    log4perl.logger = DEBUG, A1
+    log4perl.appender.A1=Log::Log4perl::Appender::File
+    log4perl.appender.A1.filename=$TMP_FILE
+    log4perl.appender.A1.mode=write
+    log4perl.appender.A1.syswrite=1
+    log4perl.appender.A1.utf8=1
+    log4perl.appender.A1.layout=PatternLayout
+    log4perl.appender.A1.layout.ConversionPattern=%m
+EOT
+Log::Log4perl->reset();
+Log::Log4perl->init(\$conf);
+
+eval {
+    DEBUG "";
+};
+
+is $@, "", "zero bytes syswrite [rt.cpan.org #121346]"


Reply via email to