Stas Bekman wrote:
David Culp wrote:

Any Examples of Apache::Filter would be greatly appreciated.


http://www.cpan.org/authors/id/G/GE/GEOFF/Apache-Clean-0.05.tar.gz

p.s. Apache-Clean-2.x is for mp2.

Hmm, now it's impossible to find (or even know that it exists) Apache::Clean for 1.x via the normal tools (other than going to authors/id/G/GE/GEOFF/, but you need to know that it exists). Geoff, I'd suggest that you merge 1.x version in 2.x's version.

I've attached Apache-Peek-2.0-to-be, for one example of how this could be done. Though the obvious problem is that in addition to the inconvenince (the source files aren't .pm and .xs), the users of both versions of mod_perl will have to figure out whether they need to upgrade their installed package, when a new version is released (while the new version is probably changing things only for mp1 or mp2).

Unfortunately we don't get any support from CPAN on this issue :( Better ideas are welcome.

Back to the all-in-one package methodology:

I think that in order to prevent the development inconvenience as it's in the attached Apache-Peek, it's a better approach to have a top level Makefile.PL, which writes a new Makefile.PL in one of the subdirs and takes it from there.
So you have:

Apache-Clean/Makefile.PL
Apache-Clean/mp1/Clean.pm
Apache-Clean/mp2/Clean.pm

once Apache-Clean/Makefile.PL figures out it's mp2, it creates:

Apache-Clean/mp2/Makefile.PL and WriteMakefile picks it from there.

In case of Apache::Peek it's more complex, as I have:

Peek.pm.mp1.perl5.5
Peek.pm.mp1.perl5.6
Peek.pm.mp1.perl5.8
Peek.pm.mp2.perl5.6
Peek.pm.mp2.perl5.8
Peek.xs.mp1.perl5.5
Peek.xs.mp1.perl5.6
Peek.xs.mp1.perl5.8
Peek.xs.mp2.perl5.6
Peek.xs.mp2.perl5.8

which I cp into Peek.xs Peek.pm, when the perl and modperl versions are figured out in Makefile.PL.

I guess I can change it into:

mp1/5.5/Peek.pm
mp1/5.5/Peek.xs
mp1/5.6/Peek.pm
mp1/5.6/Peek.xs
mp1/5.8/Peek.pm
mp2/5.6/Peek.xs
mp2/5.6/Peek.pm
mp1/5.8/Peek.xs
mp1/5.8/Peek.pm

so it'd be easier to maintain.

If you wander why there are so many files, you have to realize that Apache::Peek is a collection of hacked Devel::Peek which are different in each perl version. Now we also have different mp2 guts, so here we end up with all these combinations.

__________________________________________________________________
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

Attachment: Apache-Peek-1.01.tar.gz
Description: application/gzip

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

Reply via email to