Quoting <http://httpd.apache.org/docs/trunk/developer/new_api_2_4.html>:

  Create run-time files such as shared memory files, pid files, etc.
    Use ap_runtime_dir_relative() so that the global configuration for the
    location of such files, either by the DEFAULT_REL_RUNTIMEDIR compile
    setting or the DefaultRuntimeDir directive, will be respected. Apache
    httpd 2.4.2 and above.

The attached patch makes Apache-Test set DefaultRunTimeDir to the
log directory so that mod_auth_digest (and possibly others) will write
there. The setting is guarded with IfVersion directives, so the change
shouldn't break anything with older Apache versions.

With this, the mod_perl httpd24 branch doesn't need an explicit
DefaultRuntimeDir setting in t/conf/extra.conf.in anymore; remove that
as well.
-- 
Niko Tyni   nt...@debian.org
Description: Since Apache 2.4, DefaultRuntimeDir needs to be set,
 otherwise mod_auth_digest tries to write to /var/run and fails (depending
 on permissions). Set DefaultRuntimeDir in the generated httpd.conf of
 Apache::Test conditionally.
 This also means we don't need the extra DefaultRuntimeDir in t/conf/extra.conf.in.
Origin: vendor
Forwarded: no
Author: gregor herrmann <gre...@debian.org>,
 Niko Tyni <nt...@debian.org>
Last-Update: 2013-06-04

--- a/Apache-Test/lib/Apache/TestConfig.pm
+++ b/Apache-Test/lib/Apache/TestConfig.pm
@@ -2148,6 +2148,10 @@
 ErrorLog    @t_logs@/error_log
 LogLevel    debug
 
+<IfVersion > 2.4.1>
+    DefaultRunTimeDir "@t_logs@"
+</IfVersion>
+
 <IfModule mod_log_config.c>
     TransferLog @t_logs@/access_log
 </IfModule>
--- a/t/conf/extra.conf.in
+++ b/t/conf/extra.conf.in
@@ -1,6 +1,5 @@
 # needed to test $r->psignature
 ServerSignature On
-DefaultRuntimeDir run/
 
 # The following tests require more than one interpreter during the
 # same request:

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

Reply via email to