Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 17089
Status: resolved
Priority: 0/
Queue: CPAN

People
Owner: ANDK [...] cpan.org
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.83_55
Fixed in: (no value)



Subject: Module::Build install path can be taken when Module::Build is not installed
I apologise if I don't have conclusive proof for this, but reading through the CPAN.pm code the following would appear to be true. IF a distribution has only Build.PL AND Module::Build is not installed on host THEN CPAN.pm will select the Build.PL install method RESULTING IN the installer crashing due to lack of Module::Build. This is despite CPAN being able to _know_ that M:B isn't installed and that in all certainty perl Build.PL is going to crash. This results in confusing and misleading errors to the user when CPAN could just make sure that M:B is installed before calling Build.PL. On the plus side it does appear that if a module has BOTH installers and M:B is not installed CPAN.pm picks Makefile.PL regardless. Solutions: ---------- 1. Add Module::Build as a compulsory dependency for CPAN itself. (Does M:B work everywhere? It's certainly heading for core) 2. Automatically install Module::Build if it encounters a Build.PL-only distribution. (prefered maybe?) Hard to know what to do, but I'm expecting to start seeing errors soon.
Thanks! This can be proved with CPAN::Metadata::RDF which is the only module I know of that has a Build.PL and no Makefile.PL. Fixed in 1,83_56