This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Module::Build to CPAN version 0.3800
authorDavid Golden <dagolden@cpan.org>
Tue, 8 Mar 2011 02:24:15 +0000 (21:24 -0500)
committerDavid Golden <dagolden@cpan.org>
Tue, 8 Mar 2011 02:24:15 +0000 (21:24 -0500)
[DELTA]

0.3800 - Sat Mar  5 15:11:41 EST 2011

  Summary of major changes since 0.3624:

    [ENHANCEMENTS]

    - Generates META.json and MYMETA.json consistent with version 2 of the
      CPAN Meta Spec. [David Golden]

  Also in this release:

  [BUG FIXES]

  - Autogenerated documentation no longer includes private actions from
    Module::Build's own release subclass. [Report by Timothy Appnel,
    fix by David Golden]

0.37_06 - Mon Feb 28 21:43:31 EST 2011

  [BUG FIXES]

  - prerequisites with the empty string instead of a version are
    normalized to "0".  (RT#65909)

  [OTHER]

  - More Pod typo/link fixes [Hongwen Qiu]

32 files changed:
MANIFEST
Porting/Maintainers.pl
cpan/Module-Build/Changes
cpan/Module-Build/lib/Module/Build.pm
cpan/Module-Build/lib/Module/Build/API.pod
cpan/Module-Build/lib/Module/Build/Base.pm
cpan/Module-Build/lib/Module/Build/Compat.pm
cpan/Module-Build/lib/Module/Build/Config.pm
cpan/Module-Build/lib/Module/Build/Cookbook.pm
cpan/Module-Build/lib/Module/Build/Dumper.pm
cpan/Module-Build/lib/Module/Build/ModuleInfo.pm
cpan/Module-Build/lib/Module/Build/Notes.pm
cpan/Module-Build/lib/Module/Build/PPMMaker.pm
cpan/Module-Build/lib/Module/Build/Platform/Amiga.pm
cpan/Module-Build/lib/Module/Build/Platform/Default.pm
cpan/Module-Build/lib/Module/Build/Platform/EBCDIC.pm
cpan/Module-Build/lib/Module/Build/Platform/MPEiX.pm
cpan/Module-Build/lib/Module/Build/Platform/MacOS.pm
cpan/Module-Build/lib/Module/Build/Platform/RiscOS.pm
cpan/Module-Build/lib/Module/Build/Platform/Unix.pm
cpan/Module-Build/lib/Module/Build/Platform/VMS.pm
cpan/Module-Build/lib/Module/Build/Platform/VOS.pm
cpan/Module-Build/lib/Module/Build/Platform/Windows.pm
cpan/Module-Build/lib/Module/Build/Platform/aix.pm
cpan/Module-Build/lib/Module/Build/Platform/cygwin.pm
cpan/Module-Build/lib/Module/Build/Platform/darwin.pm
cpan/Module-Build/lib/Module/Build/Platform/os2.pm
cpan/Module-Build/lib/Module/Build/PodParser.pm
cpan/Module-Build/lib/inc/latest.pm
cpan/Module-Build/lib/inc/latest/private.pm
cpan/Module-Build/t/properties/requires.t [new file with mode: 0644]
pod/perldelta.pod

index 1bd14f5..a19bc36 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1638,6 +1638,7 @@ cpan/Module-Build/t/properties/license.t
 cpan/Module-Build/t/properties/module_name.t
 cpan/Module-Build/t/properties/needs_compiler.t
 cpan/Module-Build/t/properties/release_status.t
+cpan/Module-Build/t/properties/requires.t
 cpan/Module-Build/t/properties/share_dir.t
 cpan/Module-Build/t/README.pod
 cpan/Module-Build/t/resume.t
index 670849c..84a479c 100755 (executable)
@@ -1037,7 +1037,7 @@ use File::Glob qw(:case);
     'Module::Build' =>
        {
        'MAINTAINER'    => 'kwilliams',
-       'DISTRIBUTION'  => 'DAGOLDEN/Module-Build-0.37_05.tar.gz',
+       'DISTRIBUTION'  => 'DAGOLDEN/Module-Build-0.3800.tar.gz',
        'FILES'         => q[cpan/Module-Build],
        'EXCLUDED'      => [
                qw{ t/par.t t/signature.t },
index df93b11..9df6786 100644 (file)
@@ -1,5 +1,33 @@
 Revision history for Perl extension Module::Build.
 
+0.3800 - Sat Mar  5 15:11:41 EST 2011
+
+  Summary of major changes since 0.3624:
+
+    [ENHANCEMENTS]
+
+    - Generates META.json and MYMETA.json consistent with version 2 of the
+      CPAN Meta Spec. [David Golden]
+
+  Also in this release:
+
+  [BUG FIXES]
+
+  - Autogenerated documentation no longer includes private actions from
+    Module::Build's own release subclass. [Report by Timothy Appnel,
+    fix by David Golden]
+
+0.37_06 - Mon Feb 28 21:43:31 EST 2011
+
+  [BUG FIXES]
+
+  - prerequisites with the empty string instead of a version are
+    normalized to "0".  (RT#65909)
+
+  [OTHER]
+
+  - More Pod typo/link fixes [Hongwen Qiu]
+
 0.37_05 - Sat Feb 19 20:43:23 EST 2011
 
   [BUG FIXES]
index 95b919c..14db926 100644 (file)
@@ -16,7 +16,7 @@ use Module::Build::Base;
 
 use vars qw($VERSION @ISA);
 @ISA = qw(Module::Build::Base);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 
 
@@ -114,28 +114,25 @@ This illustrates initial configuration and the running of three
 'actions'.  In this case the actions run are 'build' (the default
 action), 'test', and 'install'.  Other actions defined so far include:
 
-  build                          manifest_skip
-  checkchanges                   manpages
-  checkgit                       pardist
-  clean                          patch_blead
-  code                           ppd
-  config_data                    ppmdist
-  diff                           prereq_data
-  dist                           prereq_report
-  distcheck                      pure_install
-  distclean                      realclean
-  distdir                        retest
-  distinstall                    skipcheck
-  distmeta                       tag_git
-  distsign                       test
-  disttest                       testall
-  docs                           testcover
-  fakeinstall                    testdb
-  help                           testpod
-  html                           testpodcoverage
-  install                        upload
+  build                          manifest
+  clean                          manifest_skip
+  code                           manpages
+  config_data                    pardist
+  diff                           ppd
+  dist                           ppmdist
+  distcheck                      prereq_data
+  distclean                      prereq_report
+  distdir                        pure_install
+  distinstall                    realclean
+  distmeta                       retest
+  distsign                       skipcheck
+  disttest                       test
+  docs                           testall
+  fakeinstall                    testcover
+  help                           testdb
+  html                           testpod
+  install                        testpodcoverage
   installdeps                    versioninstall
-  manifest
 
 You can run the 'help' action for a complete list of actions.
 
index 3494cb9..29d2f35 100644 (file)
@@ -1718,8 +1718,8 @@ Examples:
 [version 0.32]
 
 Returns a reference to a hash describing all prerequisites.  The keys of the
-hash will the various prerequisite types ('requires', 'build_requires',
-'configure_requires', 'recommends', or 'conflicts') and the values will
+hash will be the various prerequisite types ('requires', 'build_requires',
+'configure_requires', 'recommends', or 'conflicts') and the values will be
 references to hashes of module names and version numbers.  Only prerequisites
 types that are defined will be included.  The C<prereq_data> action is just a
 thin wrapper around the C<prereq_data()> method and dumps the hash as a string
@@ -2015,8 +2015,7 @@ accessor methods for the following properties:
 If you would like to add other useful metadata, C<Module::Build>
 supports this with the C<meta_add> and C<meta_merge> arguments to
 L</new()>. The authoritative list of supported metadata can be found at
-L<http://module-build.sourceforge.net/META-spec-current.html>, but for
-convenience - here are a few of the more useful ones:
+L<CPAN::META::Spec> but for convenience - here are a few of the more useful ones:
 
 =over 4
 
@@ -2025,17 +2024,13 @@ convenience - here are a few of the more useful ones:
 For describing the distribution using keyword (or "tags") in order to
 make CPAN.org indexing and search more efficient and useful.
 
-See L<http://module-build.sourceforge.net/META-spec-current.html#keywords>.
-
 =item resources
 
 A list of additional resources available for users of the
 distribution. This can include links to a homepage on the web, a
-bug tracker, the repository location, a even subscription page for the
+bug tracker, the repository location, and even a subscription page for the
 distribution mailing list.
 
-See L<http://module-build.sourceforge.net/META-spec-current.html#resources>.
-
 =back
 
 
@@ -2058,6 +2053,6 @@ perl(1), L<Module::Build>(3), L<Module::Build::Authoring>(3),
 L<Module::Build::Cookbook>(3), L<ExtUtils::MakeMaker>(3)
 
 F<META.yml> Specification:
-L<http://module-build.sourceforge.net/META-spec-current.html>
+L<CPAN::META::Spec>
 
 =cut
index ef93b88..fba916a 100644 (file)
@@ -4,7 +4,7 @@ package Module::Build::Base;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 BEGIN { require 5.00503 }
 
@@ -1931,7 +1931,7 @@ sub create_mymeta {
     }
     $mymeta->{dynamic_config} = 0;
     $mymeta->{generated_by} = "Module::Build version $Module::Build::VERSION";
-    $meta_obj = CPAN::Meta->new( $mymeta );
+    eval { $meta_obj = CPAN::Meta->new( $mymeta, { lazy_validation => 1 } ) }
   }
   # or generate from scratch, ignoring errors if META doesn't exist
   else {
@@ -4593,7 +4593,7 @@ sub write_metafile {
 
 sub normalize_version {
   my ($self, $version) = @_;
-  $version = 0 unless defined $version;
+  $version = 0 unless defined $version and length $version;
 
   if ( $version =~ /[=<>!,]/ ) { # logic, not just version
     # take as is without modification
index 6c44bf8..1863b55 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Compat;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 
 use File::Basename ();
 use File::Spec;
index 55037be..b36e767 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Config;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Config;
 
index 45eadd5..9ead165 100644 (file)
@@ -1,7 +1,7 @@
 package Module::Build::Cookbook;
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 
 
 =head1 NAME
index 9891288..df45985 100644 (file)
@@ -1,7 +1,7 @@
 package Module::Build::Dumper;
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 
 # This is just a split-out of a wrapper function to do Data::Dumper
 # stuff "the right way".  See:
index 59a204e..e15c010 100644 (file)
@@ -4,7 +4,7 @@ package Module::Build::ModuleInfo;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 
 require Module::Metadata;
index 92fa7c0..1165799 100644 (file)
@@ -4,7 +4,7 @@ package Module::Build::Notes;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Data::Dumper;
 use IO::File;
index 65e15a4..20f0b61 100644 (file)
@@ -5,7 +5,7 @@ use Config;
 use vars qw($VERSION);
 use IO::File;
 
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 
 # This code is mostly borrowed from ExtUtils::MM_Unix 6.10_03, with a
index 00e037f..a4b9541 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::Amiga;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 
index 7a52bf7..b4d2ca2 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::Default;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 
index d68b185..a030ba9 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::EBCDIC;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 
index a00be35..33fae1c 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::MPEiX;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 
index 9844a02..fc205d3 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::MacOS;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 use vars qw(@ISA);
index 34313ec..94f8458 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::RiscOS;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 
index c76989a..956c64e 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::Unix;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 
index 5a4aa32..bf2118b 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::VMS;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 use Config;
index 7d1b619..fd809c0 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::VOS;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Base;
 
index 2d3e6f8..2924f9d 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::Windows;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 
 use Config;
index 4cd7844..59eec0d 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::aix;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Platform::Unix;
 
index 6f10fe3..7b76804 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::cygwin;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Platform::Unix;
 
index 42b1b08..5c9a177 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::darwin;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Platform::Unix;
 
index 1ad990e..b78d153 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::Platform::os2;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use Module::Build::Platform::Unix;
 
index a0052fc..5bba10a 100644 (file)
@@ -2,7 +2,7 @@ package Module::Build::PodParser;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 use vars qw(@ISA);
 
index f6ee028..94802e7 100644 (file)
@@ -1,7 +1,7 @@
 package inc::latest;
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 
 use Carp;
index 8077259..1e40b29 100644 (file)
@@ -1,7 +1,7 @@
 package inc::latest::private;
 use strict;
 use vars qw($VERSION);
-$VERSION = '0.37_05';
+$VERSION = '0.3800';
 $VERSION = eval $VERSION;
 
 use File::Spec;
diff --git a/cpan/Module-Build/t/properties/requires.t b/cpan/Module-Build/t/properties/requires.t
new file mode 100644 (file)
index 0000000..72a2e6d
--- /dev/null
@@ -0,0 +1,54 @@
+# sample.t -- a sample test file for Module::Build
+
+use strict;
+use lib 't/lib';
+use MBTest;
+use DistGen;
+
+plan tests => 4;
+
+# Ensure any Module::Build modules are loaded from correct directory
+blib_load('Module::Build');
+
+my ($dist, $mb, $prereqs);
+
+#--------------------------------------------------------------------------#
+# try undefined prereq version
+#--------------------------------------------------------------------------#
+
+$dist = DistGen->new( name => 'Simple::Requires' );
+
+$dist->change_build_pl(
+  module_name => 'Simple::Requires',
+  requires => {
+    'File::Basename' => undef,
+  },
+)->regen;
+
+$dist->chdir_in;
+
+$mb = $dist->new_from_context();
+isa_ok( $mb, "Module::Build" );
+
+$prereqs = $mb->_normalize_prereqs;
+is($prereqs->{requires}{'File::Basename'}, 0, "undef prereq converted to 0");
+
+#--------------------------------------------------------------------------#
+# try empty string prereq version
+#--------------------------------------------------------------------------#
+
+$dist->change_build_pl(
+  module_name => 'Simple::Requires',
+  requires => {
+    'File::Basename' => '',
+  },
+)->regen;
+
+$mb = $dist->new_from_context();
+isa_ok( $mb, "Module::Build" );
+
+$prereqs = $mb->_normalize_prereqs;
+is($prereqs->{requires}{'File::Basename'}, 0, "empty string prereq converted to 0");
+
+
+# vim:ts=2:sw=2:et:sta:sts=2
index 9f69193..1b88b4b 100644 (file)
@@ -138,6 +138,10 @@ C<Math::BigInt::FastCalc> has been upgraded from version 0.24_02 to 0.28
 
 =item *
 
+C<Module::Build> has been upgraded from version 0.37_05 to 0.3800
+
+=item *
+
 C<Test::Harness> has been upgraded from version 3.22 to 3.23
 
 =item *