In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/850e14d313dc5493e5162c407f21ae0a9fec2805?hp=92683b8bd24649980234088f109e31c4633c1b67>
- Log ----------------------------------------------------------------- commit 850e14d313dc5493e5162c407f21ae0a9fec2805 Author: David Mitchell <[email protected]> Date: Tue Sep 27 16:43:30 2016 +0100 Cwd.xs: avoid blib better while building RT # 125603 There's an old line in Cwd's Makefile.PL: BEGIN { @INC = grep {!/blib/} @INC } This was added 12 years ago to solve a problem with a static perl and building a newer Cwd (but no-one's quite sure what *exactly* the issue was any more). However, this breaks building perl under a directory that has 'blib' in the pathname. This commit estricts the grep to just exclusing exactly blib/lib and blib/arch. This should hopefully still workaround the static build issue, while no longer breaking perl builds. ----------------------------------------------------------------------- Summary of changes: dist/PathTools/Makefile.PL | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dist/PathTools/Makefile.PL b/dist/PathTools/Makefile.PL index 6cd70fa..71b9a60 100644 --- a/dist/PathTools/Makefile.PL +++ b/dist/PathTools/Makefile.PL @@ -1,5 +1,11 @@ -BEGIN { @INC = grep {!/blib/} @INC } +# See https://rt.cpan.org/Public/Bug/Display.html?id=4681 +# and https://rt.perl.org/Ticket/Display.html?id=125603 +# When installing a newer Cwd on a system with an existing Cwd, +# under some circumstances the old Cwd.pm and the new Cwd.xs could +# get mixed up and SEGVs ensue. + +BEGIN { @INC = grep { $_ ne "blib/arch" and $_ ne "blib/lib" } @INC } require 5.005; use ExtUtils::MakeMaker; -- Perl5 Master Repository
