Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the App-cpanminus CPAN distribution.

Report information
The Basics
Id: 58494
Status: resolved
Priority: 0/
Queue: App-cpanminus

People
Owner: Nobody in particular
Requestors: ambs [...] cpan.org
Cc:
AdminCc:

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



Subject: Module root directory is not detected properly
Modules like Test-CheckManifest does not install because the first file in the tarball is under a subdirectory, making cpanminus to enter to that directory instead of the root directory. All the best, Alberto
On Thu Jun 17 13:03:01 2010, AMBS wrote: Show quoted text
> Modules like Test-CheckManifest does not install because the first file > in the tarball is under a subdirectory, making cpanminus to enter to > that directory instead of the root directory.
Confirmed. The tar command and output is: # tar tfz Test-CheckManifest-1.22.tar.gz Test-CheckManifest-1.22/data/Test2.dat Test-CheckManifest-1.22/lib/Test/CheckManifest.pm ...etc. The first line causes cpanm to think the root directory is the data directory. Perhaps cpanm descend into whatever path the first line contains and stop when it finds a Makefile.PL or Build.PL file. Or maybe simpler would be to sort the tar output by length and then take the first line as the root.
Fixed in 1.0012