Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: adrianissott [...] hotmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.69
Fixed in: (no value)



Subject: scandeps.pl -c or -x doesn't work if additional include paths are given
Hi, If I run: perl -IC:\some\path c:\perl\bin\scandeps.pl -c some.pl I get the following error: Can't locate AIPerl/Framework/Logger.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at 1355uN line 7. BEGIN failed--compilation aborted at 1355uN line 7. Couldn't open 1355uN.out at C:/Perl/site/lib/Module/ScanDeps.pm line 1001. Note the list of paths in @INC is incorrect. Also perl -IC:\some\path some.pl does compile successfully. If I run perl -IC:\some\path c:\perl\bin\scandeps.pl -x some.pl I get: Can't locate AIPerl/Framework/Logger.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at C:/tools_dev/apps/AIPerl/CodeTools/c4NhYE line 5. BEGIN failed--compilation aborted at C:/tools_dev/apps/AIPerl/CodeTools/c4NhYE line 5. SYSTEM ERROR in executing FileMatch.pl: 512 at C:/Perl/site/lib/Module/ScanDeps.pm line 952. In addition the temporary files created by scandeps.pl are still present once the script exits. FYI, I'm using the following: * Module-ScanDeps [0.70] * perl, v5.8.4 built for MSWin32-x86-multi-thread, Binary build 810 provided by ActiveState Corp. * Windows XP, Version 2002, Service Pack 2 Regards, Adrian
Subject: scandeps.pl -c or -x doesn't pass additional include paths to perl subprocess
On Sun Dec 31 12:53:10 2006, adriani wrote: Show quoted text
> If I run: > perl -IC:\some\path c:\perl\bin\scandeps.pl -c some.pl > > I get the following error: > Can't locate AIPerl/Framework/Logger.pm in @INC (@INC contains:
... Show quoted text
> Note the list of paths in @INC is incorrect.
You are correct. This is an issue with how _compile() and _execute() call perl in another process. It appears that _execute() was fixed in this regard at 0.71, though the two functions should probably be refactored to prevent this sort of divergence. The general workaround for 0.70 (and _compile() in 0.71) is to set $ENV{PERL5LIB}. --Eric