Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 50233
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: perl-rt [...] misterwhipple.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 2.00
  • 2.00_02
Fixed in: (no value)



Subject: CPANPLUS::Config.pm missing 'use URI::file;', breaks with minicpan
The file c:\strawberry\perl\lib\CPANPLUS\Config.pm is missing 'use URI::file;'. This cpanp to bomb with the following erros if c:\strawberry\minicpan exists and is a directory. Can't locate object method "new" via package "URI::file" (perhaps you forgot to load "URI::file"?) at C:/strawberry/perl/lib/CPANPLUS/Config.pm line 153. Compilation failed in require at C:/strawberry/perl/lib/CPANPLUS/Configure.pm line 7. BEGIN failed--compilation aborted at C:/strawberry/perl/lib/CPANPLUS/Configure.pm line 7. Compilation failed in require at C:/strawberry/perl/lib/CPANPLUS/Backend.pm line 7. BEGIN failed--compilation aborted at C:/strawberry/perl/lib/CPANPLUS/Backend.pm line 7. Compilation failed in require at C:/strawberry/perl/lib/CPANPLUS.pm line 7. BEGIN failed--compilation aborted at C:/strawberry/perl/lib/CPANPLUS.pm line 7. Compilation failed in require at C:\strawberry\perl\bin/cpanp line 8. BEGIN failed--compilation aborted at C:\strawberry\perl\bin/cpanp line 8. I have not tested Perl-Dist-Strawberry 2.00_02, but browsing the source at http://cpansearch.perl.org/src/CSJEWELL/Perl-Dist-Strawberry-2.00_02/share/strawberry/perl/lib/CPANPLUS/Config.pm.tt, it looks like the 'use' is still missing. TO REPRODUCE: Install Strawberry Perl 10.0.0.6. Install CPAN::Mini by whatever means. Run 'minicpan -l c:\strawberry\minicpan -r [...]'. Run 'cpanp', and the error messages above appear. WORKAROUND: Install your minicpan someplace other than c:\strawberry\minicpan. This will require manually configuring CPANPLUS with the location. FIX: Add the following line to C:/strawberry/perl/lib/CPANPLUS/Config.pm: use URI::file; I put mine after 'use Module::Load;', but I believe it could go anywhere after 'use warnings;' and before the first '=pod'
Thanks for the bug report! It'll be fixed in the October 2009 final. I decided to put the use (require is fine) closer to where it's needed, and only load it where it's needed. The svn commit is at: http://fisheye2.atlassian.com/browse/cpan/trunk/Perl-Dist-Strawberry/share/strawberry/perl/lib/CPANPLUS/Config.pm.tt?r1=7881&r2=9578
Resolving since October release happened.