Hello community,
here is the log from the commit of package perl-Module-Runtime for
openSUSE:Factory checked in at 2017-08-08 12:05:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-Runtime (Old)
and /work/SRC/openSUSE:Factory/.perl-Module-Runtime.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Module-Runtime"
Tue Aug 8 12:05:20 2017 rev:11 rq:512165 version:0.015
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Module-Runtime/perl-Module-Runtime.changes
2014-02-28 19:15:40.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Module-Runtime.new/perl-Module-Runtime.changes
2017-08-08 12:05:22.320200372 +0200
@@ -1,0 +2,20 @@
+Mon Jul 17 05:49:49 UTC 2017 - [email protected]
+
+- updated to 0.015
+ see /usr/share/doc/packages/perl-Module-Runtime/Changes
+
+ version 0.015; 2017-07-16
+
+ * update test suite to not rely on . in @INC, which is no longer
+ necessarily there from Perl 5.25.7
+
+ * in documentation, warn about the security problem with
+ use_package_optimistically()
+
+ * declare correct version for Test::More dependency
+
+ * generate "traditional" style of compatibility Makefile.PL, to
+ permit building in environments that don't support Build.PL or
+ configure_requires
+
+-------------------------------------------------------------------
Old:
----
Module-Runtime-0.014.tar.gz
New:
----
Module-Runtime-0.015.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Module-Runtime.spec ++++++
--- /var/tmp/diff_new_pack.xmAReu/_old 2017-08-08 12:05:23.304061797 +0200
+++ /var/tmp/diff_new_pack.xmAReu/_new 2017-08-08 12:05:23.308061234 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Module-Runtime
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -17,14 +17,15 @@
Name: perl-Module-Runtime
-Version: 0.014
+Version: 0.015
Release: 0
%define cpan_name Module-Runtime
-Summary: runtime module handling
+Summary: Runtime Module Handling
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Module-Runtime/
-Source:
http://www.cpan.org/authors/id/Z/ZE/ZEFRAM/%{cpan_name}-%{version}.tar.gz
+Source0:
https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
++++++ Module-Runtime-0.014.tar.gz -> Module-Runtime-0.015.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/Build.PL
new/Module-Runtime-0.015/Build.PL
--- old/Module-Runtime-0.014/Build.PL 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/Build.PL 2017-07-16 02:31:17.000000000 +0200
@@ -15,7 +15,7 @@
},
build_requires => {
"Module::Build" => 0,
- "Test::More" => 0,
+ "Test::More" => "0.41",
"perl" => "5.006",
"strict" => 0,
"warnings" => 0,
@@ -31,7 +31,7 @@
"git://git.fysh.org/zefram/Module-Runtime.git",
},
},
- create_makefile_pl => "passthrough",
+ create_makefile_pl => "traditional",
sign => 1,
)->create_build_script;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/Changes
new/Module-Runtime-0.015/Changes
--- old/Module-Runtime-0.014/Changes 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/Changes 2017-07-16 02:31:17.000000000 +0200
@@ -1,3 +1,17 @@
+version 0.015; 2017-07-16
+
+ * update test suite to not rely on . in @INC, which is no longer
+ necessarily there from Perl 5.25.7
+
+ * in documentation, warn about the security problem with
+ use_package_optimistically()
+
+ * declare correct version for Test::More dependency
+
+ * generate "traditional" style of compatibility Makefile.PL, to
+ permit building in environments that don't support Build.PL or
+ configure_requires
+
version 0.014; 2014-02-06
* bugfix: suppress any CORE::GLOBAL::require override, where possible,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/MANIFEST
new/Module-Runtime-0.015/MANIFEST
--- old/Module-Runtime-0.014/MANIFEST 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/MANIFEST 2017-07-16 02:31:17.000000000 +0200
@@ -7,18 +7,18 @@
Makefile.PL
README
lib/Module/Runtime.pm
-t/Break.pm
-t/Context.pm
-t/Eval.pm
-t/Hints.pm
-t/Nest0.pm
-t/Nest1.pm
-t/Simple.pm
t/cmn.t
t/dependency.t
t/import_error.t
t/ivmn.t
t/ivms.t
+t/lib/t/Break.pm
+t/lib/t/Context.pm
+t/lib/t/Eval.pm
+t/lib/t/Hints.pm
+t/lib/t/Nest0.pm
+t/lib/t/Nest1.pm
+t/lib/t/Simple.pm
t/mnf.t
t/pod_cvg.t
t/pod_syn.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/META.json
new/Module-Runtime-0.015/META.json
--- old/Module-Runtime-0.014/META.json 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/META.json 2017-07-16 02:31:17.000000000 +0200
@@ -4,20 +4,20 @@
"Andrew Main (Zefram) <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Module::Build version 0.4204",
+ "generated_by" : "Module::Build version 0.4222",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "Module-Runtime",
"prereqs" : {
"build" : {
"requires" : {
"Module::Build" : "0",
- "Test::More" : "0",
+ "Test::More" : "0.41",
"perl" : "5.006",
"strict" : "0",
"warnings" : "0"
@@ -40,7 +40,7 @@
"provides" : {
"Module::Runtime" : {
"file" : "lib/Module/Runtime.pm",
- "version" : "0.014"
+ "version" : "0.015"
}
},
"release_status" : "stable",
@@ -52,5 +52,6 @@
"url" : "git://git.fysh.org/zefram/Module-Runtime.git"
}
},
- "version" : "0.014"
+ "version" : "0.015",
+ "x_serialization_backend" : "JSON::PP version 2.93"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/META.yml
new/Module-Runtime-0.015/META.yml
--- old/Module-Runtime-0.014/META.yml 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/META.yml 2017-07-16 02:31:17.000000000 +0200
@@ -3,30 +3,31 @@
author:
- 'Andrew Main (Zefram) <[email protected]>'
build_requires:
- Module::Build: 0
- Test::More: 0
- perl: 5.006
- strict: 0
- warnings: 0
+ Module::Build: '0'
+ Test::More: '0.41'
+ perl: '5.006'
+ strict: '0'
+ warnings: '0'
configure_requires:
- Module::Build: 0
- perl: 5.006
- strict: 0
- warnings: 0
+ Module::Build: '0'
+ perl: '5.006'
+ strict: '0'
+ warnings: '0'
dynamic_config: 0
-generated_by: 'Module::Build version 0.4204, CPAN::Meta::Converter version
2.131560'
+generated_by: 'Module::Build version 0.4222, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Module-Runtime
provides:
Module::Runtime:
file: lib/Module/Runtime.pm
- version: 0.014
+ version: '0.015'
requires:
- perl: 5.006
+ perl: '5.006'
resources:
license: http://dev.perl.org/licenses/
repository: git://git.fysh.org/zefram/Module-Runtime.git
-version: 0.014
+version: '0.015'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/Makefile.PL
new/Module-Runtime-0.015/Makefile.PL
--- old/Module-Runtime-0.014/Makefile.PL 2014-02-06 23:09:32.000000000
+0100
+++ new/Module-Runtime-0.015/Makefile.PL 2017-07-16 02:31:17.000000000
+0200
@@ -1,35 +1,18 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.4204
+# Note: this file was auto-generated by Module::Build::Compat version 0.4222
require 5.006;
-
- unless (eval "use Module::Build::Compat 0.02; 1" ) {
- print "This module requires Module::Build to install itself.\n";
-
- require ExtUtils::MakeMaker;
- my $yn = ExtUtils::MakeMaker::prompt
- (' Install Module::Build now from CPAN?', 'y');
-
- unless ($yn =~ /^y/i) {
- die " *** Cannot install without Module::Build. Exiting ...\n";
- }
-
- require Cwd;
- require File::Spec;
- require CPAN;
-
- # Save this 'cause CPAN will chdir all over the place.
- my $cwd = Cwd::cwd();
-
- CPAN::Shell->install('Module::Build::Compat');
- CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
- or die "Couldn't install Module::Build, giving up.\n";
-
- chdir $cwd or die "Cannot chdir() back to $cwd: $!";
- }
- eval "use Module::Build::Compat 0.02; 1" or die $@;
-
- Module::Build::Compat->run_build_pl(args => \@ARGV);
- my $build_script = 'Build';
- $build_script .= '.com' if $^O eq 'VMS';
- exit(0) unless(-e $build_script); # cpantesters convention
- require Module::Build;
- Module::Build::Compat->write_makefile(build_class => 'Module::Build');
+use ExtUtils::MakeMaker;
+WriteMakefile
+(
+ 'PL_FILES' => {},
+ 'INSTALLDIRS' => 'site',
+ 'NAME' => 'Module::Runtime',
+ 'EXE_FILES' => [],
+ 'VERSION_FROM' => 'lib/Module/Runtime.pm',
+ 'PREREQ_PM' => {
+ 'warnings' => 0,
+ 'strict' => 0,
+ 'Test::More' => '0.41',
+ 'Module::Build' => 0
+ }
+)
+;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/README
new/Module-Runtime-0.015/README
--- old/Module-Runtime-0.014/README 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/README 2017-07-16 02:31:17.000000000 +0200
@@ -35,7 +35,7 @@
COPYRIGHT
-Copyright (C) 2004, 2006, 2007, 2009, 2010, 2011, 2012, 2014
+Copyright (C) 2004, 2006, 2007, 2009, 2010, 2011, 2012, 2014, 2017
Andrew Main (Zefram) <[email protected]>
LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/SIGNATURE
new/Module-Runtime-0.015/SIGNATURE
--- old/Module-Runtime-0.014/SIGNATURE 2014-02-06 23:09:40.000000000 +0100
+++ new/Module-Runtime-0.015/SIGNATURE 2017-07-16 02:31:23.000000000 +0200
@@ -15,38 +15,38 @@
Hash: SHA1
SHA1 846abd52ddad1c3141b395933fd10f14cb3cd7bc .gitignore
-SHA1 550af94fde243fb4333061a2a7b03f274a6fb33f Build.PL
-SHA1 132345e83b6e7293e7e011f5bb0f7fd9dcaf59ae Changes
-SHA1 0f537563bf9b875501217c236e970f78ed04788b MANIFEST
-SHA1 a8a5bf1ea3b6d09579aeb5930c721b7b817914a6 META.json
-SHA1 0f7e531061b47d38c3962ab7dd2433c1ad062b28 META.yml
-SHA1 0cfc7cc7e89b6334cf739d85244af8854a08b45d Makefile.PL
-SHA1 35948979e61ed7586ffa28049ab3043232478473 README
-SHA1 5d69c254f3af9104dcbe82c55a0260bbf81d2492 lib/Module/Runtime.pm
-SHA1 e80e49f06f99a5b5bb0faf54988df29a7aff89c5 t/Break.pm
-SHA1 c3c7b101e683f9f3d7f915763aa6d1850421bcb4 t/Context.pm
-SHA1 fbe32c46e3fe2cac40e4ab173764aec7db9b2a00 t/Eval.pm
-SHA1 d7f5ca01199b601b1a1a86127270d9ab7d1ca50b t/Hints.pm
-SHA1 ffe7d868943d2340608382f87281098e5dd7b951 t/Nest0.pm
-SHA1 e8bdcdde82209336e6c1f0123c283ec839d0efcb t/Nest1.pm
-SHA1 f8988828e7cab17800a0b5f25547f09431933480 t/Simple.pm
+SHA1 e3dd9692890aa2a330f3fa06fc72ee9c4d99354a Build.PL
+SHA1 c28b809041fffe23ec012c4a49b12bf9a1578295 Changes
+SHA1 9546eeb74b22a29325aa9f25680754de1d2c66bd MANIFEST
+SHA1 5cc949633444715c30476b6cc3ec9ac8a0cb4618 META.json
+SHA1 0cf9af6b1218239cac47f4fe3189d0db52dc551b META.yml
+SHA1 d65cb8e21521e6063b5c9ff0aa5971133eb80697 Makefile.PL
+SHA1 f39acd66237fdd46b843b872bf5636135afe0b07 README
+SHA1 51baafa53704c33b0a0dcdb0052095df132ae11d lib/Module/Runtime.pm
SHA1 a0f9c0dfbe6472e81222a196a2f17554697d0d48 t/cmn.t
SHA1 7324434239bc0678904a4eb406f6c3b08951b162 t/dependency.t
SHA1 9331d0076c868209e9d3f0572d80f3e81df456df t/import_error.t
SHA1 fa24ea0033e10712a16c71466d488cd3e69e3697 t/ivmn.t
SHA1 84e207008efae1ed0ad21601d77205c2a8739fa5 t/ivms.t
+SHA1 e80e49f06f99a5b5bb0faf54988df29a7aff89c5 t/lib/t/Break.pm
+SHA1 c3c7b101e683f9f3d7f915763aa6d1850421bcb4 t/lib/t/Context.pm
+SHA1 d24b0d20f4e663d4d909756f49c7bcd4752d13b8 t/lib/t/Eval.pm
+SHA1 d7f5ca01199b601b1a1a86127270d9ab7d1ca50b t/lib/t/Hints.pm
+SHA1 ffe7d868943d2340608382f87281098e5dd7b951 t/lib/t/Nest0.pm
+SHA1 e8bdcdde82209336e6c1f0123c283ec839d0efcb t/lib/t/Nest1.pm
+SHA1 f8988828e7cab17800a0b5f25547f09431933480 t/lib/t/Simple.pm
SHA1 8adfb7863317a2d0962a2538800cb5ad3bda1690 t/mnf.t
SHA1 904d9a4f76525e2303e4b0c168c68230f223c8de t/pod_cvg.t
SHA1 65c75abdef6f01a5d1588a307f2ddfe2333dc961 t/pod_syn.t
-SHA1 2e9638c32424e2e58100d64cb74ac50a0b964d1b t/rm.t
+SHA1 256e6d474b59dae11fd569f132c09079f9ac216a t/rm.t
SHA1 5a0ef5f7a982fbaff5d501165ae2720f465c7560 t/taint.t
-SHA1 a57c7214dbd32d1dd814b30e45ac9dc3eaeebf4d t/um.t
-SHA1 ddba26fbb70f1ac345b16b79098f96e36e812835 t/upo.t
-SHA1 58c31b3e89d117d674da19600ce8d3967ecaaa6a t/upo_overridden.t
+SHA1 bfbc137c2e8721b12779c04c19869285714e0348 t/um.t
+SHA1 bf6317856eea0f9e36ddb75af8eda52f88a1d77f t/upo.t
+SHA1 0c5244ef9cc8c0ff2e07a6b8eb04ed742994aae9 t/upo_overridden.t
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.12 (GNU/Linux)
+Version: GnuPG v1
-iEYEARECAAYFAlL0CBwACgkQOV9mt2VyAVGAVACeOdEFo68kefBCRGYWXBoaC+a7
-eR8AnRO4eNYgF0t/ig68L/m5syrSkzCZ
-=OmNr
+iEYEARECAAYFAllqs9UACgkQOV9mt2VyAVGR7wCeIGvW9/xLua3RXMYk78FHcFee
+FSkAoKQ/x6Tlk6cxBQGw8fN7rvJw4lWP
+=+SGA
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/lib/Module/Runtime.pm
new/Module-Runtime-0.015/lib/Module/Runtime.pm
--- old/Module-Runtime-0.014/lib/Module/Runtime.pm 2014-02-06
23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/lib/Module/Runtime.pm 2017-07-16
02:31:17.000000000 +0200
@@ -120,7 +120,7 @@
BEGIN { ${^WARNING_BITS} = ""; }
# Don't "use strict" here, to avoid dependencies.
-our $VERSION = "0.014";
+our $VERSION = "0.015";
# Don't use Exporter here, to avoid dependencies.
our @EXPORT_OK = qw(
@@ -362,6 +362,19 @@
the package was actually already loaded by other means, and no error
is signalled. That's the optimistic bit.
+I<Warning:> this optional module loading is liable to cause unreliable
+behaviour, including security problems. It interacts especially badly
+with having C<.> in C<@INC>, which was the default state of affairs in
+Perls prior to 5.25.11. If a package is actually defined by some means
+other than a module, then applying this function to it causes a spurious
+attempt to load a module that is expected to be non-existent. If a
+module actually exists under that name then it will be unintentionally
+loaded. If C<.> is in C<@INC> and this code is ever run with the current
+directory being one writable by a malicious user (such as F</tmp>), then
+the malicious user can easily cause the victim to run arbitrary code, by
+creating a module file under the predictable spuriously-loaded name in the
+writable directory. Generally, optional module loading should be avoided.
+
This is mostly the same operation that is performed by the L<base> pragma
to ensure that the specified base classes are available. The behaviour
of L<base> was simplified in version 2.18, and later improved in version
@@ -492,7 +505,7 @@
=head1 COPYRIGHT
-Copyright (C) 2004, 2006, 2007, 2009, 2010, 2011, 2012, 2014
+Copyright (C) 2004, 2006, 2007, 2009, 2010, 2011, 2012, 2014, 2017
Andrew Main (Zefram) <[email protected]>
=head1 LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/Break.pm
new/Module-Runtime-0.015/t/Break.pm
--- old/Module-Runtime-0.014/t/Break.pm 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/Break.pm 1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-package t::Break;
-
-{ use 5.006; }
-use warnings;
-use strict;
-
-die "broken";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/Context.pm
new/Module-Runtime-0.015/t/Context.pm
--- old/Module-Runtime-0.014/t/Context.pm 2014-02-06 23:09:32.000000000
+0100
+++ new/Module-Runtime-0.015/t/Context.pm 1970-01-01 01:00:00.000000000
+0100
@@ -1,12 +0,0 @@
-package t::Context;
-
-{ use 5.006; }
-use warnings;
-use strict;
-
-our $VERSION = 1;
-
-die "t::Context sees array context at file scope" if wantarray;
-die "t::Context sees void context at file scope" unless defined wantarray;
-
-"t::Context return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/Eval.pm
new/Module-Runtime-0.015/t/Eval.pm
--- old/Module-Runtime-0.014/t/Eval.pm 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/Eval.pm 1970-01-01 01:00:00.000000000 +0100
@@ -1,41 +0,0 @@
-package t::Eval;
-
-use warnings;
-use strict;
-
-use Test::More;
-
-sub _ok_no_eval() {
- my $lastsub = "";
- my $i = 0;
- while(1) {
- my @c = caller($i);
- unless(@c) {
- ok 0;
- diag "failed to find main program in stack trace";
- return;
- }
- my $sub = $c[3];
- if($sub eq "main::eval_test") {
- ok 1;
- return;
- }
- my $type = $sub ne "(eval)" ? "subroutine" :
- $c[7] ? "require" :
- defined($c[6]) ? "string eval" : "block eval";
- if($type =~ /eval/ && !($lastsub eq "t::Eval::BEGIN" &&
- $type eq "block eval")) {
- ok 0;
- diag "have $type between module and main program";
- return;
- }
- $lastsub = $sub;
- $i++;
- }
-}
-
-BEGIN { _ok_no_eval(); }
-_ok_no_eval();
-sub import { _ok_no_eval(); }
-
-1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/Hints.pm
new/Module-Runtime-0.015/t/Hints.pm
--- old/Module-Runtime-0.014/t/Hints.pm 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/Hints.pm 1970-01-01 01:00:00.000000000 +0100
@@ -1,17 +0,0 @@
-package t::Hints;
-
-use warnings;
-use strict;
-
-use Test::More;
-
-BEGIN { is $^H{"Module::Runtime/test_a"}, undef; }
-main::test_runtime_hint_hash "Module::Runtime/test_a", undef;
-
-sub import {
- is $^H{"Module::Runtime/test_a"}, 1;
- $^H |= 0x20000 if "$]" < 5.009004;
- $^H{"Module::Runtime/test_b"} = 1;
-}
-
-1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/Nest0.pm
new/Module-Runtime-0.015/t/Nest0.pm
--- old/Module-Runtime-0.014/t/Nest0.pm 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/Nest0.pm 1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-package t::Nest0;
-
-{ use 5.006; }
-use warnings;
-use strict;
-use t::Nested;
-
-our $VERSION = 1;
-
-"t::Nest0 return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/Nest1.pm
new/Module-Runtime-0.015/t/Nest1.pm
--- old/Module-Runtime-0.014/t/Nest1.pm 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/Nest1.pm 1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-package t::Nest1;
-
-{ use 5.006; }
-use warnings;
-use strict;
-use Module::Runtime qw(require_module);
-
-our $VERSION = 1;
-
-require_module("t::Nested");
-
-"t::Nest1 return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/Simple.pm
new/Module-Runtime-0.015/t/Simple.pm
--- old/Module-Runtime-0.014/t/Simple.pm 2014-02-06 23:09:32.000000000
+0100
+++ new/Module-Runtime-0.015/t/Simple.pm 1970-01-01 01:00:00.000000000
+0100
@@ -1,9 +0,0 @@
-package t::Simple;
-
-{ use 5.006; }
-use warnings;
-use strict;
-
-our $VERSION = 1;
-
-"t::Simple return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/lib/t/Break.pm
new/Module-Runtime-0.015/t/lib/t/Break.pm
--- old/Module-Runtime-0.014/t/lib/t/Break.pm 1970-01-01 01:00:00.000000000
+0100
+++ new/Module-Runtime-0.015/t/lib/t/Break.pm 2017-07-16 02:31:17.000000000
+0200
@@ -0,0 +1,7 @@
+package t::Break;
+
+{ use 5.006; }
+use warnings;
+use strict;
+
+die "broken";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/lib/t/Context.pm
new/Module-Runtime-0.015/t/lib/t/Context.pm
--- old/Module-Runtime-0.014/t/lib/t/Context.pm 1970-01-01 01:00:00.000000000
+0100
+++ new/Module-Runtime-0.015/t/lib/t/Context.pm 2017-07-16 02:31:17.000000000
+0200
@@ -0,0 +1,12 @@
+package t::Context;
+
+{ use 5.006; }
+use warnings;
+use strict;
+
+our $VERSION = 1;
+
+die "t::Context sees array context at file scope" if wantarray;
+die "t::Context sees void context at file scope" unless defined wantarray;
+
+"t::Context return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/lib/t/Eval.pm
new/Module-Runtime-0.015/t/lib/t/Eval.pm
--- old/Module-Runtime-0.014/t/lib/t/Eval.pm 1970-01-01 01:00:00.000000000
+0100
+++ new/Module-Runtime-0.015/t/lib/t/Eval.pm 2017-07-16 02:31:17.000000000
+0200
@@ -0,0 +1,41 @@
+package t::Eval;
+
+use warnings;
+use strict;
+
+use Test::More 0.41;
+
+sub _ok_no_eval() {
+ my $lastsub = "";
+ my $i = 0;
+ while(1) {
+ my @c = caller($i);
+ unless(@c) {
+ ok 0;
+ diag "failed to find main program in stack trace";
+ return;
+ }
+ my $sub = $c[3];
+ if($sub eq "main::eval_test") {
+ ok 1;
+ return;
+ }
+ my $type = $sub ne "(eval)" ? "subroutine" :
+ $c[7] ? "require" :
+ defined($c[6]) ? "string eval" : "block eval";
+ if($type =~ /eval/ && !($lastsub eq "t::Eval::BEGIN" &&
+ $type eq "block eval")) {
+ ok 0;
+ diag "have $type between module and main program";
+ return;
+ }
+ $lastsub = $sub;
+ $i++;
+ }
+}
+
+BEGIN { _ok_no_eval(); }
+_ok_no_eval();
+sub import { _ok_no_eval(); }
+
+1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/lib/t/Hints.pm
new/Module-Runtime-0.015/t/lib/t/Hints.pm
--- old/Module-Runtime-0.014/t/lib/t/Hints.pm 1970-01-01 01:00:00.000000000
+0100
+++ new/Module-Runtime-0.015/t/lib/t/Hints.pm 2017-07-16 02:31:17.000000000
+0200
@@ -0,0 +1,17 @@
+package t::Hints;
+
+use warnings;
+use strict;
+
+use Test::More;
+
+BEGIN { is $^H{"Module::Runtime/test_a"}, undef; }
+main::test_runtime_hint_hash "Module::Runtime/test_a", undef;
+
+sub import {
+ is $^H{"Module::Runtime/test_a"}, 1;
+ $^H |= 0x20000 if "$]" < 5.009004;
+ $^H{"Module::Runtime/test_b"} = 1;
+}
+
+1;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/lib/t/Nest0.pm
new/Module-Runtime-0.015/t/lib/t/Nest0.pm
--- old/Module-Runtime-0.014/t/lib/t/Nest0.pm 1970-01-01 01:00:00.000000000
+0100
+++ new/Module-Runtime-0.015/t/lib/t/Nest0.pm 2017-07-16 02:31:17.000000000
+0200
@@ -0,0 +1,10 @@
+package t::Nest0;
+
+{ use 5.006; }
+use warnings;
+use strict;
+use t::Nested;
+
+our $VERSION = 1;
+
+"t::Nest0 return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/lib/t/Nest1.pm
new/Module-Runtime-0.015/t/lib/t/Nest1.pm
--- old/Module-Runtime-0.014/t/lib/t/Nest1.pm 1970-01-01 01:00:00.000000000
+0100
+++ new/Module-Runtime-0.015/t/lib/t/Nest1.pm 2017-07-16 02:31:17.000000000
+0200
@@ -0,0 +1,12 @@
+package t::Nest1;
+
+{ use 5.006; }
+use warnings;
+use strict;
+use Module::Runtime qw(require_module);
+
+our $VERSION = 1;
+
+require_module("t::Nested");
+
+"t::Nest1 return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/lib/t/Simple.pm
new/Module-Runtime-0.015/t/lib/t/Simple.pm
--- old/Module-Runtime-0.014/t/lib/t/Simple.pm 1970-01-01 01:00:00.000000000
+0100
+++ new/Module-Runtime-0.015/t/lib/t/Simple.pm 2017-07-16 02:31:17.000000000
+0200
@@ -0,0 +1,9 @@
+package t::Simple;
+
+{ use 5.006; }
+use warnings;
+use strict;
+
+our $VERSION = 1;
+
+"t::Simple return";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/rm.t
new/Module-Runtime-0.015/t/rm.t
--- old/Module-Runtime-0.014/t/rm.t 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/rm.t 2017-07-16 02:31:17.000000000 +0200
@@ -5,6 +5,7 @@
BEGIN { use_ok "Module::Runtime", qw(require_module); }
+unshift @INC, "./t/lib";
my($result, $err);
sub test_require_module($) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/um.t
new/Module-Runtime-0.015/t/um.t
--- old/Module-Runtime-0.014/t/um.t 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/um.t 2017-07-16 02:31:17.000000000 +0200
@@ -5,6 +5,7 @@
BEGIN { use_ok "Module::Runtime", qw(use_module); }
+unshift @INC, "./t/lib";
my $result;
# a module that doesn't exist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/upo.t
new/Module-Runtime-0.015/t/upo.t
--- old/Module-Runtime-0.014/t/upo.t 2014-02-06 23:09:32.000000000 +0100
+++ new/Module-Runtime-0.015/t/upo.t 2017-07-16 02:31:17.000000000 +0200
@@ -5,6 +5,7 @@
BEGIN { use_ok "Module::Runtime", qw(use_package_optimistically); }
+unshift @INC, "./t/lib";
my $result;
# a module that doesn't exist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Runtime-0.014/t/upo_overridden.t
new/Module-Runtime-0.015/t/upo_overridden.t
--- old/Module-Runtime-0.014/t/upo_overridden.t 2014-02-06 23:09:32.000000000
+0100
+++ new/Module-Runtime-0.015/t/upo_overridden.t 2017-07-16 02:31:17.000000000
+0200
@@ -14,6 +14,6 @@
no warnings "once";
*CORE::GLOBAL::require = sub { require $_[0] };
-do "t/upo.t" or die $@ || $!;
+do "./t/upo.t" or die $@ || $!;
1;
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module