perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Förtsch <>
Subject Failed to find a config file to save the custom configuration in
Date Thu, 19 Aug 2010 17:54:55 GMT

I'm getting '[  error] Failed to find a config file to save the custom 
configuration in' during one of my tests.

The code (spec file) looks like:

%perl Makefile.PL -apxs=%{apxs}
make %{?jobs:-j%jobs} &&
t/TEST -apxs %{apxs} -httpd_conf %{sysconfdir}/original/httpd-modperl.conf

So, APACHE_TEST_NO_STICKY_PREFERENCES is set and it shouldn't reach at all the 
place where the error is printed. The test uses Apache::Test in a <perl> 
section in

use Util::Search;
use Apache::Test;
use Apache::TestUtil qw/t_catfile/;


I believe the APACHE_TEST_NO_STICKY_PREFERENCES is not propagated to the 
Apache environment. And hence is tries to save the custom config. Does that 
sound reasonable?

If yes, I think the place to fix it is in

# propogate PerlPassEnv settings to the server
sub configure_env {
    my $self = shift;
    $self->preamble(IfModule => 'mod_perl.c',
                    [ qw(PerlPassEnv APACHE_TEST_TRACE_LEVEL
                         PerlPassEnv HARNESS_PERL_SWITCHES)

Shouldn't APACHE_TEST_NO_STICKY_PREFERENCES be added to this list?

Torsten Förtsch

Need professional modperl support? Hire me! (

Like fantasy?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message