[rt.cpan.org #49002] Event.pm dependency: pp fails to find Event/idle.pm

2009-08-29 Thread Alexandr Ciornii via RT
Fri Aug 28 12:37:07 2009: Request 49002 was acted upon.
Transaction: Correspondence added by CHORNY
   Queue: Module-ScanDeps
 Subject: Event.pm dependency: pp fails to find Event/idle.pm
   Broken in: 0.94
Severity: (no value)
   Owner: Nobody
  Requestors: jo...@pobox.com
  Status: open
 Ticket URL: https://rt.cpan.org/Ticket/Display.html?id=49002 


Aug 25 17:07:22 2009, ganglion wrote
 use Event;

 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



[rt.cpan.org #49002] Event.pm dependency: pp fails to find Event/idle.pm

2009-08-26 Thread Joel Roth via RT
Tue Aug 25 17:07:22 2009: Request 49002 was acted upon.
Transaction: Ticket created by ganglion
   Queue: PAR-Packer
 Subject: Event.pm dependency: pp fails to find Event/idle.pm
   Broken in: 0.991
Severity: (no value)
   Owner: Nobody
  Requestors: jo...@pobox.com
  Status: new
 Ticket URL: https://rt.cpan.org/Ticket/Display.html?id=49002 


$ 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.





Re: [rt.cpan.org #49002] Event.pm dependency: pp fails to find Event/idle.pm

2009-08-26 Thread Roderich Schupp via RT
Wed Aug 26 08:13:36 2009: Request 49002 was acted upon.
Transaction: Correspondence added by roderich.sch...@googlemail.com
   Queue: Module-ScanDeps
 Subject: Re: [rt.cpan.org #49002] Event.pm dependency: pp fails to find  
Event/idle.pm
   Broken in: 0.94
Severity: (no value)
   Owner: Nobody
  Requestors: jo...@pobox.com
  Status: new
 Ticket URL: http://rt.cpan.org/Ticket/Display.html?id=49002 


 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.0 +0200
+++ Module-ScanDeps-rt49002/lib/Module/ScanDeps.pm  2009-08-26
14:03:27.0 +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);
 },