Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 67296
Status: resolved
Priority: 0/
Queue: Mouse

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

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



Subject: PAR::Packer incompatibility
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1082
When trying to pack a program that uses Mouse with pp, PAR::Packer will not pick up the Mouse::Meta::Method family. There is no use statement in Moose referencing these modules therefore Module::ScanDeps is not able to detect them. Workarounds: Add use statements for Mouse::Meta::Method::x in Mouse.pm or add special cases handling Mouse.pm to Module::ScanDeps. I'd suggest to change Mouse, because otherwise M::SD would need to be updated everytime the implementation of Mouse changes. Cheers, Christoph chris@jupiter:~$ perl -e 'package Test; use Mouse; has f => (handles => ["bar"]); print "1\n"' 1 chris@jupiter:~$ pp -o testmouse -M Mouse -e 'package Test; use Mouse; has f => (handles => ["bar"]); print "1\n"' chris@jupiter:~$ ./testmouse Could not load class (Mouse::Meta::Method::Delegation) because : Can't locate Mouse/Meta/Method/Delegation.pm in @INC (@INC contains: /tmp/par-chris/cache-b10cafda047140d830b82e388684527ff6d11363/inc/lib /tmp/par-chris/cache-b10cafda047140d830b82e388684527ff6d11363/inc CODE(0x92c6e90) CODE(0x92c7190)) at Mouse/Util.pm line 260.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2598-1318019893-1315.67296-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 159
Download (untitled) / with headers
text/plain 159b
When you pack Mouse-based modules, you should use Mouse::Tiny, which is pre-packed, pure- Perl module for Mouse. Thanks, -- Goro Fuji (gfx) GFUJI at CPAN.org


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.