You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2002/04/15 09:58:54 UTC
Apach2.pm hoses 2.0's make test with perl 5.6.1
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:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Apach2.pm hoses 2.0's make test with perl 5.6.1
Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:
> On Mon, 15 Apr 2002, Stas Bekman wrote:
>
>
>>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.
>
>
> that'll be an issue regardless of Apache2 being used or not. the build
> library paths should always be first in @INC for testing.
ok, so this needs to be fixed.
>>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);
>
>
> you mean ModPerl-Registry/t/TEST.PL?
no, I meant t/TEST (which is autogenerated). I'm not talking about
sub-dirs yet.
> how is any of this specific to 5.6.1?
> everything currently works fine for me with MP_INST_APACHE=1, but i
> haven't been running ModPerl-Registry/t/TEST
>
> maybe we should just be using absolute paths instead of ../ ?
That's why I added the use of FindBin (to make full paths), but
something else messes things up. It does work for me without any problem
with bleadperl. I'll try again from scratch.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Apach2.pm hoses 2.0's make test with perl 5.6.1
Posted by Doug MacEachern <do...@covalent.net>.
On Mon, 15 Apr 2002, Stas Bekman wrote:
> 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.
that'll be an issue regardless of Apache2 being used or not. the build
library paths should always be first in @INC for testing.
> 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);
you mean ModPerl-Registry/t/TEST.PL?
how is any of this specific to 5.6.1?
everything currently works fine for me with MP_INST_APACHE=1, but i
haven't been running ModPerl-Registry/t/TEST
maybe we should just be using absolute paths instead of ../ ?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org