Geoffrey Young wrote:
[...]
ok. but remember it's not just 2.0 versus 2.1 - it can also be 2.0 with multiple mpms. granted, using a different mpm isn't likely to cause compilation errors later on...

hmm.

if mpms won't cause compile problems, I wonder if just specifying the apache version is enough. so, instead of having an md5 hash against the path to httpd, we just did Apache::BuildConf-2_0_48 (or maybe Apache::BuildConf::2_0_48). it still means that you could have multiple versions of 2.0.48 with different compile-time settings and you'd get the wrong build options, but typically with third-party installs you're only interested in the location of the header files and other minor stuff like platform...

But you just said by yourself that you may want to have different mpm builds.


I've thought about this issue more and came up to a conclusion that we shouldn't make BuildConfig special. After all you have exactly the same problem with any other 3rd party module whose XS build against one mpm won't be compatible with another. I'm still thinking whether try to convert Apache::Scoreboard to use accessors and no compile time defined structs specific to an mpm it was built against. At the moment I need a way to have more than one Scoreboard.so under the same perl build.

Therefore the solution IMHO is to use PREFIX and install mpm-specific builds into different locations from the default. A good choice of that PREFIX would be the location of the httpd build. So if you had

httpd/worker-2.0.48
httpd/prefork-2.0.48

You'd tell MakeMaker to install mod_perl or a third party module into either:
httpd/worker-2.0.48/lib/perl or
httpd/prefork-2.0.48/lib/perl

An voila the problem solved using the existing infrastructure.

Moreover this is not a normal case for an end user. And you automate everything anyway. So if you have to specify a different PREFIX to load things, it shouldn't be a problem.

The only missing thing to make the picture complete is PERL5LIB, which bites us back, so we need to instrument Apache-Test to be able to set PerlSwitches -I for us (or <Perl>use lib</Perl> for mp1).

__________________________________________________________________
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