Update Extutils-MakeMaker to CPAN version 6.80
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Tue, 15 Oct 2013 15:19:53 +0000 (16:19 +0100)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Tue, 15 Oct 2013 15:21:48 +0000 (16:21 +0100)
  [DELTA]

6.80 Tue Oct 15 16:04:50 BST 2013

    No changes from 6.79_04

6.79_04 Fri Oct 11 18:57:51 BST 2013
    Bug fixes:
    * Add CP_NONEMPTY to the list of tools in Makefile

6.79_03 Fri Oct 11 13:56:53 BST 2013
    Bug fixes:
    * don't copy .bs portably :)

6.79_02 Fri Oct 11 12:58:01 BST 2013
    Bug fixes:
    * RT#28992 don't copy .bs files if they are empty

31 files changed:
Porting/Maintainers.pl
cpan/ExtUtils-MakeMaker/Changes
cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command/MM.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_AIX.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_BeOS.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Cygwin.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_DOS.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Darwin.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_MacOS.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_NW5.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_OS2.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_QNX.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_UWIN.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_VMS.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_VOS.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Win32.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Win95.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MY.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Config.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/FAQ.pod
cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Tutorial.pod
cpan/ExtUtils-MakeMaker/lib/ExtUtils/Mkbootstrap.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/Mksymlists.pm
cpan/ExtUtils-MakeMaker/lib/ExtUtils/testlib.pm
pod/perldelta.pod

index ebfc967..10abd10 100755 (executable)
@@ -594,7 +594,7 @@ use File::Glob qw(:case);
     },
 
     'ExtUtils::MakeMaker' => {
-        'DISTRIBUTION' => 'BINGOS/ExtUtils-MakeMaker-6.79_01.tar.gz',
+        'DISTRIBUTION' => 'BINGOS/ExtUtils-MakeMaker-6.80.tar.gz',
         'FILES'        => q[cpan/ExtUtils-MakeMaker],
         'EXCLUDED'     => [
             qr{^t/lib/Test/},
index 0d89292..b03d38a 100644 (file)
@@ -1,3 +1,19 @@
+6.80 Tue Oct 15 16:04:50 BST 2013
+
+    No changes from 6.79_04
+
+6.79_04 Fri Oct 11 18:57:51 BST 2013
+    Bug fixes:
+    * Add CP_NONEMPTY to the list of tools in Makefile
+
+6.79_03 Fri Oct 11 13:56:53 BST 2013
+    Bug fixes:
+    * don't copy .bs portably :)
+
+6.79_02 Fri Oct 11 12:58:01 BST 2013
+    Bug fixes:
+    * RT#28992 don't copy .bs files if they are empty
+
 6.79_01 Tue Oct  1 14:59:27 BST 2013
     VMS fixes:
     * Remove MM_TEST_ROOT feature for VMS test support
index 880ae24..7d004fe 100644 (file)
@@ -9,8 +9,8 @@ require Exporter;
 our @ISA = qw(Exporter);
 
 our @EXPORT  = qw(test_harness pod2man perllocal_install uninstall
-                  warn_if_old_packlist);
-our $VERSION = '6.79_01';
+                  warn_if_old_packlist test_s cp_nonempty);
+our $VERSION = '6.80';
 
 my $Is_VMS = $^O eq 'VMS';
 
@@ -272,8 +272,43 @@ WARNING
 
 }
 
+=item B<test_s>
+
+   perl "-MExtUtils::Command::MM" -e test_s <file>
+
+Tests if a file exists and is not empty (size > 0).
+I<Exits> with 0 if it does, 1 if it does not.
+
+=cut
+
+sub test_s {
+  exit(-s $ARGV[0] ? 0 : 1);
+}
+
+=item B<cp_nonempty>
+
+  perl "-MExtUtils::Command::MM" -e cp_nonempty <srcfile> <dstfile> <perm>
+
+Tests if the source file exists and is not empty (size > 0). If it is not empty
+it copies it to the given destination with the given permissions.
+
 =back
 
 =cut
 
+sub cp_nonempty {
+  my @args = @ARGV;
+  return 0 unless -s $args[0];
+  require ExtUtils::Command;
+  {
+    local @ARGV = @args[0,1];
+    ExtUtils::Command::cp(@ARGV);
+  }
+  {
+    local @ARGV = @args[2,1];
+    ExtUtils::Command::chmod(@ARGV);
+  }
+}
+
+
 1;
index f5cf39b..76785a3 100644 (file)
@@ -2,7 +2,7 @@ package ExtUtils::Liblist;
 
 use strict;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 use File::Spec;
 require ExtUtils::Liblist::Kid;
index 765cad9..d31a660 100644 (file)
@@ -11,7 +11,7 @@ use 5.006;
 
 use strict;
 use warnings;
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 use ExtUtils::MakeMaker::Config;
 use Cwd 'cwd';
index be2d244..53b6486 100644 (file)
@@ -3,7 +3,7 @@ package ExtUtils::MM;
 use strict;
 use ExtUtils::MakeMaker::Config;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::Liblist;
 require ExtUtils::MakeMaker;
index fe95af8..58e2698 100644 (file)
@@ -1,7 +1,7 @@
 package ExtUtils::MM_AIX;
 
 use strict;
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Unix;
 our @ISA = qw(ExtUtils::MM_Unix);
index b9b87c9..efa3cb9 100644 (file)
@@ -1,7 +1,7 @@
 package ExtUtils::MM_Any;
 
 use strict;
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 use Carp;
 use File::Spec;
@@ -532,7 +532,7 @@ clean :: clean_subdirs
 #                    $(INST_BIN) $(INST_SCRIPT)
 #                    $(INST_MAN1DIR) $(INST_MAN3DIR)
 #                    $(INST_LIBDIR) $(INST_ARCHLIBDIR) $(INST_AUTODIR)
-#                    $(INST_STATIC) $(INST_DYNAMIC) $(INST_BOOT)
+#                    $(INST_STATIC) $(INST_DYNAMIC)
 #                 );
 
 
@@ -727,7 +727,7 @@ sub dynamic {
 
     my($self) = shift;
     '
-dynamic :: $(FIRST_MAKEFILE) $(INST_DYNAMIC) $(INST_BOOT)
+dynamic :: $(FIRST_MAKEFILE) $(BOOTSTRAP) $(INST_DYNAMIC)
        $(NOECHO) $(NOOP)
 ';
 }
@@ -2045,7 +2045,9 @@ Defines at least these macros.
   RM_RF             Remove a directory
   TOUCH             Update a file's timestamp
   TEST_F            Test for a file's existence
+  TEST_S            Test the size of a file
   CP                Copy a file
+  CP_NONEMPTY       Copy a file if it is not empty
   MV                Move a file
   CHMOD             Change permissions on a file
   FALSE             Exit with non-zero
@@ -2067,6 +2069,8 @@ sub init_tools {
     $self->{RM_F}     ||= $self->oneliner('rm_f',  ["-MExtUtils::Command"]);
     $self->{RM_RF}    ||= $self->oneliner('rm_rf', ["-MExtUtils::Command"]);
     $self->{TEST_F}   ||= $self->oneliner('test_f', ["-MExtUtils::Command"]);
+    $self->{TEST_S}   ||= $self->oneliner('test_s', ["-MExtUtils::Command::MM"]);
+    $self->{CP_NONEMPTY} ||= $self->oneliner('cp_nonempty', ["-MExtUtils::Command::MM"]);
     $self->{FALSE}    ||= $self->oneliner('exit 1');
     $self->{TRUE}     ||= $self->oneliner('exit 0');
 
@@ -2214,6 +2218,7 @@ sub tools_other {
                       USEMAKEFILE
                       PM_FILTER
                       FIXIN
+                      CP_NONEMPTY
                     } )
     {
         next unless defined $self->{$tool};
index 687c2c6..16edee4 100644 (file)
@@ -26,7 +26,7 @@ require ExtUtils::MM_Any;
 require ExtUtils::MM_Unix;
 
 our @ISA = qw( ExtUtils::MM_Any ExtUtils::MM_Unix );
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 
 =item os_flavor
index 0914501..a2f4fde 100644 (file)
@@ -9,7 +9,7 @@ require ExtUtils::MM_Unix;
 require ExtUtils::MM_Win32;
 our @ISA = qw( ExtUtils::MM_Unix );
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 
 =head1 NAME
index 5b2eb6b..aaff54b 100644 (file)
@@ -2,7 +2,7 @@ package ExtUtils::MM_DOS;
 
 use strict;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Any;
 require ExtUtils::MM_Unix;
index c8e4d84..e474d55 100644 (file)
@@ -7,7 +7,7 @@ BEGIN {
     our @ISA = qw( ExtUtils::MM_Unix );
 }
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 
 =head1 NAME
index 5b5c63f..55419a7 100644 (file)
@@ -2,7 +2,7 @@ package ExtUtils::MM_MacOS;
 
 use strict;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 sub new {
     die <<'UNSUPPORTED';
index 93bf593..a8edc1a 100644 (file)
@@ -22,7 +22,7 @@ use strict;
 use ExtUtils::MakeMaker::Config;
 use File::Basename;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Win32;
 our @ISA = qw(ExtUtils::MM_Win32);
index 9dfd3d5..6548a92 100644 (file)
@@ -5,7 +5,7 @@ use strict;
 use ExtUtils::MakeMaker qw(neatvalue);
 use File::Spec;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Any;
 require ExtUtils::MM_Unix;
index e5e5a04..df5ea1f 100644 (file)
@@ -1,7 +1,7 @@
 package ExtUtils::MM_QNX;
 
 use strict;
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Unix;
 our @ISA = qw(ExtUtils::MM_Unix);
index 1cf24e6..c34e467 100644 (file)
@@ -1,7 +1,7 @@
 package ExtUtils::MM_UWIN;
 
 use strict;
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Unix;
 our @ISA = qw(ExtUtils::MM_Unix);
index 4fc4547..a9bcd47 100644 (file)
@@ -15,7 +15,7 @@ use ExtUtils::MakeMaker qw($Verbose neatvalue);
 
 # If we make $VERSION an our variable parse_version() breaks
 use vars qw($VERSION);
-$VERSION = '6.79_01';
+$VERSION = '6.80';
 $VERSION = eval $VERSION;  ## no critic [BuiltinFunctions::ProhibitStringyEval]
 
 require ExtUtils::MM_Any;
@@ -879,11 +879,6 @@ $(BOOTSTRAP) : $(FIRST_MAKEFILE) $(BOOTDEP) $(INST_ARCHAUTODIR)$(DFSEP).exists
                -e "Mkbootstrap('$(BASEEXT)','$(BSLOADLIBS)');"
        $(NOECHO) $(TOUCH) %s
        $(CHMOD) $(PERM_RW) %s
-
-$(INST_BOOT) : $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).exists
-       $(NOECHO) $(RM_RF) %s
-       - $(CP) $(BOOTSTRAP) %s
-       $(CHMOD) $(PERM_RW) %s
 MAKE_FRAG
 }
 
@@ -915,7 +910,7 @@ OTHERLDFLAGS = '.$ld_opt.$otherldflags.'
 INST_DYNAMIC_DEP = '.$inst_dynamic_dep.'
 INST_DYNAMIC_FIX = '.$ld_fix.'
 
-$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).exists $(EXPORT_LIST) $(PERL_ARCHIVE) $(PERL_ARCHIVE_AFTER) $(INST_DYNAMIC_DEP)
+$(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(INST_ARCHAUTODIR)$(DFSEP).exists $(EXPORT_LIST) $(PERL_ARCHIVE) $(PERL_ARCHIVE_AFTER) $(INST_DYNAMIC_DEP)
 ');
     if ($armaybe ne ':'){
        $ldfrom = 'tmp$(LIB_EXT)';
@@ -963,6 +958,8 @@ MAKE
 
     push @m, <<'MAKE';
        $(CHMOD) $(PERM_RWX) $@
+       $(NOECHO) $(RM_RF) $(BOOTSTRAP)
+       - $(CP_NONEMPTY) $(BOOTSTRAP) $(INST_BOOT) $(PERM_RW)
 MAKE
 
     return join('',@m);
@@ -1761,6 +1758,7 @@ sub init_tools {
     $self->{RM_RF}      ||= "rm -rf";
     $self->{TOUCH}      ||= "touch";
     $self->{TEST_F}     ||= "test -f";
+    $self->{TEST_S}     ||= "test -s";
     $self->{CP}         ||= "cp";
     $self->{MV}         ||= "mv";
     $self->{CHMOD}      ||= "chmod";
index 1d24023..4d1fc10 100644 (file)
@@ -15,7 +15,7 @@ BEGIN {
 
 use File::Basename;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Any;
 require ExtUtils::MM_Unix;
index a8d14d0..f971c1b 100644 (file)
@@ -1,7 +1,7 @@
 package ExtUtils::MM_VOS;
 
 use strict;
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Unix;
 our @ISA = qw(ExtUtils::MM_Unix);
index 3481a2a..2a80c14 100644 (file)
@@ -27,7 +27,7 @@ use ExtUtils::MakeMaker qw( neatvalue );
 require ExtUtils::MM_Any;
 require ExtUtils::MM_Unix;
 our @ISA = qw( ExtUtils::MM_Any ExtUtils::MM_Unix );
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 $ENV{EMXSHELL} = 'sh'; # to run `commands`
 
index 0bbf533..c7add7b 100644 (file)
@@ -2,7 +2,7 @@ package ExtUtils::MM_Win95;
 
 use strict;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require ExtUtils::MM_Win32;
 our @ISA = qw(ExtUtils::MM_Win32);
index fed1dcd..395f996 100644 (file)
@@ -3,7 +3,7 @@ package ExtUtils::MY;
 use strict;
 require ExtUtils::MM;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 our @ISA = qw(ExtUtils::MM);
 
 {
index 5e3f9d9..bf0dc9f 100644 (file)
@@ -18,7 +18,7 @@ our @Overridable;
 my @Prepend_parent;
 my %Recognized_Att_Keys;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 $VERSION = eval $VERSION;  ## no critic [BuiltinFunctions::ProhibitStringyEval]
 
 # Emulate something resembling CVS $Revision$
index 577011b..fc29192 100644 (file)
@@ -2,7 +2,7 @@ package ExtUtils::MakeMaker::Config;
 
 use strict;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 use Config ();
 
index ab34563..056aa1b 100644 (file)
@@ -1,6 +1,6 @@
 package ExtUtils::MakeMaker::FAQ;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 1;
 __END__
index 9666652..9d1ed0c 100644 (file)
@@ -1,6 +1,6 @@
 package ExtUtils::MakeMaker::Tutorial;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 
 =head1 NAME
index 361a8a8..c420f35 100644 (file)
@@ -3,7 +3,7 @@ package ExtUtils::Mkbootstrap;
 # There's just too much Dynaloader incest here to turn on strict vars.
 use strict 'refs';
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 require Exporter;
 our @ISA = ('Exporter');
index 9515f30..61e6b22 100644 (file)
@@ -10,7 +10,7 @@ use Config;
 
 our @ISA = qw(Exporter);
 our @EXPORT = qw(&Mksymlists);
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 sub Mksymlists {
     my(%spec) = @_;
index 9c7ec0f..15b91ae 100644 (file)
@@ -3,7 +3,7 @@ package ExtUtils::testlib;
 use strict;
 use warnings;
 
-our $VERSION = '6.79_01';
+our $VERSION = '6.80';
 
 use Cwd;
 use File::Spec;
index 73163e1..3dcf78f 100644 (file)
@@ -199,7 +199,7 @@ Some POD formatting errors in the documentation have been corrected.
 
 =item *
 
-L<ExtUtils::MakeMaker> has been upgraded from version 6.76 to 6.79_01.
+L<ExtUtils::MakeMaker> has been upgraded from version 6.76 to 6.80.
 
 Numerous updates and bug fixes are incorporated.  See the F<Changes> file for
 full details.