Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-Module-Refresh for
openSUSE:Factory checked in at 2022-06-02 21:54:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-Refresh (Old)
and /work/SRC/openSUSE:Factory/.perl-Module-Refresh.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Module-Refresh"
Thu Jun 2 21:54:45 2022 rev:12 rq:980492 version:0.18
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Module-Refresh/perl-Module-Refresh.changes
2017-10-03 23:20:14.077512197 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Module-Refresh.new.1548/perl-Module-Refresh.changes
2022-06-02 21:55:01.692431131 +0200
@@ -1,0 +2,10 @@
+Wed May 18 03:09:35 UTC 2022 - Tina M??ller <[email protected]>
+
+- updated to 0.18
+ see /usr/share/doc/packages/perl-Module-Refresh/Changes
+
+ 0.18 Tue May 10 03:33:29 CST 2022
+
+ * Fix uninitialized warnings when modules were not successfully loaded
+
+-------------------------------------------------------------------
Old:
----
Module-Refresh-0.17.tar.gz
New:
----
Module-Refresh-0.18.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Module-Refresh.spec ++++++
--- /var/tmp/diff_new_pack.jV9TE6/_old 2022-06-02 21:55:02.204431784 +0200
+++ /var/tmp/diff_new_pack.jV9TE6/_new 2022-06-02 21:55:02.208431788 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Module-Refresh
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,24 +12,23 @@
# 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/
#
+%define cpan_name Module-Refresh
Name: perl-Module-Refresh
-Version: 0.17
+Version: 0.18
Release: 0
-%define cpan_name Module-Refresh
+License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Refresh %INC files when updated on disk
-License: Artistic-1.0 or GPL-1.0+
-Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Module-Refresh/
-Source0:
https://cpan.metacpan.org/authors/id/A/AL/ALEXMV/%{cpan_name}-%{version}.tar.gz
+URL: https://metacpan.org/release/%{cpan_name}
+Source0:
https://cpan.metacpan.org/authors/id/B/BP/BPS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
+BuildRequires: perl(ExtUtils::MakeMaker) >= 6.36
BuildRequires: perl(File::Temp) >= 0.19
BuildRequires: perl(Path::Class)
%{perl_requires}
@@ -42,18 +41,18 @@
It does not require mod_perl.
%prep
-%setup -q -n %{cpan_name}-%{version}
-find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
+%autosetup -n %{cpan_name}-%{version}
+find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path
"*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
# MANUAL BEGIN
sed -i -e 's/use inc::Module::Install/use lib q[.];\nuse
inc::Module::Install/' Makefile.PL
# MANUAL END
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
-%{__make} %{?_smp_mflags}
+PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor
+%make_build
%check
-%{__make} test
+make test
%install
%perl_make_install
@@ -61,7 +60,6 @@
%perl_gen_filelist
%files -f %{name}.files
-%defattr(-,root,root,755)
%doc Changes
%changelog
++++++ Module-Refresh-0.17.tar.gz -> Module-Refresh-0.18.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/Changes
new/Module-Refresh-0.18/Changes
--- old/Module-Refresh-0.17/Changes 2011-10-26 14:35:50.000000000 +0200
+++ new/Module-Refresh-0.18/Changes 2022-05-09 21:39:56.000000000 +0200
@@ -1,3 +1,7 @@
+0.18 Tue May 10 03:33:29 CST 2022
+
+ * Fix uninitialized warnings when modules were not successfully loaded
+
0.17 Wed Oct 26 08:34:17 EST 2011
* Warnings avoidance for reloading a module not in %INC
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/META.yml
new/Module-Refresh-0.18/META.yml
--- old/Module-Refresh-0.17/META.yml 2011-10-26 14:37:12.000000000 +0200
+++ new/Module-Refresh-0.18/META.yml 2022-05-09 21:40:58.000000000 +0200
@@ -3,14 +3,15 @@
author:
- 'Jesse Vincent <[email protected]>'
build_requires:
- ExtUtils::MakeMaker: 6.42
- File::Temp: 0.19
+ ExtUtils::MakeMaker: 6.36
+ File::Temp: '0.19'
Path::Class: 0
Test::More: 0
configure_requires:
- ExtUtils::MakeMaker: 6.42
+ ExtUtils::MakeMaker: 6.36
distribution_type: module
-generated_by: 'Module::Install version 1.01'
+dynamic_config: 1
+generated_by: 'Module::Install version 1.19'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,4 +25,4 @@
perl: 5.8.1
resources:
license: http://dev.perl.org/licenses/
-version: 0.17
+version: '0.18'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/SIGNATURE
new/Module-Refresh-0.18/SIGNATURE
--- old/Module-Refresh-0.17/SIGNATURE 2011-10-26 14:39:45.000000000 +0200
+++ new/Module-Refresh-0.18/SIGNATURE 2022-05-09 21:41:01.000000000 +0200
@@ -1,5 +1,5 @@
This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.68.
+signed via the Module::Signature module, version 0.87.
To verify the content in this distribution, first make sure you have
Module::Signature installed, then type:
@@ -12,29 +12,33 @@
not run its Makefile.PL or Build.PL.
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
-SHA1 a4f3feed692a81d74a635d2bf286b97316ac3fcc Changes
-SHA1 68778c52d10c41f67e469665dd332886a6c628e6 MANIFEST
-SHA1 21ad6726ffa49bb496f518929755463ac851cd22 META.yml
-SHA1 7dc0bf7724559c484f67e74284e7648b839846c5 Makefile.PL
-SHA1 7b4ae50ebac72d20761171c4c2b50c206344ea40 inc/Module/Install.pm
-SHA1 d9fe55a427fe2fd75b5029afeeaa61b592e07f79 inc/Module/Install/Base.pm
-SHA1 62d3922826d9f89f20c185e7031ac8f028504745 inc/Module/Install/Can.pm
-SHA1 dc809f64fb70a26b069a36f8d3d353d520dbb7e1 inc/Module/Install/Fetch.pm
-SHA1 73ab91490a628452cc140db72ef9d13a1326d211 inc/Module/Install/Makefile.pm
-SHA1 8ce3f2b414e4617e6233dd4ba10830f8c5d672ec inc/Module/Install/Metadata.pm
-SHA1 3b0acd2eeac93a0afe48120f5648f0db362e5bbf inc/Module/Install/Win32.pm
-SHA1 f08924f051e623f8e09fa6a121993c4a9cf7d9eb inc/Module/Install/WriteAll.pm
-SHA1 f909a4d4184fd9010c9b297aa5a7657b79af5ade lib/Module/Refresh.pm
-SHA1 59ee3fb5cc33fa83f37010c6f1bbffc96169c3d4 t/0-smoke.t
-SHA1 9103ce09992aa9abff57823a090e109b1e9511a5 t/1api.t
-SHA1 d6fce094ee7fb7e800f646ac216dcc4a8a45f7db t/2lateuse.t
-SHA1 ca479c7b8ae0997a66d18c00216ac44c1346cbc4 t/clear_symtable.t
+SHA256 406ab2dd7a971875c07d2172ec0de96ce1c7be1c5e496608e0ab93414fce886c Changes
+SHA256 c62549318f2e3c068c6421e87311eefd78583c266efa0a13a3d62b9870881b0a
MANIFEST
+SHA256 e1c5ab5f657f1a32b07f8dfd701d6adddc2ba119bdbeae5065b19dcfac693c56
META.yml
+SHA256 4396a9a739b8bfb843afbb5daa0c8d3ad622ef8e9317ebc2be566030cdc153a5
Makefile.PL
+SHA256 67d139199c03b8bf8447a5a62f0d0b6dc1bd5bf6dbe04de6d21998c577823ed6
inc/Module/Install.pm
+SHA256 6ebcc53a161dd5dc0aae69e4704575f2b00181901d768a82e26722a309cfdbe4
inc/Module/Install/Base.pm
+SHA256 d3f8c839d03fd21c197d05362dbb277cd7cadb15da6390d124b61e851f15146e
inc/Module/Install/Can.pm
+SHA256 e9e72e18921c10c87bc4ea4c20af83e52015b9f5775d00ac64073042403717ca
inc/Module/Install/Fetch.pm
+SHA256 a7a681bf2c9eee58a372cb642ffe42b0301d1200432ba8de9f7791cd1ecc9827
inc/Module/Install/Makefile.pm
+SHA256 aa887fa65a5eb6bbd1805706ce298b3f3cd55b353ecfd37aa7d35ae419331a49
inc/Module/Install/Metadata.pm
+SHA256 26b166ff62aacdb55317d1659f160aa4935097eea9810ea980e6d747206b5dc0
inc/Module/Install/Win32.pm
+SHA256 5f73a6851a91ea44e65b924f918743ad6e860620ad7a38a39d0295e0c5652a9f
inc/Module/Install/WriteAll.pm
+SHA256 0c5bafdf873c25e2072e60cac36ed4fc9f7faaa7398aae231decbfcd68c2a3d3
lib/Module/Refresh.pm
+SHA256 3b903ef9d449f1432f9defa83566408a41c043919d9eae2b470b6d7ee14368b7
t/0-smoke.t
+SHA256 9a0eed291f852ecdfdc41b9f19bfc386b4961f8238ff65cb147557b010a1a079
t/1api.t
+SHA256 922d56802cda9b5ee44e760a8714f74d03dfd6e5b2e6b618e2691db13e3382fc
t/2lateuse.t
+SHA256 cc3ba9e8871775f7ecbe5e1a172fadf899bc3bb83f66e53dfeeca3d5b7ed41aa
t/clear_symtable.t
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.11 (GNU/Linux)
-iEYEARECAAYFAk6n/5EACgkQMflWJZZAbqBdiQCcDiBifDL3HB4PEJNyAL+epxJ4
-ZisAn1UPpw5joR+4X+Q4sOEHdweaus/2
-=VeQ2
+iQEyBAEBCAAdFiEExJs3Lyv4ShkBFmAnDfCig/6sgLIFAmJ5bk0ACgkQDfCig/6s
+gLLVEAf4vyjjV6sD+0Wu7R+kmIXYHJV6VE/oWQHF8ORdl2pGVCB4CDYBGi9qPdbJ
+fjTyRW1gQCq4fP+sbsPBNNMBbhsj1fmGmmrTk+2lCjzcngTGQ7rmmUJ14soQAb11
+dOOx1cJ9ho/lH3A6s6PF+KN+Lh56I9CdMd9U/tMVnUzIeB5cniU5hdxVtGFUNIm6
+csVFaUcOzsqKdmHJ6H96Fe86FAIemyWAYVo06HtGbESERmc1FMP7245TIdl+QViS
+j6+mZur4iGUyhreriXT386ER1ybrfYob2DXbJtlr0WDq9+9wTb70aAA/S4JKE3JU
+6BiqjI55bnOEolwiCJN3g4VcSzjw
+=vzzN
-----END PGP SIGNATURE-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install/Base.pm
new/Module-Refresh-0.18/inc/Module/Install/Base.pm
--- old/Module-Refresh-0.17/inc/Module/Install/Base.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install/Base.pm 2022-05-09
21:40:58.000000000 +0200
@@ -4,7 +4,7 @@
use strict 'vars';
use vars qw{$VERSION};
BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.19';
}
# Suspend handler for "redefined" warnings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install/Can.pm
new/Module-Refresh-0.18/inc/Module/Install/Can.pm
--- old/Module-Refresh-0.17/inc/Module/Install/Can.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install/Can.pm 2022-05-09
21:40:58.000000000 +0200
@@ -3,13 +3,12 @@
use strict;
use Config ();
-use File::Spec ();
use ExtUtils::MakeMaker ();
use Module::Install::Base ();
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.19';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
@@ -29,7 +28,7 @@
eval { require $mod; $pkg->VERSION($ver || 0); 1 };
}
-# check if we can run some command
+# Check if we can run some command
sub can_run {
my ($self, $cmd) = @_;
@@ -38,16 +37,99 @@
for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
next if $dir eq '';
- my $abs = File::Spec->catfile($dir, $_[1]);
+ require File::Spec;
+ my $abs = File::Spec->catfile($dir, $cmd);
return $abs if (-x $abs or $abs = MM->maybe_command($abs));
}
return;
}
-# can we locate a (the) C compiler
+# Can our C compiler environment build XS files
+sub can_xs {
+ my $self = shift;
+
+ # Ensure we have the CBuilder module
+ $self->configure_requires( 'ExtUtils::CBuilder' => 0.27 );
+
+ # Do we have the configure_requires checker?
+ local $@;
+ eval "require ExtUtils::CBuilder;";
+ if ( $@ ) {
+ # They don't obey configure_requires, so it is
+ # someone old and delicate. Try to avoid hurting
+ # them by falling back to an older simpler test.
+ return $self->can_cc();
+ }
+
+ # Do we have a working C compiler
+ my $builder = ExtUtils::CBuilder->new(
+ quiet => 1,
+ );
+ unless ( $builder->have_compiler ) {
+ # No working C compiler
+ return 0;
+ }
+
+ # Write a C file representative of what XS becomes
+ require File::Temp;
+ my ( $FH, $tmpfile ) = File::Temp::tempfile(
+ "compilexs-XXXXX",
+ SUFFIX => '.c',
+ );
+ binmode $FH;
+ print $FH <<'END_C';
+#include "EXTERN.h"
+#include "perl.h"
+#include "XSUB.h"
+
+int main(int argc, char **argv) {
+ return 0;
+}
+
+int boot_sanexs() {
+ return 1;
+}
+
+END_C
+ close $FH;
+
+ # Can the C compiler access the same headers XS does
+ my @libs = ();
+ my $object = undef;
+ eval {
+ local $^W = 0;
+ $object = $builder->compile(
+ source => $tmpfile,
+ );
+ @libs = $builder->link(
+ objects => $object,
+ module_name => 'sanexs',
+ );
+ };
+ my $result = $@ ? 0 : 1;
+
+ # Clean up all the build files
+ foreach ( $tmpfile, $object, @libs ) {
+ next unless defined $_;
+ 1 while unlink;
+ }
+
+ return $result;
+}
+
+# Can we locate a (the) C compiler
sub can_cc {
my $self = shift;
+
+ if ($^O eq 'VMS') {
+ require ExtUtils::CBuilder;
+ my $builder = ExtUtils::CBuilder->new(
+ quiet => 1,
+ );
+ return $builder->have_compiler;
+ }
+
my @chunks = split(/ /, $Config::Config{cc}) or return;
# $Config{cc} may contain args; try to find out the program part
@@ -78,4 +160,4 @@
__END__
-#line 156
+#line 245
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install/Fetch.pm
new/Module-Refresh-0.18/inc/Module/Install/Fetch.pm
--- old/Module-Refresh-0.17/inc/Module/Install/Fetch.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install/Fetch.pm 2022-05-09
21:40:58.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.19';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install/Makefile.pm
new/Module-Refresh-0.18/inc/Module/Install/Makefile.pm
--- old/Module-Refresh-0.17/inc/Module/Install/Makefile.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install/Makefile.pm 2022-05-09
21:40:58.000000000 +0200
@@ -8,7 +8,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.19';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
@@ -133,7 +133,7 @@
return $args;
}
-# For mm args that take multiple space-seperated args,
+# For mm args that take multiple space-separated args,
# append an argument to the current list.
sub makemaker_append {
my $self = shift;
@@ -215,18 +215,22 @@
require ExtUtils::MakeMaker;
if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) {
- # MakeMaker can complain about module versions that include
- # an underscore, even though its own version may contain one!
- # Hence the funny regexp to get rid of it. See RT #35800
- # for details.
- my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/;
- $self->build_requires( 'ExtUtils::MakeMaker' => $v );
- $self->configure_requires( 'ExtUtils::MakeMaker' => $v );
+ # This previous attempted to inherit the version of
+ # ExtUtils::MakeMaker in use by the module author, but this
+ # was found to be untenable as some authors build releases
+ # using future dev versions of EU:MM that nobody else has.
+ # Instead, #toolchain suggests we use 6.59 which is the most
+ # stable version on CPAN at time of writing and is, to quote
+ # ribasushi, "not terminally fucked, > and tested enough".
+ # TODO: We will now need to maintain this over time to push
+ # the version up as new versions are released.
+ $self->build_requires( 'ExtUtils::MakeMaker' => 6.59 );
+ $self->configure_requires( 'ExtUtils::MakeMaker' => 6.59 );
} else {
# Allow legacy-compatibility with 5.005 by depending on the
# most recent EU:MM that supported 5.005.
- $self->build_requires( 'ExtUtils::MakeMaker' => 6.42 );
- $self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 );
+ $self->build_requires( 'ExtUtils::MakeMaker' => 6.36 );
+ $self->configure_requires( 'ExtUtils::MakeMaker' => 6.36 );
}
# Generate the MakeMaker params
@@ -241,7 +245,6 @@
'all_from' if you prefer) in Makefile.PL.
EOT
- $DB::single = 1;
if ( $self->tests ) {
my @tests = split ' ', $self->tests;
my %seen;
@@ -412,4 +415,4 @@
__END__
-#line 541
+#line 544
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install/Metadata.pm
new/Module-Refresh-0.18/inc/Module/Install/Metadata.pm
--- old/Module-Refresh-0.17/inc/Module/Install/Metadata.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install/Metadata.pm 2022-05-09
21:40:58.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.19';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
@@ -151,15 +151,21 @@
sub install_as_vendor { $_[0]->installdirs('vendor') }
sub dynamic_config {
- my $self = shift;
- unless ( @_ ) {
- warn "You MUST provide an explicit true/false value to
dynamic_config\n";
- return $self;
+ my $self = shift;
+ my $value = @_ ? shift : 1;
+ if ( $self->{values}->{dynamic_config} ) {
+ # Once dynamic we never change to static, for safety
+ return 0;
}
- $self->{values}->{dynamic_config} = $_[0] ? 1 : 0;
+ $self->{values}->{dynamic_config} = $value ? 1 : 0;
return 1;
}
+# Convenience command
+sub static_config {
+ shift->dynamic_config(0);
+}
+
sub perl_version {
my $self = shift;
return $self->{values}->{perl_version} unless @_;
@@ -170,7 +176,7 @@
# Normalize the version
$version = $self->_perl_version($version);
- # We don't support the reall old versions
+ # We don't support the really old versions
unless ( $version >= 5.005 ) {
die "Module::Install only supports 5.005 or newer (use
ExtUtils::MakeMaker)\n";
}
@@ -341,7 +347,7 @@
^ \s*
package \s*
([\w:]+)
- \s* ;
+ [\s|;]*
/ixms
) {
my ($name, $module_name) = ($1, $1);
@@ -582,7 +588,7 @@
sub requires_from {
my $self = shift;
my $content = Module::Install::_readperl($_[0]);
- my @requires = $content =~
m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg;
+ my @requires = $content =~
m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+(v?[\d\.]+)/mg;
while ( @requires ) {
my $module = shift @requires;
my $version = shift @requires;
@@ -699,7 +705,7 @@
my @yaml = Parse::CPAN::Meta::LoadFile('META.yml');
my $meta = $yaml[0];
- # Overwrite the non-configure dependency hashs
+ # Overwrite the non-configure dependency hashes
delete $meta->{requires};
delete $meta->{build_requires};
delete $meta->{recommends};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install/Win32.pm
new/Module-Refresh-0.18/inc/Module/Install/Win32.pm
--- old/Module-Refresh-0.17/inc/Module/Install/Win32.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install/Win32.pm 2022-05-09
21:40:58.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.19';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install/WriteAll.pm
new/Module-Refresh-0.18/inc/Module/Install/WriteAll.pm
--- old/Module-Refresh-0.17/inc/Module/Install/WriteAll.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install/WriteAll.pm 2022-05-09
21:40:58.000000000 +0200
@@ -6,7 +6,7 @@
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
- $VERSION = '1.01';
+ $VERSION = '1.19';
@ISA = qw{Module::Install::Base};
$ISCORE = 1;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/inc/Module/Install.pm
new/Module-Refresh-0.18/inc/Module/Install.pm
--- old/Module-Refresh-0.17/inc/Module/Install.pm 2011-10-26
14:37:11.000000000 +0200
+++ new/Module-Refresh-0.18/inc/Module/Install.pm 2022-05-09
21:40:58.000000000 +0200
@@ -17,7 +17,7 @@
# 3. The ./inc/ version of Module::Install loads
# }
-use 5.005;
+use 5.006;
use strict 'vars';
use Cwd ();
use File::Find ();
@@ -31,7 +31,7 @@
# This is not enforced yet, but will be some time in the next few
# releases once we can make sure it won't clash with custom
# Module::Install extensions.
- $VERSION = '1.01';
+ $VERSION = '1.19';
# Storage for the pseudo-singleton
$MAIN = undef;
@@ -156,10 +156,10 @@
sub autoload {
my $self = shift;
my $who = $self->_caller;
- my $cwd = Cwd::cwd();
+ my $cwd = Cwd::getcwd();
my $sym = "${who}::AUTOLOAD";
$sym->{$cwd} = sub {
- my $pwd = Cwd::cwd();
+ my $pwd = Cwd::getcwd();
if ( my $code = $sym->{$pwd} ) {
# Delegate back to parent dirs
goto &$code unless $cwd eq $pwd;
@@ -239,11 +239,13 @@
# ignore the prefix on extension modules built from top level.
my $base_path = Cwd::abs_path($FindBin::Bin);
- unless ( Cwd::abs_path(Cwd::cwd()) eq $base_path ) {
+ unless ( Cwd::abs_path(Cwd::getcwd()) eq $base_path ) {
delete $args{prefix};
}
return $args{_self} if $args{_self};
+ $base_path = VMS::Filespec::unixify($base_path) if $^O eq 'VMS';
+
$args{dispatch} ||= 'Admin';
$args{prefix} ||= 'inc';
$args{author} ||= ($^O eq 'VMS' ? '_author' : '.author');
@@ -322,7 +324,7 @@
my ($self, $path) = @_;
my @found;
- File::Find::find( sub {
+ File::Find::find( {no_chdir => 1, wanted => sub {
my $file = $File::Find::name;
return unless $file =~ m!^\Q$path\E/(.+)\.pm\Z!is;
my $subpath = $1;
@@ -336,9 +338,9 @@
# correctly. Otherwise, root through the file to locate the
case-preserved
# version of the package name.
if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) {
- my $content = Module::Install::_read($subpath . '.pm');
+ my $content = Module::Install::_read($File::Find::name);
my $in_pod = 0;
- foreach ( split //, $content ) {
+ foreach ( split /\n/, $content ) {
$in_pod = 1 if /^=\w/;
$in_pod = 0 if /^=cut/;
next if ($in_pod || /^=cut/); # skip pod text
@@ -351,7 +353,7 @@
}
push @found, [ $file, $pkg ];
- }, $path ) if -d $path;
+ }}, $path ) if -d $path;
@found;
}
@@ -373,24 +375,14 @@
return $call;
}
-# Done in evals to avoid confusing Perl::MinimumVersion
-eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
sub _read {
local *FH;
open( FH, '<', $_[0] ) or die "open($_[0]): $!";
+ binmode FH;
my $string = do { local $/; <FH> };
close FH or die "close($_[0]): $!";
return $string;
}
-END_NEW
-sub _read {
- local *FH;
- open( FH, "< $_[0]" ) or die "open($_[0]): $!";
- my $string = do { local $/; <FH> };
- close FH or die "close($_[0]): $!";
- return $string;
-}
-END_OLD
sub _readperl {
my $string = Module::Install::_read($_[0]);
@@ -411,30 +403,19 @@
return $string;
}
-# Done in evals to avoid confusing Perl::MinimumVersion
-eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@;
sub _write {
local *FH;
open( FH, '>', $_[0] ) or die "open($_[0]): $!";
+ binmode FH;
foreach ( 1 .. $#_ ) {
print FH $_[$_] or die "print($_[0]): $!";
}
close FH or die "close($_[0]): $!";
}
-END_NEW
-sub _write {
- local *FH;
- open( FH, "> $_[0]" ) or die "open($_[0]): $!";
- foreach ( 1 .. $#_ ) {
- print FH $_[$_] or die "print($_[0]): $!";
- }
- close FH or die "close($_[0]): $!";
-}
-END_OLD
# _version is for processing module versions (eg, 1.03_05) not
# Perl versions (eg, 5.8.1).
-sub _version ($) {
+sub _version {
my $s = shift || 0;
my $d =()= $s =~ /(\.)/g;
if ( $d >= 2 ) {
@@ -450,12 +431,12 @@
return $l + 0;
}
-sub _cmp ($$) {
- _version($_[0]) <=> _version($_[1]);
+sub _cmp {
+ _version($_[1]) <=> _version($_[2]);
}
# Cloned from Params::Util::_CLASS
-sub _CLASS ($) {
+sub _CLASS {
(
defined $_[0]
and
@@ -467,4 +448,4 @@
1;
-# Copyright 2008 - 2011 Adam Kennedy.
+# Copyright 2008 - 2012 Adam Kennedy.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Refresh-0.17/lib/Module/Refresh.pm
new/Module-Refresh-0.18/lib/Module/Refresh.pm
--- old/Module-Refresh-0.17/lib/Module/Refresh.pm 2011-10-26
14:36:15.000000000 +0200
+++ new/Module-Refresh-0.18/lib/Module/Refresh.pm 2022-05-09
21:39:56.000000000 +0200
@@ -3,7 +3,7 @@
use strict;
use vars qw( $VERSION %CACHE );
-$VERSION = "0.17";
+$VERSION = "0.18";
BEGIN {
@@ -163,6 +163,9 @@
my $self = shift;
my $module_pm = shift;
+ # In case the module was not loaded successfully.
+ return unless defined $INC{$module_pm};
+
$CACHE{$module_pm} = $self->mtime( $INC{$module_pm} );
}