Subject: | Use "mod_perl2" Instead of "mod_perl" in PREREQ_PM of Makefile.PL |
Dear Philippe M. Chiasson,
Hi. This is imacat from Taiwan. I found that your
Apache2-Instrument-0.01 is not actually looking for mod_perl 2.x, but
mod_perl 1.x. I tried to look into your Makefile.PL. It lists a
virtual module "mod_perl", which is only available in mod_perl 1.x.
This virtual module has changed its name to "mod_perl2" since mod_perl
2.x. Thus when you list "mod_perl" in the PREREQ_PM, it actually looks
for mod_perl 1.x, but not mod_perl 2.x. You should use list "mod_perl2"
instead of "mod_perl" in the PREREQ_PM of your Makefile.PL.
The attached terminal log below is what I have tested on my system
which has mod_perl 2.x installed. As it shows, it did not found the
already-installed mod_perl 2.x and prompt me to install it, which later
it actually will install mod_perl 1.x.
imacat@rinse tmp/Apache2-Instrument-0.01 % perl -mApache2::Util -e'print
$Apache2::Util::VERSION;'; echo
2.000003
imacat@rinse tmp/Apache2-Instrument-0.01 % perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite mod_perl 2 not found.
Writing Makefile for Apache2::Instrument
imacat@rinse tmp/Apache2-Instrument-0.01 %
I have made a simple patch in the hope that it helps. Please tell
me if you need any more information, or if I could be of any help.
Thank you.
Subject: | Apache2-Instrument-0.01-mod_perl2.diff |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
diff -u -r Apache2-Instrument-0.01.orig/Makefile.PL Apache2-Instrument-0.01/Makefile.PL
- --- Apache2-Instrument-0.01.orig/Makefile.PL 2006-08-30 08:59:26.000000000 +0800
+++ Apache2-Instrument-0.01/Makefile.PL 2008-04-02 07:34:03.000000000 +0800
@@ -16,7 +16,7 @@
VERSION_FROM => 'lib/Apache2/Instrument.pm',
SIGN => 1,
PREREQ_PM => {
- - 'mod_perl' => '2',
+ 'mod_perl2' => '2',
'Test::More' => '0.47',
},
);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkfyx4wACgkQi9gubzC5S1yMCwCeIxmUGfxNHTm0sppRqlFlwOLd
UYwAoITn/is3govApAQAypG/BKsQAtmP
=IB/3
-----END PGP SIGNATURE-----