[Catalyst] Fun with developing on Linux and deploying on Windows

Dorian Taylor (Lists) dorian.taylor.lists at gmail.com
Thu Aug 12 05:15:44 GMT 2010


Couple things,

 From make test on Catalyst-Runtime-5.80025, Ubuntu Jaunty x86:

t/aggregate/ 
unit_core_component_loading.t ............................. 24/155
#   Failed test 'The thing isa Catalyst::Controller'
#   at t/aggregate/unit_core_component_loading.t line 233.
#     The thing isn't defined
# Looks like you failed 1 test of 155.

That would be the last test in the file, #155.


My real issue though, is this: I'm trying to install a Catalyst app on  
Windows.

I know. 64-bit even.

Anyway, my question is with respect to PAR. First, are the PARs made  
by `make catalyst_par' special somehow? Because if I pack a PAR by  
hand with pp, the app can't see the contents of root/, even if I  
explicitly add it (I checked).

There are two reasons why I would even try that. First, the colons in  
the filenames generated by manify_pods don't play well with Windows (I  
can comment that out but it's annoying). Second is because  
catalyst_par seems to ignore my requests to omit all the XS modules  
(which naturally screw up going from Ubuntu to Windows).

Here are the relevant contents of Makefile.PL:

# this apparently doesn't do anything
catalyst_ignore([qr/.*\.3pm/]);

my @skip = qw(
APR
APR::Pool
APR::Table
Apache2::Connection
Apache2::Const
Apache2::RequestIO
Apache2::RequestRec
Apache2::RequestUtil
Apache2::Response
Apache2::URI
Class::MOP
Clone
Compress::Raw::Zlib
Compress::Zlib
Crypt::SSLeay
DBD::Pg
DBD::SQLite
Date::Calc
DateTime
Devel::GlobalDestruction
FCGI
HTML::Parser
List::MoreUtils
ModPerl::Const
Moose
MooseX::Role::WithOverloading
Net::LibIDN
Net::SSLeay
Params::Util
Variable::Magic
);

catalyst_par_options(join(' -X ', '', @skip) . ' -I ../CUPE-DBIC/lib - 
I ../Data-Grid/lib -M CUPE::DBIC -M Data::Grid');

catalyst;

Here is the relevant part of the generated Makefile:

catalyst_par :: all
	$(NOECHO) $(PERL) -Ilib -Minc::Module::Install - 
MModule::Install::Catalyst - 
e"Catalyst::Module::Install::_catalyst_par( '', 'CUPE-EDS', { CLASSES  
=> [], PAROPTS =>  { 'M' => [ 'CUPE::DBIC', 'Data::Grid' ], 'X' =>  
[ 'APR', 'APR::Pool', 'APR::Table', 'Apache2::Connection',  
'Apache2::Const', 'Apache2::RequestIO', 'Apache2::RequestRec',  
'Apache2::RequestUtil', 'Apache2::Response', 'Apache2::URI',  
'Class::MOP', 'Clone', 'Compress::Raw::Zlib', 'Compress::Zlib',  
'Crypt::SSLeay', 'DBD::Pg', 'DBD::SQLite', 'Date::Calc', 'DateTime',  
'Devel::GlobalDestruction', 'FCGI', 'HTML::Parser', 'List::MoreUtils',  
'ModPerl::Const', 'Moose', 'MooseX::Role::WithOverloading',  
'Net::LibIDN', 'Net::SSLeay', 'Params::Util', 'Variable::Magic' ], 'I'  
=> [ '../CUPE-DBIC/lib', '../Data-Grid/lib' ] }, ENGINE => 'CGI',  
SCRIPT => '', USAGE => q## } )"
# --- Module::Install::AutoInstall section:

But they're still in the generated PAR when I view it with zipinfo.  
Did I miss anything glaring?

PS this is all the newest release of everything (Catalyst::Devel, PAR,  
etc.).

If there's any other relevant information I left out, holler back.

Thanks,

--
Dorian Taylor
Make things. Make sense.
http://doriantaylor.com




More information about the Catalyst mailing list