develooper Front page | perl.perl5.porters | Postings from March 2014

Re: smoke-me/nicholas/fake-pm_to_blib on VMS

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
March 2, 2014 01:12
Subject:
Re: smoke-me/nicholas/fake-pm_to_blib on VMS
Message ID:
CA+vYcVxB-gUXs9x+g1i5vMmTzWgzKctYnVe+4U3Ozy-wFxFyCA@mail.gmail.com
On Sat, Mar 1, 2014 at 1:22 PM, Nicholas Clark <nick@ccl4.org> wrote:

> Now pushed as a revised branch smoke-me/nicholas/fake-pm_to_blib
>
> The appended commit fixes all the VMS problems for me on the HP machine.
> With it, 81 extensions take the fast path, which is the 80 on *nix plus
> ext/VMS-Filespec

It works for me too as long as I'm not building with a directory with
"blib" in its name.  The smoker that failed at PathTools built its
@INC for miniperl like so:

$ perl -"Ilib" -e "require 'lib/buildcustomize.pl'; print join qq/\n/, @INC;"
SMOKE_BUILD_ROOT:[fake-pm_to_blib.cpan.AutoLoader.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.Carp.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.PathTools]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.PathTools.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.ExtUtils-Command.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.ExtUtils-Install.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.cpan.ExtUtils-MakeMaker.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.ExtUtils-Manifest.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.cpan.File-Path.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.ext.re]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.Term-ReadLine.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.Exporter.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.ext.File-Find.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.cpan.Text-Tabs.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.dist.constant.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib.ext.VMS-Filespec.lib]
SMOKE_BUILD_ROOT:[fake-pm_to_blib]lib
/perl_root/lib/site_perl/VMS_IA64
/perl_root/lib/site_perl
/perl_root/lib/VMS_IA64/5_16_1
/perl_root/lib
.

But the Makefile.PL for PathTools has this line at the top:

BEGIN { @INC = grep {!/blib/} @INC }

which wipes out all of the entries in @INC that have fake-pm_to_blib
in the name:

$ perl -"Ilib" -e "require 'lib/buildcustomize.pl'; @INC = grep
{!/blib/} @INC; print join qq/\n/, @INC;"
/perl_root/lib/site_perl/VMS_IA64
/perl_root/lib/site_perl
/perl_root/lib/VMS_IA64/5_16_1
/perl_root/lib
.

So that's probably a bug in PathTools that only got exercised because
my smokes make directory names based on branch names and you happened
to make a branch name with "blib" in it.

And now for the really good part: build time decreased by 39%.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About