Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: joelz [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.94
Fixed in: (no value)



Subject: Event.pm dependency: pp fails to find Event/idle.pm
$ cat test-event #!/usr/local/bin/perl use Event; $ pp -o te test-event $ ./te Can't locate Event/idle.pm in @INC (@INC contains: CODE(0xa2d3ac0) /tmp/par-jroth/cache-8e0c83f736a554b700eafd106a5bad932c8aebca/inc/lib /tmp/par-jroth/cache-8e0c83f736a554b700eafd106a5bad932c8aebca/inc CODE(0xa2135b0) CODE(0xa21b010)) at Event.pm line 66. ...propagated at Event.pm line 67. Compilation failed in require at script/test-event line 2. BEGIN failed--compilation aborted at script/test-event line 2. $ locate idle.pm /usr/local/lib/perl/5.10.0/Event/idle.pm /usr/local/lib/perl5/site_perl/5.10.0/i686-linux-thread-multi/Event/idle.pm $ perl -v This is perl, v5.10.0 built for i686-linux-thread-multi $ which perl /usr/local/bin/perl $ perl -e 'print @INC' /usr/local/lib/perl5/5.10.0/i686-linux-thread-multi /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/site_perl/5.10.0/i686-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 $ unzip -t te | grep Event testing: lib/Event.pm OK testing: lib/Event/MakeMaker.pm OK testing: lib/Event/Watcher.pm OK testing: lib/auto/Event/Event.bs OK testing: lib/auto/Event/Event.so OK $ locate idle.pm /usr/local/lib/perl/5.10.0/Event/idle.pm /usr/local/lib/perl5/site_perl/5.10.0/i686-linux-thread-multi/Event/idle.pm Comments: Even though idle.pm appears to be in the search path, it is not included in the par archive.
Subject: Re: [rt.cpan.org #49002] Event.pm dependency: pp fails to find Event/idle.pm
Date: Wed, 26 Aug 2009 14:13:16 +0200
To: bug-PAR-Packer [...] rt.cpan.org
From: Roderich Schupp <roderich.schupp [...] googlemail.com>
Show quoted text
> Can't locate Event/idle.pm in @INC (@INC contains: CODE(0xa2d3ac0)
Bug is actually in Module::ScanDeps that is used by PAR::Packer to determine all modules used (transitively) by your script. Event.pm loads Event/idle.pm etc in a way that can't be detected by static analysis. Hence, we must provide M::SD with a hint. Can you try the follwing patch? Note that in order to see any effect you must - apply the patch to the source of Module::ScanDeps - re-build and install Module::ScanDeps - re-pack your failing script Cheers, Roderich --- Module-ScanDeps-0.94/lib/Module/ScanDeps.pm 2009-08-10 20:28:30.000000000 +0200 +++ Module-ScanDeps-rt49002/lib/Module/ScanDeps.pm 2009-08-26 14:03:27.000000000 +0200 @@ -275,6 +275,7 @@ termios.ph asm/termios.ph sys/termiox.ph sys/termios.ph sys/ttycom.ph ) ], 'Email/Send.pm' => 'sub', + 'Event.pm' => 'sub', 'ExtUtils/MakeMaker.pm' => sub { grep /\bMM_/, _glob_in_inc('ExtUtils', 1); },
Aug 25 17:07:22 2009, ganglion wrote Show quoted text
> use Event;
Show quoted text
> Can't locate Event/idle.pm in @INC
Fixed in repository (by providing exact list of modules). I was not able to test if patch fixes all possible problems for Event.pm, as installation of Event fails on Windows. -- Alexandr Ciornii, http://chorny.net
Roderick's patch worked for me. Thanks for your help.
This should be resolved in the current Module::ScanDeps release.