Configure apache_libexec path
[email protected] (Allison Randal) Wed, 17 Jan 2007 14:52:30 -0800
| Newsgroups | perl.combust.users |
|---|---|
| Message-ID | <[email protected]> |
--------------000908060103010000070008
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
The attached 5-line patch makes it possible to configure the
apache_libexec path independently of the apache_root and modperl_path
settings. This change was necessary for running combust on my Ubuntu
test server (largely because the mod_perl library is named mod_perl.so
instead of libperl.so).
Allison
--------------000908060103010000070008
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
name="configure_libexec_path.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="configure_libexec_path.patch"
Index: lib/Combust/Config.pm
===================================================================
--- lib/Combust/Config.pm (revision 567)
+++ lib/Combust/Config.pm (working copy)
@@ -235,7 +235,11 @@
$cfg->param('perl');
}
+sub apache_libexec {
+ $cfg->param('apache_libexec');
+}
+
#sub config {
# $cfg;
#}
Index: bin/make_configs
===================================================================
--- bin/make_configs (revision 567)
+++ bin/make_configs (working copy)
@@ -26,8 +26,8 @@
my $apxs = $config->httpd;
$apxs =~ s!/httpd!/apxs!;
-my $apache_libexec;
-$apache_libexec = (-x $apxs and !-d _) ? `$apxs -q LIBEXECDIR` : '';
+my $apache_libexec = $config->apache_libexec;
+$apache_libexec ||= (-x $apxs and !-d _) ? `$apxs -q LIBEXECDIR` : '';
$apache_root =~ s!/s?bin/httpd$!!;
$apache_libexec ||= $apache_root . "/libexec";
--------------000908060103010000070008--