Skip Menu |

This queue is for tickets about the mod_perl CPAN distribution.

Report information
The Basics
Id: 40918
Status: resolved
Priority: 0/
Queue: mod_perl

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.30
Fixed in: (no value)



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{$_});
Fixed in mod_perl 1.32-dev