The Apache2 trick completely hoses 'make test' with 5.6.1.

Can't locate Apache/Const.pm in @INC (@INC contains: 
/home/stas/perl/5.6.1-ithread/lib/site_perl/5.6.1/Apache2 
/home/stas/perl/5.6.1-ithread/lib/site_perl/5.6.1/i686-linux-thread-multi/Apache2 
Apache-Test/lib
/home/stas/apache.org/mp-5.6.1-prefork/Apache-Test/lib 
/home/stas/apache.org/mp-5.6.1-prefork/lib 
/home/stas/apache.org/mp-5.6.1-prefork/blib/lib 
/home/stas/apache.org/mp-5.6.1-prefork/blib/arch 
/home/stas/apache.org/mp-5.6.1-prefork/t/../Apache-Test/lib 
/home/stas/perl/5.6.1-ithread/lib/5.6.1/i686-linux-thread-multi 
/home/stas/perl/5.6.1-ithread/lib/5.6.1 
/home/stas/perl/5.6.1-ithread/lib/site_perl/5.6.1/i686-linux-thread-multi 
/home/stas/perl/5.6.1-ithread/lib/site_perl/5.6.1 
/home/stas/perl/5.6.1-ithread/lib/site_perl .) at 
/home/stas/apache.org/mp-5.6.1-prefork/t/response/TestApache/subprocess.pm 
line 12.

1. it tests against wrong libraries, as it pushes the tobe installed 
libraries first in @INC, but some people will have the older versions 
installed in exactly the same locations.

2. It doesn't pick the Apache2 ../blib

I suggest having a special lib/Apache2Test.pm which will be used in tests.

I also had to add this to t/TEST.PL:
use lib map { "$FindBin::Bin/../blib/$_/Apache2" } qw(lib arch);

mod_perl was built as:

#!/bin/sh
make clean
/home/stas/perl/5.6.1-ithread/bin/perl Makefile.PL \
MP_INST_APACHE2=1                         \
MP_GENERATE_XS=1                          \
MP_USE_DSO=1                              \
MP_DEBUG=1                                \
MP_TRACE=1                                \
MP_USE_GTOP=0                             \
MP_APXS=/home/stas/httpd/prefork/bin/apxs \
MP_CCOPTS='-DMP_IOBUFSIZE=16384'          \
MP_MAINTAINER=1                           \
&& make && make test

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to