Skip Menu |

This queue is for tickets about the Module-ScanDeps CPAN distribution.

Report information
The Basics
Id: 61027
Status: resolved
Priority: 0/
Queue: Module-ScanDeps

People
Owner: RSCHUPP [...] cpan.org
Requestors: eric.roode.cpan [...] gmail.com
Cc:
AdminCc:

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



Subject: "use lib" does not work.
When Module::ScanDeps encounters a "use lib" line, it includes the version-specific subdirectory, the architechture-specific subdirectory, and the version-and-architecture-specific subdirectory, but it does not include the directory itself! Here is a small test program: #!/usr/local/bin/perl use lib 'lib'; use MyModule; in a 'lib' directory under the current directory, put MyModule.pm containing: 1; When you run scandeps.pl, it says "No modules found!". If you run it with the -V option, it says: # Could not find source file 'MyModule.pm' in @INC or @IncludeLibs. Skipping it. # Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN No modules found! The problem appears to be in the function scan_line, in ScanDeps.pm line 816. Adding the following line: unshift(@INC, $_) if -d $_; seems to solve the problem.
Thanks for the report and analysis. I've committed your fix, will be in the next release. Cheers, Roderich