perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@p6m7g8.com>
Subject [PATCH] lib/ModPerl/BuildOptions.pm
Date Wed, 06 Apr 2005 09:44:57 GMT
Hi,

perl Makefile.PL MP_APXS=apx MP_COMPAT_1X=0

Reading Makefile.PL args from @ARGV
    MP_APXS = /home/pgollucci/dev/inst/httpd/2.1.5-dev/worker/bin/apxs
    MP_COMPAT_1X =
    MP_MAINTAINER = 1

That should be: Note the 0

Reading Makefile.PL args from @ARGV
    MP_APXS = /home/pgollucci/dev/inst/httpd/2.1.5-dev/worker/bin/apxs
    MP_COMPAT_1X = 0
    MP_MAINTAINER = 1

Heres a patch to fix that (trivial):

Index: lib/ModPerl/BuildOptions.pm
===================================================================
--- lib/ModPerl/BuildOptions.pm (revision 160271)
+++ lib/ModPerl/BuildOptions.pm (working copy)
@@ -101,7 +101,7 @@

          if (/^MP_/) {
              my($key, $val) = split $param_qr, $_, 2;
-            $val ||= "";
+            $val ||= "" unless $val eq '0';
              $continue = $val =~ s/\\$// ? $key : "";

              if (!$table->{$key} and $opts & UNKNOWN_FATAL) {
END
------------------------------------------------------------------------------ 

Philip M. Gollucci
Consultant
E-Mail: pgollucci@p6m7g8.com
URL   : http://p6m7g8.net/Resume/resume.shtml
Phone : 301.254.5198

$Id: .signature,v 1.7 2004/09/05 23:46:37 philip Exp $


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message