In perl.git, the branch blead has been updated <https://perl5.git.perl.org/perl.git/commitdiff/301bcfdaa73a979264d6ee1845c40043ddd464eb?hp=d1f1f359ff734b2a99fa0f1933c26ce5fb2bbb8f>
- Log ----------------------------------------------------------------- commit 301bcfdaa73a979264d6ee1845c40043ddd464eb Author: Father Chrysostomos <spr...@cpan.org> Date: Mon Oct 30 13:37:21 2017 -0700 make_ext.pl: Use version.pm for version cmp We do a version comparison to determine whether Makefile.PL needs to be run (in case a module version changed). The simple string compar- ison we have done up till now fails if the two version numbers differ simply by a trailing zero (as currently happens with DB_File, which is at version 1.840, with XS_VERSION set to 1.84. Since version.pm’s routines are compiled into miniperl, there is no reason not to do this ‘properly’, and it stops multiple ‘make’ invocations from rebuilding DB_File again, and again.... ----------------------------------------------------------------------- Summary of changes: make_ext.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_ext.pl b/make_ext.pl index 80d8f68aa3..9bc4718d52 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -303,7 +303,7 @@ sub build_extension { last unless defined $oldv; require ExtUtils::MM_Unix; defined (my $newv = parse_version MM $vmod) or last; - if ($newv ne $oldv) { + if (version->parse($newv) ne $oldv) { close $mfh or die "close $makefile: $!"; _unlink($makefile); { -- Perl5 Master Repository