Front page | perl.perl5.porters |
Postings from May 2008
Re: Some smoke digging
Thread Previous
|
Thread Next
From:
Bram
Date:
May 24, 2008 13:16
Subject:
Re: Some smoke digging
Message ID:
20080524221522.6g58eoxass0k8wog@horde.wizbit.be
Quoting "H.Merijn Brand" <h.m.brand@xs4all.nl>:
> On Sat, 24 May 2008 21:48:26 +0200, Bram <p5p@perl.wizbit.be> wrote:
>
>>
>> Quoting "H.Merijn Brand" <h.m.brand@xs4all.nl>:
>>
>> > On Sat, 24 May 2008 20:48:03 +0200, Bram <p5p@perl.wizbit.be> wrote:
>> >
>> >> Quoting "H.Merijn Brand" <h.m.brand@xs4all.nl>:
>> >>
>> >> > On Sat, 24 May 2008 10:05:56 -0500, "Craig A. Berry"
>> >> > <craig.a.berry@gmail.com> wrote:
>> >> >
>> >> >> On Sat, May 24, 2008 at 2:43 AM, H.Merijn Brand
>> >> <h.m.brand@xs4all.nl> wrote:
>> >> >>
>> >> >> > OK, if it is Matt's repo already, and we agree on the
>> solution (thank
>> >> >> > you for the explanation, I at least now also agree to
>> Gisle's fix), I
>> >> >> > would like to update blead.
>> >> >>
>> >> >> It's in:
>> >> >>
>> >> >> http://public.activestate.com/cgi-bin/perlbrowse/p/33918
>> >> >>
>> >> >> 07arith.t now passes on VMS.
>> >> >
>> >> > Passes on HP-UX too.
>> >> > I've still got this one left, and I've got no idea why:
>> >> >
>> >> > Test Summary Report
>> >> > -------------------
>> >> > ../lib/blib.t
>> >> > (Wstat: 768 Tests: 7 Failed: 3)
>> >> > Failed tests: 1, 4-5
>> >> > Non-zero exit status: 3
>> >>
>> >> Can you check what is in @INC?
>> >
>> > CPAN/perl-current/t 140 > ./perl -I../lib -le'print for @INC'
>> > ../lib
>> > /pro/lib/perl5/5.11.0/IA64.ARCHREV_0
>> > /pro/lib/perl5/5.11.0
>> > /pro/lib/perl5/site_perl/5.11.0/IA64.ARCHREV_0
>> > /pro/lib/perl5/site_perl/5.11.0
>> > .
>> > CPAN/perl-current/t 141 > ./TEST -v ../lib/blib.t
>> > t/../lib/blib....1..7
>>
>>
>> Do you have a blib directory in a parent directoy of your build directory?
>>
>> If I do:
>>
>> cd perl-current
>> mkdir ../blib
>
> ../ is err pretty strange. All perl tests are withing perl-current
> itself and never go above the root
use blib; is supposed to add the blib directory's in @INC.
To figure out where they are it starts with the cwd() and checks if it
includes a blib directory (which contains a lib and an arch dir).
If it doesn't find one it goes to the parent directory.
It tries this 5 times.
(I have no idea why it does this/needs to do this)
>
>> mkdir ../blib/lib
>> mkdir ../blib/arch
>>
>> Then test 1, test 4 and test 5 fail.
>>
>> Can you run:
>>
>> ./perl -wle '@INC="lib"; require "blib.pm";$blib::Verbose++;blib->import'
>>
>> It is supposed to die with: "Cannot find blib even in...."
>
>
> x1:/pro/3gl/CPAN/perl-current 144 > ./perl -wle '@INC="lib"; require
> "blib.pm";$blib::Verbose++;blib->import'
> Name "blib::Verbose" used only once: possible typo at -e line 1.
> Using /pro/3gl/CPAN/perl-current/../blib
> x1:/pro/3gl/CPAN/perl-current 145 > l -R blib
> ls: blib: No such file or directory
> x1:/pro/3gl/CPAN/perl-current 146 > l -R lib/blib
> ls: lib/blib: No such file or directory
It is finding /pro/3gl/CPAN/blib.
If you rename that directory then you will see that the tests pass.
Thread Previous
|
Thread Next