Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

[Apache-Test + httpd24] [PATCH] Run "httpd -V" with the test config

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


ntyni at debian

Jun 23, 2013, 1:51 PM

Post #1 of 2 (87 views)
Permalink
[Apache-Test + httpd24] [PATCH] Run "httpd -V" with the test config

Starting with 2.4, Apache needs to read its configuration file even to
report its version and build parameters with the "-V" option, probably
because the MPM module can be chosen at run time.

However, the system Apache configuration may not be available to the user
building mod_perl, or it may depend on special environment variables or
the like. The attached proposed patch makes Apache-Test use the test
configuration file and server root instead for the "-V" invocations,
if those are available.

I don't see any reason why this shouldn't be safe to use with earlier
versions of Apache too. Everything works for me with Apache 2.2 too FWIW.

We're currently using this for the Debian package, to run the test suite
in package builds with a controlled httpd config instead of relying on the
system one.
--
Niko Tyni ntyni [at] debian
Attachments: 0001-Run-httpd-V-with-the-test-config-and-server-root-if-.patch (1.38 KB)


jorton at redhat

Jun 24, 2013, 4:25 AM

Post #2 of 2 (78 views)
Permalink
Re: [Apache-Test + httpd24] [PATCH] Run "httpd -V" with the test config [In reply to]

On Sun, Jun 23, 2013 at 11:51:25PM +0300, Niko Tyni wrote:
> Starting with 2.4, Apache needs to read its configuration file even to
> report its version and build parameters with the "-V" option, probably
> because the MPM module can be chosen at run time.
>
> However, the system Apache configuration may not be available to the user
> building mod_perl, or it may depend on special environment variables or
> the like. The attached proposed patch makes Apache-Test use the test
> configuration file and server root instead for the "-V" invocations,
> if those are available.

Committed in http://svn.apache.org/r1495994 - thanks Niko!

Regards, Joe

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe [at] perl
For additional commands, e-mail: dev-help [at] perl

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.