[Catalyst] Deployment incompatibility

2011-02-04 Thread Octavian Rasnita
Hi,

I have tried to build an app under Windows XP and then deploy the tarball under 
Ubuntu, using:

catalyst MyFoo

cd MyFoo

perl Makefile.PL

nmake

nmake manifest

nmake dist

After this first step I loaded the file MyFoo-0.01.tar.gz on an Ubuntu server, 
unarchiving it, and ran:

perl Makefile.PL

The result was the following error:

The path 'lib\MyFoo.pm' does not exist, or is not a file at 
inc/Module/Install/Metadata.pm line 194. 

I've seen that this problem appeared because the file Makefile.PL is created 
automaticly with the following line in it:

all_from 'lib\MyFoo.pm';

instead of:

all_from 'lib/MyFoo.pm';

I use Catalyst 5.80029.

I couldn't install the newer version of Catalyst because I couldn't install 
MooseX::Role::WithOverloading, because I couldn't install the 
newer version of namespace::autoclean:

Undefined subroutine namespace::autoclean::on_scope_end called at 
E:\usr\cpan\build\namespace-autoclean-0.11-bB3vbO\blib\lib/namespace/autoclean.pm
 line 57.
BEGIN failed--compilation aborted at t/also.t line 7.
Undefined subroutine namespace::autoclean::on_scope_end called at 
E:\usr\cpan\build\namespace-autoclean-0.11-bB3vbO\blib\lib/namespace/autoclean.pm
 line 57.
BEGIN failed--compilation aborted at t/basic.t line 9.
Undefined subroutine namespace::autoclean::on_scope_end called at 
E:\usr\cpan\build\namespace-autoclean-0.11-bB3vbO\blib\lib/namespace/autoclean.pm
 line 57.
BEGIN failed--compilation aborted at t/cleanee.t line 20.
Undefined subroutine namespace::autoclean::on_scope_end called at 
E:\usr\cpan\build\namespace-autoclean-0.11-bB3vbO\blib\lib/namespace/autoclean.pm
 line 57.
BEGIN failed--compilation aborted at t/matchclean.t line 8.
# Testing with Moose 1.21
Undefined subroutine namespace::autoclean::on_scope_end called at 
E:\usr\cpan\build\namespace-autoclean-0.11-bB3vbO\blib\lib/namespace/autoclean.pm
 line 57.
BEGIN failed--compilation aborted at t/role.t line 18.
Failed 5/7 test programs. 0/0 subtests failed.

Thanks.

--Octavian
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Deployment incompatibility

2011-02-04 Thread Tomas Doran


On 4 Feb 2011, at 08:14, Octavian Rasnita wrote:
I've seen that this problem appeared because the file Makefile.PL is  
created automaticly with the following line in it:


all_from 'lib\MyFoo.pm';

instead of:

all_from 'lib/MyFoo.pm';



Can you log a bug against Catalyst-Devel for this?



I use Catalyst 5.80029.

I couldn't install the newer version of Catalyst because I couldn't  
install MooseX::Role::WithOverloading, because I couldn't install the

newer version of namespace::autoclean:



You need to upgrade namespace::clean, this should fix the issue.

I've also released a new namespace::autoclean just now which depends  
on the right things, which should stop this issue for anyone else.


Cheers
t0m


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/