This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Term::ReadLine to write_buildcustomize.pl.
authorCraig A. Berry <craigberry@mac.com>
Sat, 3 Dec 2011 03:30:30 +0000 (21:30 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sat, 3 Dec 2011 03:30:30 +0000 (21:30 -0600)
If the build fails while building extensions, it's nice to have
the debugger available to help figure out what went wrong.  You
couldn't do that before because lib/perl5db.pl depends on
Term::ReadLine, which wouldn't be available since it hadn't been
built yet.  This commit makes Term::ReadLine available via the
same mechanism that makes other libraries available to miniperl
during the build.

An alternative would be to remove the debugger's dependency on
Term::ReadLine, but that would be more work and more risk for a
situation that hopefully doesn't come up that often.

write_buildcustomize.pl

index ee3eea5..3d773a5 100644 (file)
@@ -16,6 +16,8 @@ require File::Spec::Functions;
 # needed to build the nonxs modules
 # After which, all nonxs modules are in lib, which was always sufficient to
 # allow miniperl to build everything else.
+# Term::ReadLine is not here for building but for allowing the debugger to
+# run under miniperl when nothing but miniperl will build :-(.
 
 my @toolchain = qw(cpan/AutoLoader/lib
                   dist/Carp/lib
@@ -26,6 +28,7 @@ my @toolchain = qw(cpan/AutoLoader/lib
                   dist/ExtUtils-Manifest/lib
                   cpan/File-Path/lib
                   ext/re
+                  dist/Term-ReadLine/lib
                   );
 
 # Used only in ExtUtils::Liblist::Kid::_win32_ext()