Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

Re: mod_perl2.pm

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


geoff at modperlcookbook

Nov 1, 2005, 5:42 AM

Post #1 of 3 (1431 views)
Permalink
Re: mod_perl2.pm

Torsten Foertsch wrote:
> Hi,
>
> is this really necessary in mod_perl2.pm?

I think the decision was made because a ton of legacy applications (like
CGI.pm) would be looking for $mod_perl::VERSION to decide which generation
they were after. whether this is a good idea or not... well, taking it away
now is probably a bad thing, so let's keep it, especially since that's not
the real problem...

see, $mod_perl::VERSION would report as a 2.0 version if someone
specifically loaded mod_perl2.pm. now, there's no reason for libapreq-1.33
to be doing that since it's specifically for mp1, which means...

>
> $mod_perl::VERSION = $mod_perl2::VERSION;
> $INC{"mod_perl.pm"} = File::Spec::Functions::devnull();
>
> It makes libapreq fail to build when mp1 and mp2 are installed.
>
> 0 r2 [at] op:~/work/libapreq-1.33$ perl Makefile.PL
> mod_perl 1.x ( < 1.99) is required at Makefile.PL line 34.
> BEGIN failed--compilation aborted at Makefile.PL line 36.

the problem is actually in Apache-Test - Apache::Test tries to load up a
bunch of mp2 classes when it itself is loaded, thus taking over the
mod_perl.pm slot in %INC. we've run into this problem before with
$mod_perl::VERSION incorrectly lingering and have tried to correct for it,
but apparently it didn't work.

so, please try the attached patch to Apache::Test. hopefully this fixes
things once and for all (without breaking more stuff :)

--Geoff
Attachments: deleteinc.patch (0.83 KB)


geoff at modperlcookbook

Nov 3, 2005, 8:08 AM

Post #2 of 3 (1354 views)
Permalink
Re: mod_perl2.pm [In reply to]

> so, please try the attached patch to Apache::Test. hopefully this fixes
> things once and for all (without breaking more stuff :)

Torsten, any luck with this?

--Geoff

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl


torsten.foertsch at gmx

Nov 4, 2005, 11:58 AM

Post #3 of 3 (1355 views)
Permalink
Re: mod_perl2.pm [In reply to]

On Thursday 03 November 2005 17:08, Geoffrey Young wrote:
> > so, please try the attached patch to Apache::Test. hopefully this fixes
> > things once and for all (without breaking more stuff :)
>
> Torsten, any luck with this?

yep, it works:

0 r2 [at] op:~/work/libapreq-1.33$ perl Makefile.PL
[ info] generating script t/TEST
Checking if your kit is complete...
Looks good
Writing Makefile for libapreq
mkdir ../blib
mkdir ../blib/arch
mkdir ../blib/arch/auto
mkdir ../blib/arch/auto/libapreq
Writing Makefile for Apache::Request
Writing Makefile for Apache::Cookie
Writing Makefile for libapreq

Torsten

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.