Re: [Module-build-general] bug in Module-Build-0.18
Status: Beta
Brought to you by:
kwilliams
|
From: jk <bil...@fa...> - 2003-05-10 22:55:11
|
Ken Williams wrote:
>
> On Friday, May 9, 2003, at 05:05 PM, jk wrote:
>
>> 1) When I ran "./Build test" I got a couple of tests fail,
>> indicating they could not find Module::Info.pm. I do have it
>> installed locally (in the /home/me/data/perl58/ tree), and I do
>> have the PERL5LIB environmental variable set to indicate it... is it
>> possible that Module::Build doesn't know about PERL5LIB and doesn't
>> add it to the @INC array?
>
>
> Nope, not possible - but I did figure out what the problem is here.
> I'd seen this problem show up in a couple different ways, and the
> reason is that we chdir() a few times in the testing code, and any
> relative paths in @INC will be messed up if we load modules after that.
>
> The fix for this, which I've applied in CVS, is to convert all the
> @INC paths to absolute paths.
I may be misunderstanding you--if I am, just ignore this--but the paths
specified in my PERL5LIB aren't relative. And as you can see, they
didn't appear to be getting added to @INC, at least that isn't indicated
in the output below.
===========screen output starts here==============
[me@mcc Module-Build-0.18]$ ./Build test
t/basic.........ok
t/runthrough....ok 4/13B::Module::Info,packages use failed with 2 saying:
Can't locate B/Module/Info.pm in @INC (@INC contains:
/home/me/.cpan/sources/authors/id/K/KW/KWILLIAMS/Module-Build-0.18/blib/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
(eval 1) line 18.
BEGIN failed--compilation aborted at (eval 1) line 18.
BEGIN failed--compilation aborted.
t/runthrough....ok 6/13B::Module::Info,packages use failed with 2 saying:
Can't locate B/Module/Info.pm in @INC (@INC contains:
/home/me/.cpan/sources/authors/id/K/KW/KWILLIAMS/Module-Build-0.18/blib/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
(eval 1) line 18.
[me@mcc me]$ env | grep PERL
PERL5LIB=/home/me/data/perl58/lib/perl5/site_perl/5.8.0:/home/me/data/perl58/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi:/home/me/data/perl58/lib/perl5/5.8.0:/home/me/data/perl58/lib/perl5/5.8.0/i386-linux-thread-multi
[me@mcc me]$
============end of screen output================
>
>
>> 2) I originally tried to install Module::Build and various other
>> modules using the CPAN.pm module, but this didn't work because the
>> version of CPAN.pm I have doesn't know anything about using Build.pm
>> rather than make. It would be good to give the CPAN.pm people a
>> heads up about Build.pm so they can support it (this may already
>> have been done).
>
>
> Yeah, as Dave said, this should have worked fine. What happened?
>
>
>
Actually, the CPAN problems could just be due to it not using the
"config=" string prior to the "sitelib=" string on the command line and
problem 1 above.
I tried it again using CPAN and here are the results below. Note that I
am using CPAN version 1.61, I don't know if the Module::Build problems
still exist in the most recent version of CPAN.
The problems appear to be: 1) a couple of the tests fail, and it looks
like the @INC doesn't include the paths from my PERL5LIB variable (same
as above); and
2) It tries to install into the system directory rather than the
local directory as specified in my CPAN config file (other modules
install successfully to the local directory).
Hope this helps.
============cpan output below===========
[me@mcc me]$ !974
perl -MCPAN -e shell
cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support available (try 'install Bundle::CPAN')
cpan> install Module::Build
CPAN: Storable loaded ok
Going to read /home/me/.cpan/Metadata
Database was generated on Thu, 08 May 2003 14:13:17 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://cpan.digisle.net/pub/CPAN/authors/01mailrc.txt.gz
Going to read /home/me/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
ftp://cpan.digisle.net/pub/CPAN/modules/02packages.details.txt.gz
Going to read /home/me/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Sat, 10 May 2003 13:13:28 GMT
There's a new CPAN.pm version (v1.70) available!
[Current version is v1.61]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running...
Fetching with LWP:
ftp://cpan.digisle.net/pub/CPAN/modules/03modlist.data.gz
Going to read /home/me/.cpan/sources/modules/03modlist.data.gz
Going to write /home/me/.cpan/Metadata
Running install for module Module::Build
Running make for K/KW/KWILLIAMS/Module-Build-0.18.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for
/home/me/.cpan/sources/authors/id/K/KW/KWILLIAMS/Module-Build-0.18.tar.gz ok
Scanning cache /home/me/.cpan/build for sizes
Module-Build-0.18/
Module-Build-0.18/Build.PL
Module-Build-0.18/Changes
Module-Build-0.18/INSTALL
Module-Build-0.18/lib/
Module-Build-0.18/lib/Module/
Module-Build-0.18/lib/Module/Build/
Module-Build-0.18/lib/Module/Build/Base.pm
Module-Build-0.18/lib/Module/Build/Compat.pm
Module-Build-0.18/lib/Module/Build/Platform/
Module-Build-0.18/lib/Module/Build/Platform/Amiga.pm
Module-Build-0.18/lib/Module/Build/Platform/darwin.pm
Module-Build-0.18/lib/Module/Build/Platform/Default.pm
Module-Build-0.18/lib/Module/Build/Platform/EBCDIC.pm
Module-Build-0.18/lib/Module/Build/Platform/MacOS.pm
Module-Build-0.18/lib/Module/Build/Platform/MPEiX.pm
Module-Build-0.18/lib/Module/Build/Platform/RiscOS.pm
Module-Build-0.18/lib/Module/Build/Platform/Unix.pm
Module-Build-0.18/lib/Module/Build/Platform/VMS.pm
Module-Build-0.18/lib/Module/Build/Platform/VOS.pm
Module-Build-0.18/lib/Module/Build/Platform/Windows.pm
Module-Build-0.18/lib/Module/Build.pm
Module-Build-0.18/Makefile.PL
Module-Build-0.18/MANIFEST
Module-Build-0.18/META.yml
Module-Build-0.18/README
Module-Build-0.18/t/
Module-Build-0.18/t/basic.t
Module-Build-0.18/t/common.pl
Module-Build-0.18/t/lib/
Module-Build-0.18/t/lib/ModuleBuildOne.pm
Module-Build-0.18/t/MANIFEST
Module-Build-0.18/t/runthrough.t
Module-Build-0.18/t/Sample/
Module-Build-0.18/t/Sample/Build.PL
Module-Build-0.18/t/Sample/lib/
Module-Build-0.18/t/Sample/lib/Sample.pm
Module-Build-0.18/t/Sample/MANIFEST
Module-Build-0.18/t/Sample/META.yml
Module-Build-0.18/t/Sample/script
Module-Build-0.18/t/Sample/test.pl
Module-Build-0.18/t/xs.t
Module-Build-0.18/t/XSTest/
Module-Build-0.18/t/XSTest/Build.PL
Module-Build-0.18/t/XSTest/Changes
Module-Build-0.18/t/XSTest/lib/
Module-Build-0.18/t/XSTest/lib/XSTest.pm
Module-Build-0.18/t/XSTest/lib/XSTest.xs
Module-Build-0.18/t/XSTest/MANIFEST
Module-Build-0.18/t/XSTest/test.pl
Removing previously used /home/me/.cpan/build/Module-Build-0.18
CPAN.pm: Going to build K/KW/KWILLIAMS/Module-Build-0.18.tar.gz
/usr/bin/perl Build.PL prefix=/home/me/data/perl58
Checking whether your kit is complete...
Looks good
Creating new 'Build' script for 'Module-Build' version '0.18'
Warning: PREREQ_PM mentions ExtUtils::Install more than once, last
mention wins at /usr/lib/perl5/5.8.0/CPAN.pm line 4607, <GEN15> line 1.
/usr/bin/perl ./Build
lib/Module/Build.pm -> blib/lib/Module/Build.pm
lib/Module/Build/Base.pm -> blib/lib/Module/Build/Base.pm
lib/Module/Build/Compat.pm -> blib/lib/Module/Build/Compat.pm
lib/Module/Build/Platform/Amiga.pm ->
blib/lib/Module/Build/Platform/Amiga.pm
lib/Module/Build/Platform/darwin.pm ->
blib/lib/Module/Build/Platform/darwin.pm
lib/Module/Build/Platform/Default.pm ->
blib/lib/Module/Build/Platform/Default.pm
lib/Module/Build/Platform/EBCDIC.pm ->
blib/lib/Module/Build/Platform/EBCDIC.pm
lib/Module/Build/Platform/MacOS.pm ->
blib/lib/Module/Build/Platform/MacOS.pm
lib/Module/Build/Platform/MPEiX.pm ->
blib/lib/Module/Build/Platform/MPEiX.pm
lib/Module/Build/Platform/RiscOS.pm ->
blib/lib/Module/Build/Platform/RiscOS.pm
lib/Module/Build/Platform/Unix.pm -> blib/lib/Module/Build/Platform/Unix.pm
lib/Module/Build/Platform/VMS.pm -> blib/lib/Module/Build/Platform/VMS.pm
lib/Module/Build/Platform/VOS.pm -> blib/lib/Module/Build/Platform/VOS.pm
lib/Module/Build/Platform/Windows.pm ->
blib/lib/Module/Build/Platform/Windows.pm
/usr/bin/make -- OK
Running make test
/usr/bin/perl ./Build test
t/basic.........ok
t/runthrough....ok 4/13B::Module::Info,packages use failed with 2 saying:
Can't locate B/Module/Info.pm in @INC (@INC contains:
/home/me/.cpan/build/Module-Build-0.18/blib/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
(eval 1) line 18.
BEGIN failed--compilation aborted at (eval 1) line 18.
BEGIN failed--compilation aborted.
t/runthrough....ok 6/13B::Module::Info,packages use failed with 2 saying:
Can't locate B/Module/Info.pm in @INC (@INC contains:
/home/me/.cpan/build/Module-Build-0.18/blib/lib
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
(eval 1) line 18.
BEGIN failed--compilation aborted at (eval 1) line 18.
BEGIN failed--compilation aborted.
t/runthrough....ok
t/xs............ok
All tests successful.
Files=3, Tests=32, 10 wallclock secs ( 4.89 cusr + 0.45 csys = 5.34 CPU)
/usr/bin/make test -- OK
Running make install
/usr/bin/perl ./Build install
Warning: You do not have permissions to install into
/usr/lib/perl5/site_perl/5.8.0 at
/usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 84.
mkdir /usr/lib/perl5/site_perl/5.8.0/Module: Permission denied at
/usr/lib/perl5/5.8.0/ExtUtils/Install.pm line 137
make: *** [install] Error 255
/usr/bin/make install -- NOT OK
You may have to su to root to install the package
cpan>
|