Hello community,

here is the log from the commit of package perl-SUPER for openSUSE:Factory 
checked in at 2019-06-04 12:10:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-SUPER (Old)
 and      /work/SRC/openSUSE:Factory/.perl-SUPER.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-SUPER"

Tue Jun  4 12:10:19 2019 rev:14 rq:706891 version:1.20190531

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-SUPER/perl-SUPER.changes    2015-08-10 
09:16:31.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-SUPER.new.5148/perl-SUPER.changes  
2019-06-04 12:10:19.311861440 +0200
@@ -1,0 +2,9 @@
+Sat Jun  1 05:23:16 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to 1.20190531
+   see /usr/share/doc/packages/perl-SUPER/Changes
+
+  1.20190531 2019-05-31 16:57:30-07:00 America/Los_Angeles
+      - allow main->SUPER::... to work when SUPER.pm is loaded (PR #1, Charles 
McGarvey)
+
+-------------------------------------------------------------------

Old:
----
  SUPER-1.20141117.tar.gz

New:
----
  SUPER-1.20190531.tar.gz

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

Other differences:
------------------
++++++ perl-SUPER.spec ++++++
--- /var/tmp/diff_new_pack.pKfyJm/_old  2019-06-04 12:10:19.879861254 +0200
+++ /var/tmp/diff_new_pack.pKfyJm/_new  2019-06-04 12:10:19.883861253 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-SUPER
 #
-# Copyright (c) 2015 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
@@ -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-SUPER
-Version:        1.20141117
+Version:        1.20190531
 Release:        0
 %define cpan_name SUPER
-Summary:        Control Superclass Method Dispatch
-License:        Artistic-1.0 or GPL-1.0+
+Summary:        Control superclass method dispatch
+License:        Artistic-1.0 OR GPL-1.0-or-later
 Group:          Development/Libraries/Perl
-Url:            http://search.cpan.org/dist/SUPER/
-Source0:        
http://www.cpan.org/authors/id/C/CH/CHROMATIC/%{cpan_name}-%{version}.tar.gz
+Url:            https://metacpan.org/release/%{cpan_name}
+Source0:        
https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -70,7 +70,7 @@
 %setup -q -n %{cpan_name}-%{version}
 
 %build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
 ./Build build flags=%{?_smp_mflags}
 
 %check
@@ -82,6 +82,7 @@
 
 %files -f %{name}.files
 %defattr(-,root,root,755)
-%doc Changes LICENSE README
+%doc Changes README
+%license LICENSE
 
 %changelog

++++++ SUPER-1.20141117.tar.gz -> SUPER-1.20190531.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/Changes new/SUPER-1.20190531/Changes
--- old/SUPER-1.20141117/Changes        2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/Changes        2019-06-01 01:57:31.000000000 +0200
@@ -1,5 +1,8 @@
 Revision history for Perl extension SUPER.
 
+1.20190531 2019-05-31 16:57:30-07:00 America/Los_Angeles
+    - allow main->SUPER::... to work when SUPER.pm is loaded (PR #1, Charles 
McGarvey)
+
 1.20141117 2014-11-17 09:12:01-08:00 America/Los_Angeles
     - improved export mechanism
     - removed useless Exporter tests
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/LICENSE new/SUPER-1.20190531/LICENSE
--- old/SUPER-1.20141117/LICENSE        2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/LICENSE        2019-06-01 01:57:31.000000000 +0200
@@ -1,4 +1,4 @@
-This software is copyright (c) 2014 by [email protected].
+This software is copyright (c) 2019 by [email protected].
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@
 
 --- The GNU General Public License, Version 1, February 1989 ---
 
-This software is Copyright (c) 2014 by [email protected].
+This software is Copyright (c) 2019 by [email protected].
 
 This is free software, licensed under:
 
@@ -272,7 +272,7 @@
 
 --- The Artistic License 1.0 ---
 
-This software is Copyright (c) 2014 by [email protected].
+This software is Copyright (c) 2019 by [email protected].
 
 This is free software, licensed under:
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/MANIFEST 
new/SUPER-1.20190531/MANIFEST
--- old/SUPER-1.20141117/MANIFEST       2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/MANIFEST       2019-06-01 01:57:31.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v5.020.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.012.
 Build.PL
 Changes
 LICENSE
@@ -15,3 +15,4 @@
 t/get_all_parents.t
 t/keep_going.t
 t/keep_going_manual.t
+t/pseudoclass_syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/META.yml 
new/SUPER-1.20190531/META.yml
--- old/SUPER-1.20141117/META.yml       2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/META.yml       2019-06-01 01:57:31.000000000 +0200
@@ -9,7 +9,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version 
2.142060'
+generated_by: 'Dist::Zilla version 6.012, CPAN::Meta::Converter version 
2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,4 +24,6 @@
 resources:
   bugtracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=SUPER
   repository: https://github.com/chromatic/SUPER.git
-version: '1.20141117'
+version: '1.20190531'
+x_generated_by_perl: v5.30.0
+x_serialization_backend: 'YAML::Tiny version 1.73'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/Makefile.PL 
new/SUPER-1.20190531/Makefile.PL
--- old/SUPER-1.20141117/Makefile.PL    2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/Makefile.PL    2019-06-01 01:57:31.000000000 +0200
@@ -1,13 +1,10 @@
-
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v5.020.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.012.
 use strict;
 use warnings;
 
 
 
-use ExtUtils::MakeMaker ;
-
-
+use ExtUtils::MakeMaker;
 
 my %WriteMakefileArgs = (
   "ABSTRACT" => "control superclass method dispatch",
@@ -16,7 +13,6 @@
     "ExtUtils::MakeMaker" => 0
   },
   "DISTNAME" => "SUPER",
-  "EXE_FILES" => [],
   "LICENSE" => "perl",
   "NAME" => "SUPER",
   "PREREQ_PM" => {
@@ -31,7 +27,7 @@
     "base" => 0,
     "lib" => 0
   },
-  "VERSION" => "1.20141117",
+  "VERSION" => "1.20190531",
   "test" => {
     "TESTS" => "t/*.t"
   }
@@ -60,6 +56,3 @@
   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
 
 WriteMakefile(%WriteMakefileArgs);
-
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/README new/SUPER-1.20190531/README
--- old/SUPER-1.20141117/README 2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/README 2019-06-01 01:57:31.000000000 +0200
@@ -1,15 +1,12 @@
-
-
 This archive contains the distribution SUPER,
-version 1.20141117:
+version 1.20190531:
 
   control superclass method dispatch
 
-This software is copyright (c) 2014 by [email protected].
+This software is copyright (c) 2019 by [email protected].
 
 This is free software; you can redistribute it and/or modify it under
 the same terms as the Perl 5 programming language system itself.
 
 
-This README file was generated by Dist::Zilla::Plugin::Readme v5.020.
-
+This README file was generated by Dist::Zilla::Plugin::Readme v6.012.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/dist.ini 
new/SUPER-1.20190531/dist.ini
--- old/SUPER-1.20141117/dist.ini       2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/dist.ini       2019-06-01 01:57:31.000000000 +0200
@@ -2,7 +2,7 @@
 author           = chromatic
 license          = Perl_5
 copyright_holder = [email protected]
-copyright_year   = 2014
+copyright_year   = 2019
 
 [MetaResources]
 bugtracker.web    = http://rt.cpan.org/NoAuth/Bugs.html?Dist=SUPER
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/lib/SUPER.pm 
new/SUPER-1.20190531/lib/SUPER.pm
--- old/SUPER-1.20141117/lib/SUPER.pm   2014-11-17 18:12:07.000000000 +0100
+++ new/SUPER-1.20190531/lib/SUPER.pm   2019-06-01 01:57:31.000000000 +0200
@@ -33,7 +33,7 @@
 
 package SUPER;
 # ABSTRACT: control superclass method dispatch
-$SUPER::VERSION = '1.20141117';
+$SUPER::VERSION = '1.20190531';
 use strict;
 use warnings;
 
@@ -42,6 +42,19 @@
 use Scalar::Util 'blessed';
 use Sub::Identify ();
 
+BEGIN {
+    # Due to a perl bug (fixed in v5.17.4, commit 3c104e59), if SUPER.pm is
+    # loaded, perl can no longer find methods on parent when:
+    # 1) the invocant is "main" (or isa "main")
+    # 2) using the SUPER pseudo-class syntax (i.e. "main"->SUPER::...)
+    # We work around that bug by handling ->SUPER::... ourselves.
+    if ($] < 5.017004)
+    {
+        no strict 'refs';
+        *{"SUPER::AUTOLOAD"} = \&UNIVERSAL::SUPER;
+    }
+}
+
 # no need to use Exporter
 sub import
 {
@@ -254,7 +267,7 @@
 Created by Simon Cozens, C<[email protected]>.  Copyright (c) 2003 Simon Cozens.
 
 Maintained by chromatic, E<lt>chromatic at wgz dot orgE<gt> after version 1.01.
-Copyright (c) 2004-2014 chromatic.
+Copyright (c) 2004-2019 chromatic.
 
 Thanks to Joshua ben Jore for bug reports and suggestions.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUPER-1.20141117/t/pseudoclass_syntax.t 
new/SUPER-1.20190531/t/pseudoclass_syntax.t
--- old/SUPER-1.20141117/t/pseudoclass_syntax.t 1970-01-01 01:00:00.000000000 
+0100
+++ new/SUPER-1.20190531/t/pseudoclass_syntax.t 2019-06-01 01:57:31.000000000 
+0200
@@ -0,0 +1,44 @@
+#!perl
+use strict;
+use warnings;
+
+# Test that the pseudo-class syntax still works despite having SUPER.pm loaded.
+
+use SUPER;
+use Test::More tests => 6;
+
+package MyBase;
+
+Test::More->import();
+
+sub new { bless {}, shift }
+
+sub foo
+{
+    my $self = shift;
+    if (ref $self) {
+        isa_ok( $self, "main" );
+    }
+    else {
+        is( $self, "main" );    # isa_ok($str) doesn't work on older Test::More
+    }
+    is( $_[0], 123, "Arguments passed OK" );
+}
+
+package main;
+
+Test::More->import();
+@main::ISA = 'MyBase';
+
+sub foo
+{
+    my $self = shift;
+    $self->SUPER::foo(@_);
+}
+
+eval { main->foo(123) };
+is( $@, '', 'Can use pseudo-class main->SUPER::method syntax' );
+
+my $m = main->new();
+eval { $m->foo(123) };
+is( $@, '', 'Can use pseudo-class $isa_main->SUPER::method syntax' );


Reply via email to