Subject: | Use "mod_perl2" Instead of "mod_perl" in requires() of Makefile.PL |
Dear Adam Kennedy,
Hi. This is imacat from Taiwan. I found that your
Apache2-PPI-HTML-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 changes its name to "mod_perl2" since mod_perl 2.x.
Thus when you require() "mod_perl", it actually looks for mod_perl 1.x,
but not mod_perl 2.x. You should use "mod_perl2" instead of "mod_perl"
in the require() 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-PPI-HTML-0.01 % perl -mApache2::Util -e'print
$Apache2::Util::VERSION;'; echo
2.000003
imacat@rinse tmp/Apache2-PPI-HTML-0.01 %
PERL5LIB=/tmp/ExtUtils-AutoInstall-0.63/blib/arch:/tmp/ExtUtils-AutoInstall-0.63/blib/lib
perl Makefile.PL
*** ExtUtils::AutoInstall version 0.63
*** Checking for dependencies...
[Core Features]
- Test::More ...loaded. (0.78 >= 0.47)
- File::Spec ...loaded. (3.2701 >= 0.80)
- CGI ...loaded. (3.35 >= 3.10)
- mod_perl ...missing. (would need 2.0)
- PPI ...missing. (would need 0.994)
- PPI::HTML ...missing. (would need 0.05)
==> Auto-install the 3 mandatory module(s) from CPAN? [y]
imacat@rinse tmp/Apache2-PPI-HTML-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-PPI-HTML-0.01-modperl2.diff |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
diff -u -r Apache2-PPI-HTML-0.01.orig/Makefile.PL Apache2-PPI-HTML-0.01/Makefile.PL
- --- Apache2-PPI-HTML-0.01.orig/Makefile.PL 2005-07-10 19:29:47.000000000 +0800
+++ Apache2-PPI-HTML-0.01/Makefile.PL 2008-03-31 00:40:43.000000000 +0800
@@ -7,7 +7,7 @@
license ( 'perl' );
requires ( 'perl' => '5.005' );
requires ( 'CGI' => '3.10' );
- -requires ( 'mod_perl' => '2.0' );
+requires ( 'mod_perl2' => '2.0' );
requires ( 'PPI' => '0.994' );
requires ( 'PPI::HTML' => '0.05' );
build_requires( 'Test::More' => '0.47' );
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkfvwqsACgkQi9gubzC5S1zndgCfZNgbnsZle8J2QxcA4n0gH2mb
DK8AoJI8RK0YafLv7FumuGBeTcjjIBkC
=fN7e
-----END PGP SIGNATURE-----