Subject: | [PATCH] Makefile.PL has problems with strange perl paths |
My perl is installed in /usr/perl5.8.9@RC1/bin/perl and it seems that
the Makefile.PL of mod_perl 1.30 has problems with sigils in the path.
The make phase fails, and before the failure I see the following lines
in the log:
/bin/sh: /usr/perl5.8.9/bin/perl: No such file or directory
/bin/sh: /usr/perl5.8.9/bin/perl: No such file or directory
So the "@RC1" part was stripped somewhere. The problem is that in line
794 of Makefile.PL, the value of $Config{perlpath} is interpolated in
the string for iedit/perl -i, and the command sees now something like
s!PERL=.*!PERL=/usr/perl5.8.9@RC1/bin/perl!, and perl happily
interpolates the value of @RC1.
The attached patch seems to fix the problem.
Regards,
Slaven
Subject: | mod_perl1-Makefile.PL.diff |
--- Makefile.PL.orig 2008-11-14 12:34:13.000000000 +0100
+++ Makefile.PL 2008-11-14 12:39:19.000000000 +0100
@@ -791,7 +791,7 @@
setup_for_static() unless $USE_APXS;
iedit "$APACHE_SRC/modules/perl/Makefile",
- "s!^PERL\\s*=.*!PERL=$Config{'perlpath'}!" unless $USE_APACI or $USE_APXS;
+ "BEGIN { require Config; Config->import } s!^PERL\\s*=.*!PERL=\$Config{'perlpath'}!" unless $USE_APACI or $USE_APXS;
for (@callback_hooks) {
($k,$v) = ($_,$callback_hooks{$_});