On Thu, 13 Mar 2003, Geoffrey Young wrote:
> yeah, I think it's related to the latest change in ModPerl::MM
>
> http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=104432362926275&w=2
>
> removing -MApache2 from the macro solves the problem, but thus makes it
> unusable for third party modules.
>
> I guess we really need to think harder about third party module
> support. I know I've struggled with this lately as has Stas,
> although ModPerl::MM::WriteMakefile seems to sorta work.
>
> maybe we should just revisit third party modules alltogether
> and come up with a feature list and API, then implement from
> scratch - possibly as a ModPerl::MM subclass or something.
It is a bit of a quandry ... One thing that I've also noticed is
that things are configured so that, if mod_perl.so appears in the
installed httpd.conf within a LoadModule directive, this isn't
included in the generated httpd.conf. That's the desired
behaviour when building mod_perl itself, as you'd want the
freshly built mod_perl.so used instead, but for a third party
module you do want to load the installed mod_perl.so. One
work-around is to have a TEST.PL something like:
========================================================
#!perl
use strict;
use warnings FATAL => 'all';
use Apache::TestRunPerl();
package MyTest;
our @ISA = qw(Apache::TestRunPerl);
sub pre_configure {
}
MyTest->new->run(@ARGV);
========================================================
but perhaps a more transparent way could be devised.
At one point Stas mentioned the problem that users may not have
mod_perl 2 installed, or may not have the latest version, and so
authors making up a 3rd party distribution can't depend on
functions available there. Would CPAN::MakeMaker be helpful in
this regard? Basically one can put stuff in a CPAN/MakeMaker.pm
file that gets distributed with the distribution, but not
installed.
--
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]