Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 11177
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: corion [...] corion.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Fri, 21 Jan 2005 21:13:32 +0100
From: Max Maischein <corion [...] corion.net>
To: bug-CPANPLUS [...] rt.cpan.org
Subject: CPANPLUS fails 21_CPANPLUS-Dist-Build.t on Perl 5.8.5/Win32 with Module::Build 0.2605
Hi, the subject line says it all, see the below output of the test. I'm not sure why CPANPLUS thinks that Module::Build is unavailable. -max C:\.cpan\build\CPANPLUS-0.051>perl -Iblib\lib -w t\21_CPANPLUS-Dist-Build.t [MSG] Checking if source files are up to date [MSG] Rebuilding author tree, this might take a while [MSG] Rebuilding module tree, this might take a while ok 1 - Rebuilding trees [MSG] Trying to get 'file://C:/.cpan/build/CPANPLUS-0.051/t/dummy-CPAN/authors/id/C/CW/CWEST/CHECKSU MS' [MSG] Checksum matches for 'Devel-Caller-Perl-1.4.tar.gz' ok 2 - Fetching module [MSG] Extracted 'Devel-Caller-Perl-1.4/' [MSG] Extracted 'Devel-Caller-Perl-1.4/Build.PL' [MSG] Extracted 'Devel-Caller-Perl-1.4/INSTALL' [MSG] Extracted 'Devel-Caller-Perl-1.4/lib/' [MSG] Extracted 'Devel-Caller-Perl-1.4/lib/Devel/' [MSG] Extracted 'Devel-Caller-Perl-1.4/lib/Devel/Caller/' [MSG] Extracted 'Devel-Caller-Perl-1.4/lib/Devel/Caller/Perl.pm' [MSG] Extracted 'Devel-Caller-Perl-1.4/Makefile.PL' [MSG] Extracted 'Devel-Caller-Perl-1.4/MANIFEST' [MSG] Extracted 'Devel-Caller-Perl-1.4/META.yml' [MSG] Extracted 'Devel-Caller-Perl-1.4/README' [MSG] Extracted 'Devel-Caller-Perl-1.4/t/' [MSG] Extracted 'Devel-Caller-Perl-1.4/t/basic.t' [MSG] Extracted 'Devel::Caller::Perl' to 'C:\.cpan\build\CPANPLUS-0.051\t\dummy-cpanplus\5.8.5\build \Devel-Caller-Perl-1.4' ok 3 - Extracting module ok 4 - Getting build installer type ok 5 - Proper installer type found [ERROR] You do not have 'Module::Build' -- 'CPANPLUS::Dist::Build' not available [ERROR] Format 'CPANPLUS::Dist::Build' is not available [ERROR] Unable to create a new distribution object for 'Devel::Caller::Perl' -- cannot continue not ok 6 - Testing module # Failed test (t\21_CPANPLUS-Dist-Build.t at line 54) Can't call method "status" on an undefined value at t\21_CPANPLUS-Dist-Build.t line 55. 1..6 # Looks like you failed 1 tests of 6. # Looks like your test died just after 6. [MSG] Writing state information back to disk. This may take a little while. C:\.cpan\build\CPANPLUS-0.051>perl -MModule::Build -e "die $Module::Build::VERSION" 0.2605 at -e line 1.
[corion@corion.net - Fri Jan 21 15:13:55 2005]: Show quoted text
> the subject line says it all, see the below output > of the test. I'm not sure why CPANPLUS thinks that > Module::Build is unavailable.
[...] Show quoted text
> C:\.cpan\build\CPANPLUS-0.051>perl -MModule::Build -e "die > $Module::Build::VERSION" > 0.2605 at -e line 1.
The version for this one is actually too low to work, but CPANPLUS bundles 0.2607, so really there should be no error... can you run this command for me in the same directory, and post the output? perl -Ilib -MCPANPLUS::inc=DEBUG -MModule::Build -e1
Date: Thu, 27 Jan 2005 21:19:39 +0100
From: Max Maischein <corion [...] corion.net>
To: bug-CPANPLUS [...] rt.cpan.org
Subject: CPANPLUS 0.051 fails test 21 under Windows/Perl 5.8.5

Message body is not shown because it is too large.

[corion@corion.net - Thu Jan 27 15:14:08 2005]: Show quoted text
> Hi again, > > the latest CPANPLUS, v0.051, fails under Windows 2000, Perl 5.8.5, > Module::Build 0.2605. I first tried installing through CPAN.pm (whole > session attached below). Then I started the failing test (#21) alone, > which also failed (attached below).
Yes, you already reported that as bug #11177, and i asked you to provide some extra debugging output, which i'm not seeing in this report either. Please respond to my previous question: Can you apply this patch on the test file, and run it again, sending me the output? ==== //depot/cpanplus/devel/t/21_CPANPLUS-Dist-Build.t#31 - /Users/kane/sources/p4/cpanplus/devel/t/21_CPANPLUS-Dist-Build.t ==== 23c23 < use CPANPLUS::inc; --- Show quoted text
> use CPANPLUS::inc qw[DEBUG];
47a48,49 Show quoted text
> warn Dumper \@INC; >
[corion@corion.net - Fri Jan 28 11:57:06 2005]: Show quoted text
> via RT schrieb:
> > Yes, you already reported that as bug #11177, and i asked you to
> provide some extra
> > debugging output, which i'm not seeing in this report either.
> Ah, I don't follow the bugs I report and my time isn't always > available > for supplying requested additional output, which is why I try to stuff > as much as possible into one report.
Sometimes however, a bit more information is needed, and it's quite frustrating for the developer if he gets a bug report, but no follow up if more data is required. Show quoted text
> CPANPLUS::inc: Not interested in 'Module\Build'
This is very suspicious -- windows paths are getting passed to the loading scheme, rather than unix paths (as in %INC), or even module names... the below patch compensates for this, and works on my simulated environment on OSX.. could you give it a try on your machine and tell me if it works (leave the previous patch applied, it gives good debug output): ==== //depot/cpanplus/devel/lib/CPANPLUS/inc.pm#41 - /Users/kane/sources/p4/ cpanplus/devel/lib/CPANPLUS/inc.pm ==== 282,285c282,286 < my $path = pop(); # path to the pm < my $module = $path or return; # copy of the path, to munge < my @parts = split '/', $path; # dirs + file name < my $file = pop @parts; # just the file name --- Show quoted text
> my $path = pop(); # path to the pm > my $module = $path or return; # copy of the path, to munge > my @parts = split qr!\\|/!, $path; # dirs + file name; could be > # win32 paths =/ > my $file = pop @parts; # just the file name
288,290c289,291 < < ### translate file name to module name ### < $module =~ s|/|::|g; $module =~ s/\.pm//i; --- Show quoted text
> ### translate file name to module name > ### could contain win32 paths delimiters > $module =~ s!/|\\!::!g; $module =~ s/\.pm//i;