Hi Teun,
I think this is already fixed in CVS. Version 0.18 had to load each
.pm file to look for $VERSION variables in them (Module::Info did the
real work here, and I think that's where @INC was getting dropped),
whereas the current CVS code will just call an internal
version_from_file() method to find the first $VERSION in the file, like
MakeMaker and PAUSE and search.cpan.org do.
It would be helpful if you could try the current CVS code and verify
that it works.
Thanks.
-Ken
On Monday, April 14, 2003, at 07:23 AM, Teun Burgers wrote:
> Hello
>
> When I type:
>
> perl Build test
>
> it can't find B::Module::Info.
> Here is the result of the find command:
>
>> find ~/alpha/lib/perl5 -name Info.pm
> /home/snuf3/aburgers/alpha/lib/perl5/MP3/Info.pm
> /home/snuf3/aburgers/alpha/lib/perl5/B/Module/Info.pm
> /home/snuf3/aburgers/alpha/lib/perl5/Module/Info.pm
>
> The attached Build script does have
> /home/snuf3/aburgers/alpha/lib/perl5
> in the @INC array.
>
> However looking at the test results, it appears
> /home/snuf3/aburgers/alpha/lib/perl5
> gets stripped from @INC during testing.
>
> t/basic.........ok
> t/runthrough....B::Module::Info,packages use failed with 2 saying:
> Can't locate B/Module/Info.pm in @INC (@INC contains:
> /export/home3/aburgers/.cpan/build/Module-Build-0.18/blib/lib
> /home/snuf3/aburgers/alpha/lib/perl5/5.8.0/alpha-dec_osf
> /home/snuf3/aburgers/alpha/lib/perl5/5.8.0
> /home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.8.0/alpha-dec_osf
> /home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.8.0
> /home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.6.1
> /home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.6.0
> /home/snuf3/aburgers/alpha/lib/perl5/site_perl .) at (eval 1) line 18.
>
> Why and where does this path element get stripped?
>
> regards,
>
> Teun Burgers#!/home/snuf3/aburgers/alpha/bin/perl
>
> BEGIN {
> $^W = 1; # Use warnings
> chdir('/export/home3/aburgers/.cpan/build/Module-Build-0.18') or die
> 'Cannot chdir to /export/home3/aburgers/.cpan/build/Module-Build-0.18:
> '.$!;
> @INC = ('lib',
> '/home/snuf3/aburgers/alpha/lib/perl5/5.8.0/alpha-dec_osf',
> '/home/snuf3/aburgers/alpha/lib/perl5/5.8.0',
> '/home/snuf3/aburgers/alpha/lib/perl5',
> '/home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.8.0/alpha-dec_osf',
> '/home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.8.0',
> '/home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.6.1',
> '/home/snuf3/aburgers/alpha/lib/perl5/site_perl/5.6.0',
> '/home/snuf3/aburgers/alpha/lib/perl5/site_perl', '.');
> }
>
> use Module::Build;
>
> # This should have just enough arguments to be able to bootstrap the
> rest.
> my $build = resume Module::Build (
> properties => {
> config_dir => '_build',
> build_script => 'Build',
> },
> );
>
> $build->dispatch;
>
|