As you saw in the bug report from Dave Smith, t/REPORT has found the
wrong httpd for the report, when he was building against the source.
I've traced it to this snippet of code in TestConfig.pm:
sub default_apxs {
my $self = shift;
return $self->{vars}->{apxs} if $self->{vars}->{apxs};
if (my $build_config = modperl_build_config()) {
return $build_config->{MP_APXS};
}
$ENV{APXS} || which('apxs');
}
it seems that Dave's build has called which('apxs'), which has found
/usr/sbin/apxs which brought him /usr/sbin/httpd, which is wrong.
Any reason for having the which() call there? Why guessing, where there
is a risk to guess wrong? I suggest to nuke it:
Index: Apache-Test/lib/Apache/TestConfig.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfig.pm,v
retrieving revision 1.141
diff -u -r1.141 TestConfig.pm
--- Apache-Test/lib/Apache/TestConfig.pm 14 Aug 2002 02:31:11
-0000 1.141
+++ Apache-Test/lib/Apache/TestConfig.pm 16 Aug 2002 04:46:02 -0000
@@ -470,7 +470,7 @@
return $build_config->{MP_APXS};
}
- $ENV{APXS} || which('apxs');
+ $ENV{APXS};
}
sub default_httpd {
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]