Numify $Socket::VERSION

Programming / Compilers / PERL - Dagfinn Ilmari Mannsåker [ilmari.org] - 28 October 2017 15:23 EDT

We have a customised version with _ in the version, which causes warnings from modules that check it numerically instead of calling
->VERSION(...).

###

diff --git a/cpan/Socket/Socket.pm b/cpan/Socket/Socket.pm
index 5b187facf2..583b9f9d56 100644
--- a/cpan/Socket/Socket.pm
+++ b/cpan/Socket/Socket.pm
@@ -4,6 +4,7 @@ use strict;
{ use 5.006001; }

our $VERSION = '2.020_03'; # patched in perl5.git
+$VERSION =~ tr/_//d; # make $VERSION numeric

=head1 NAME

diff --git a/t/porting/customized.dat b/t/porting/customized.dat
index 335796636e..e4e3dc22a2 100644
--- a/t/porting/customized.dat
+++ b/t/porting/customized.dat
@@ -15,7 +15,7 @@ Pod::Checker cpan/Pod-Checker/t/pod/selfcheck.t 8ce3cfd38e4b9bcf5bc7fe7f2a14195e
Pod::Checker cpan/Pod-Checker/t/pod/testcmp.pl a0cd5c8eca775c7753f4464eee96fa916e3d8a16
Pod::Checker cpan/Pod-Checker/t/pod/testpchk.pl b2072c7f4379fd050e15424175d7cac5facf5b3b
Pod::Perldoc cpan/Pod-Perldoc/lib/Pod/Perldoc.pm 582be34c077c9ff44d99914724a0cc2140bcd48c
-Socket cpan/Socket/Socket.pm 98e38176d745c38282907f391c077298f5a3d0ba
+Socket cpan/Socket/Socket.pm 65c0af9d27d30652a5e73f0a05c881a240240dd4
Socket cpan/Socket/Socket.xs edd4fed212785f11c5c2095a75941dad27d586d9
autodie cpan/autodie/t/mkdir.t 9e70d2282a3cc7d76a78bf8144fccba20fb37dac
perlfaq cpan/perlfaq/lib/perlfaq5.pod bcc1b6af3b6dff3973643acf8d5e741463374123

26d5d9442c Numify $Socket::VERSION
cpan/Socket/Socket.pm | 1 +
t/porting/customized.dat | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)

Upstream: perl5.git.perl.org


  • Share