diff options
author | 2014-03-24 15:05:12 +0000 | |
---|---|---|
committer | 2014-03-24 15:05:12 +0000 | |
commit | e9ce384231aabe5c5a622aa68cef46f2c5bfdb4a (patch) | |
tree | 5029388537325eaad6674da4dab6714cda1644e5 /gnu/usr.bin/perl/cpan/Module-Build | |
parent | Import perl-5.18.2 (diff) | |
download | wireguard-openbsd-e9ce384231aabe5c5a622aa68cef46f2c5bfdb4a.tar.xz wireguard-openbsd-e9ce384231aabe5c5a622aa68cef46f2c5bfdb4a.zip |
Merge perl-5.18.2 plus local patches, remove old files
OK espie@ sthen@ deraadt@
Diffstat (limited to 'gnu/usr.bin/perl/cpan/Module-Build')
-rw-r--r-- | gnu/usr.bin/perl/cpan/Module-Build/lib/Module/Build/ModuleInfo.pm | 2 | ||||
-rwxr-xr-x | gnu/usr.bin/perl/cpan/Module-Build/t/metadata.t | 19 |
2 files changed, 16 insertions, 5 deletions
diff --git a/gnu/usr.bin/perl/cpan/Module-Build/lib/Module/Build/ModuleInfo.pm b/gnu/usr.bin/perl/cpan/Module-Build/lib/Module/Build/ModuleInfo.pm index a4c66853e89..b36cc388c3d 100644 --- a/gnu/usr.bin/perl/cpan/Module-Build/lib/Module/Build/ModuleInfo.pm +++ b/gnu/usr.bin/perl/cpan/Module-Build/lib/Module/Build/ModuleInfo.pm @@ -4,7 +4,7 @@ package Module::Build::ModuleInfo; use strict; use vars qw($VERSION); -$VERSION = '0.39_01'; +$VERSION = '0.4003'; $VERSION = eval $VERSION; require Module::Metadata; diff --git a/gnu/usr.bin/perl/cpan/Module-Build/t/metadata.t b/gnu/usr.bin/perl/cpan/Module-Build/t/metadata.t index a495f157b43..f9ce95e01ea 100755 --- a/gnu/usr.bin/perl/cpan/Module-Build/t/metadata.t +++ b/gnu/usr.bin/perl/cpan/Module-Build/t/metadata.t @@ -2,7 +2,7 @@ use strict; use lib 't/lib'; -use MBTest tests => 52; +use MBTest tests => 51; blib_load('Module::Build'); blib_load('Module::Build::ConfigData'); @@ -63,7 +63,7 @@ my $mb = Module::Build->new_from_context; { my $mb_prereq = { 'Module::Build' => $Module::Build::VERSION }; my $mb_config_req = { - 'Module::Build' => int($Module::Build::VERSION * 100)/100 + 'Module::Build' => sprintf '%2.2f', int($Module::Build::VERSION * 100)/100 }; my $node; my $output = stdout_stderr_of( sub { @@ -275,7 +275,6 @@ $err = stderr_of( sub { $provides = $mb->find_dist_packages } ); is_deeply($provides, {'Simple' => { file => $simple_file, version => '1.23' }}); # XXX should be 2.34? -like( $err, qr/already declared/, ' with conflicting versions reported' ); # (Same as above three cases except with no corresponding package) @@ -294,9 +293,21 @@ $err = stderr_of( sub { $provides = $mb->find_dist_packages } ); is_deeply($provides, {'Foo' => { file => $simple_file, version => '1.23' }}); # XXX should be 2.34? -like( $err, qr/already declared/, ' with conflicting versions reported' ); +# Missing version should not show up in provides as version "0" +$dist->change_file( 'lib/Simple.pm', <<'---' ); +package Foo; +$VERSION = undef; +1; +--- +$dist->regen( clean => 1 ); +$err = stderr_of( sub { $mb = new_build() } ); +$err = stderr_of( sub { $provides = $mb->find_dist_packages } ); +is_deeply($provides, + {'Foo' => { file => $simple_file } }, + "undef \$VERSION is omitted from 'provides'" +); ############################## Multiple Modules |