CC: | Perl Porters <perl5-porters [...] perl.org> |
Subject: | utils/prove loses @INC settings |
Date: | Wed, 25 Jun 2008 17:07:23 -0400 (EDT) |
To: | bug-test-harness [...] rt.cpan.org |
From: | Andy Dougherty <doughera [...] lafayette.edu> |
When building perl, the following used to work:
echo 'use Test;' > try.t
./perl -Ilib utils/prove try.t
It now (bleadperl@34087) fails with
try......Can't locate Test.pm in @INC
where @INC contains the locations where perl will be installed.
But if perl has not yet been installed, then Test.pm can't be found.
In perl-5.8.8, it was sufficient to pass -Ilib to ./perl.
In 5.10.x, it is apparently necessary to do
./perl -Ilib utils/prove -Ilib try.t
That's right: -Ilib must be specified twice. Without the first one,
perl complains 'Can't locate strict.pm'. I don't know how, why, or when
utils/prove loses track of the ./lib directory.
--
Andy Dougherty doughera@lafayette.edu