Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id:
57106
Status:
resolved
Worked:
35 minutes
Users:
BINGOS: 35 minutes
Priority:
Low/Low
Queue:

People
Owner:
BINGOS [...] cpan.org
Requestors:
bruno.buss [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
0.9003
Fixed in:
(no value)

Attachments


Subject: CPANPLUS 9.003 can't install Class::Adapter because it can't find Makefile
Hi, I was trying to install Class::Adapter via cpanplus, but it fails with the following message: [ERROR] [Fri Apr 30 23:58:13 2010] File '/root/.cpanplus/5.10.0/build/Class-Adapter-1.07/Makefile' is not readable or does not exist [ERROR] [Fri Apr 30 23:58:13 2010] Unable to scan '/root/.cpanplus/5.10.0/build/Class-Adapter-1.07/Makefile' for prereqs [ERROR] [Fri Apr 30 23:58:13 2010] Unable to create a new distribution object for 'Class::Adapter' -- cannot continue I tried to install Class::Adapter via cpan client and it worked.
Subject: Class-Adapter-1.07-1272682693.log
[MSG] [Fri Apr 30 23:58:12 2010] Using cached file '/root/.cpanplus/authors/id/A/AD/ADAMK/CHECKSUMS' on disk; ttl (3600s) is not exceeded [MSG] [Fri Apr 30 23:58:12 2010] Checksum matches for 'Class-Adapter-1.07.tar.gz' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/README' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/Makefile.PL' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/LICENSE' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/xt/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/xt/meta.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/xt/pmv.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/xt/pod.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/META.yml' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/lib/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/lib/Class/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/lib/Class/Adapter.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/lib/Class/Adapter/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/lib/Class/Adapter/Builder.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/lib/Class/Adapter/Clear.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/06_static.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/07_destroy.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/04_clear.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/01_compile.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/05_autoload.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/02_main.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/t/03_builder.t' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/MANIFEST' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/Changes' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/DSL.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/Win32.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/WriteAll.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/Can.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/Metadata.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/Base.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/Makefile.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install/Fetch.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class-Adapter-1.07/inc/Module/Install.pm' [MSG] [Fri Apr 30 23:58:12 2010] Extracted 'Class::Adapter' to '/root/.cpanplus/5.10.0/build/Class-Adapter-1.07' [ERROR] [Fri Apr 30 23:58:13 2010] File '/root/.cpanplus/5.10.0/build/Class-Adapter-1.07/Makefile' is not readable or does not exist [ERROR] [Fri Apr 30 23:58:13 2010] Unable to scan '/root/.cpanplus/5.10.0/build/Class-Adapter-1.07/Makefile' for prereqs [ERROR] [Fri Apr 30 23:58:13 2010] Unable to create a new distribution object for 'Class::Adapter' -- cannot continue
RT-Send-CC: ADAMK@cpan.org
On Sat May 01 00:08:47 2010, brunobuss wrote:
Show quoted text
> Hi, > > I was trying to install Class::Adapter via cpanplus, but it fails with > the following message: > > [ERROR] [Fri Apr 30 23:58:13 2010] File > '/root/.cpanplus/5.10.0/build/Class-Adapter-1.07/Makefile' is not > readable or does not exist > [ERROR] [Fri Apr 30 23:58:13 2010] Unable to scan > '/root/.cpanplus/5.10.0/build/Class-Adapter-1.07/Makefile' for prereqs > [ERROR] [Fri Apr 30 23:58:13 2010] Unable to create a new distribution > object for 'Class::Adapter' -- cannot continue > > I tried to install Class::Adapter via cpan client and it worked.
Hi, Thanks for taking the time to raise a ticket for this. Class::Adapter uses Module::Install::DSL which appears to have issues with the cpanp-run-perl script that CPANPLUS uses. I have raised the issue with the Module::Install maintainer. Cheers.
RT-Send-CC: ADAMK@cpan.org
Hi, thanks for reporting this issue. I am glad to say that the issue has now been resolved and a new version of CPANPLUS (0.9004) has been uploaded to CPAN. The resolution involved adding a BEGIN {} block around the code in cpanp-run-perl so that it is guaranteed to be executed before anything in the do(). use strict; BEGIN { my $old = select STDERR; $|++; # turn on autoflush select $old; $|++; # turn on autoflush $0 = shift(@ARGV); # rename the script my $rv = do($0); # execute the file die $@ if $@; # die on parse/execute error } ### XXX 'do' returns last statement evaluated, which may be ### undef as well. So don't die in that case. #die $! if not defined $rv; # die on execute error Cheers.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.