Hello community,
here is the log from the commit of package perl-Module-Load-Conditional for
openSUSE:Factory checked in at 2019-11-17 19:21:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-Load-Conditional (Old)
and /work/SRC/openSUSE:Factory/.perl-Module-Load-Conditional.new.26869
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Module-Load-Conditional"
Sun Nov 17 19:21:17 2019 rev:2 rq:748729 version:0.70
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Module-Load-Conditional/perl-Module-Load-Conditional.changes
2016-10-14 09:26:26.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Module-Load-Conditional.new.26869/perl-Module-Load-Conditional.changes
2019-11-17 19:21:22.638911284 +0100
@@ -1,0 +2,11 @@
+Thu Nov 14 09:36:25 UTC 2019 - <[email protected]>
+
+- updated to 0.70
+ see /usr/share/doc/packages/perl-Module-Load-Conditional/CHANGES
+
+ 0.70 Sun Nov 10 14:28:41 GMT 2019
+
+ * Protect ourselves from Module::Metadata parsing problems
+ [ RT#130939 ]
+
+-------------------------------------------------------------------
Old:
----
Module-Load-Conditional-0.68.tar.gz
New:
----
Module-Load-Conditional-0.70.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Module-Load-Conditional.spec ++++++
--- /var/tmp/diff_new_pack.i0HXkI/_old 2019-11-17 19:21:23.082911096 +0100
+++ /var/tmp/diff_new_pack.i0HXkI/_new 2019-11-17 19:21:23.086911094 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Module-Load-Conditional
#
-# Copyright (c) 2016 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-Module-Load-Conditional
-Version: 0.68
+Version: 0.70
Release: 0
%define cpan_name Module-Load-Conditional
Summary: Looking up module information / loading at runtime
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Module-Load-Conditional/
-Source0:
http://www.cpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
+Url: https://metacpan.org/release/%{cpan_name}
+Source0:
https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -56,11 +56,11 @@
%setup -q -n %{cpan_name}-%{version}
%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
++++++ Module-Load-Conditional-0.68.tar.gz ->
Module-Load-Conditional-0.70.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Load-Conditional-0.68/CHANGES
new/Module-Load-Conditional-0.70/CHANGES
--- old/Module-Load-Conditional-0.68/CHANGES 2016-07-29 09:02:03.000000000
+0200
+++ new/Module-Load-Conditional-0.70/CHANGES 2019-11-10 15:35:43.000000000
+0100
@@ -1,3 +1,8 @@
+0.70 Sun Nov 10 14:28:41 GMT 2019
+
+* Protect ourselves from Module::Metadata parsing problems
+ [ RT#130939 ]
+
0.68 Fri Jul 29 08:01:12 BST 2016
* Fix unconditional @INC localisation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Load-Conditional-0.68/MANIFEST
new/Module-Load-Conditional-0.70/MANIFEST
--- old/Module-Load-Conditional-0.68/MANIFEST 2016-07-29 09:05:19.000000000
+0200
+++ new/Module-Load-Conditional-0.70/MANIFEST 2019-11-10 15:36:38.000000000
+0100
@@ -9,6 +9,7 @@
t/to_load/AutoLoad.pm
t/to_load/NotAutoLoad.pm
t/to_load/Commented.pm
+t/to_load/HereDoc.pm
t/to_load/InPod.pm
t/to_load/LoadIt.pm
t/to_load/LoadMe.pl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Load-Conditional-0.68/META.json
new/Module-Load-Conditional-0.70/META.json
--- old/Module-Load-Conditional-0.68/META.json 2016-07-29 09:05:19.000000000
+0200
+++ new/Module-Load-Conditional-0.70/META.json 2019-11-10 15:36:38.000000000
+0100
@@ -4,13 +4,13 @@
"Jos Boumans <kane[at]cpan.org>"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 7.18, CPAN::Meta::Converter
version 2.150005",
+ "generated_by" : "ExtUtils::MakeMaker version 7.38, CPAN::Meta::Converter
version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "Module-Load-Conditional",
"no_index" : {
@@ -47,6 +47,6 @@
"url" : "https://github.com/jib/module-load-conditional"
}
},
- "version" : "0.68",
- "x_serialization_backend" : "JSON::PP version 2.27400"
+ "version" : "0.70",
+ "x_serialization_backend" : "JSON::PP version 4.04"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Load-Conditional-0.68/META.yml
new/Module-Load-Conditional-0.70/META.yml
--- old/Module-Load-Conditional-0.68/META.yml 2016-07-29 09:05:19.000000000
+0200
+++ new/Module-Load-Conditional-0.70/META.yml 2019-11-10 15:36:38.000000000
+0100
@@ -7,7 +7,7 @@
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 7.18, CPAN::Meta::Converter version
2.150005'
+generated_by: 'ExtUtils::MakeMaker version 7.38, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,5 +26,5 @@
version: '0.69'
resources:
repository: https://github.com/jib/module-load-conditional
-version: '0.68'
+version: '0.70'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Module-Load-Conditional-0.68/lib/Module/Load/Conditional.pm
new/Module-Load-Conditional-0.70/lib/Module/Load/Conditional.pm
--- old/Module-Load-Conditional-0.68/lib/Module/Load/Conditional.pm
2016-07-29 09:01:00.000000000 +0200
+++ new/Module-Load-Conditional-0.70/lib/Module/Load/Conditional.pm
2019-11-10 15:36:01.000000000 +0100
@@ -22,7 +22,7 @@
$FIND_VERSION $ERROR $CHECK_INC_HASH $FORCE_SAFE_INC ];
use Exporter;
@ISA = qw[Exporter];
- $VERSION = '0.68';
+ $VERSION = '0.70';
$VERBOSE = 0;
$DEPRECATED = 0;
$FIND_VERSION = 1;
@@ -259,13 +259,19 @@
last DIR unless $FIND_VERSION;
### otherwise, the user wants us to find the version from files
- my $mod_info = Module::Metadata->new_from_handle( $fh, $filename );
- my $ver = $mod_info->version( $args->{module} );
- if( defined $ver ) {
- $href->{version} = $ver;
+ {
+ local $SIG{__WARN__} = sub {};
+ my $ver = eval {
+ my $mod_info = Module::Metadata->new_from_handle( $fh,
$filename );
+ $mod_info->version( $args->{module} );
+ };
- last DIR;
+ if( defined $ver ) {
+ $href->{version} = $ver;
+
+ last DIR;
+ }
}
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Module-Load-Conditional-0.68/t/01_Module_Load_Conditional.t
new/Module-Load-Conditional-0.70/t/01_Module_Load_Conditional.t
--- old/Module-Load-Conditional-0.68/t/01_Module_Load_Conditional.t
2014-01-24 16:49:23.000000000 +0100
+++ new/Module-Load-Conditional-0.70/t/01_Module_Load_Conditional.t
2019-11-10 15:16:00.000000000 +0100
@@ -132,6 +132,13 @@
is( $rv->{version}, 2, " Version is correct" );
}
+### test finding a version of a module that has a VERSION error in a HereDoc
+{ my $rv = check_install( module => 'HereDoc' );
+ ok( $rv, 'Testing $VERSION in HEREDOC' );
+ ok( !$rv->{version}, " No Version found" );
+ is( $rv->{version}, undef, " Version is correct" );
+}
+
### test that no package statement means $VERSION is $main::VERSION
{
my $rv = check_install( module => 'NotMain' );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Load-Conditional-0.68/t/to_load/HereDoc.pm
new/Module-Load-Conditional-0.70/t/to_load/HereDoc.pm
--- old/Module-Load-Conditional-0.68/t/to_load/HereDoc.pm 1970-01-01
01:00:00.000000000 +0100
+++ new/Module-Load-Conditional-0.70/t/to_load/HereDoc.pm 2019-11-10
15:08:53.000000000 +0100
@@ -0,0 +1,14 @@
+package HereDoc;
+$HereDoc::VERSION = 1;
+
+sub magic {
+ print <<'END';
+package Errno;
+-use vars qw($VERSION);
+-
+-$VERSION = "1.111";
++our $VERSION = "1.111";
+END
+}
+
+1;