On Tue, 04 Jun 2013 10:31:03 +0300, Niko Tyni wrote:

> > The interesting thing is that after this change, the "second" test
> > suite, from ModPerl-Registry/t, gets suddenly called from
> > dh_auto_test; and fails because the necessary directories are not yet
> > there.
> Hm. I think that was actually the case earlier too and I just didn't
> notice it? At least the buildd logs seem that way.

I don't think I've seen it this way -- at least when I uploaded the
package it worked differently (and I would have noticed the failures
:))
 
> > So this is a new patch (for 2x DefaultRuntimeDir) and some changes in
> > debian/rules.
> Wouldn't putting DefaultRuntimeDir into debian/apache2.conf suffice?

Good idea!

Unfortunately it doesn't work, seems like this doesn't get through?!
(I've added it to debian/apache2.conf and disabled the patch).
But our config is used:

[... end of make test in t/ ...]
cd ModPerl-Registry && make test
make[3]: Entering directory 
`/tmp/buildd/libapache2-mod-perl2-2.0.8+httpd24-r1449661/ModPerl-Registry'
/usr/bin/perl -I../blib/arch -I../blib/lib \
    t/TEST -httpd_conf 
/tmp/buildd/libapache2-mod-perl2-2.0.8+httpd24-r1449661/debian/apache2.conf 
-clean
apache2: Could not open configuration file /etc/apache2/httpd.conf: No such 
file or directory
APACHE_TEST_GROUP= APACHE_TEST_HTTPD= APACHE_TEST_PORT= APACHE_TEST_USER= 
APACHE_TEST_APXS= \
    /usr/bin/perl -I../blib/arch -I../blib/lib \
    t/TEST -httpd_conf 
/tmp/buildd/libapache2-mod-perl2-2.0.8+httpd24-r1449661/debian/apache2.conf 
-bugreport -verbose=0 
apache2: Could not open configuration file /etc/apache2/httpd.conf: No such 
file or directory
/usr/sbin/apache2  -d 
/tmp/buildd/libapache2-mod-perl2-2.0.8+httpd24-r1449661/ModPerl-Registry/t -f 
/tmp/buildd/libapache2-mod-perl2-2.0.8+httpd24-r1449661/ModPerl-Registry/t/conf/httpd.conf
 -D APACHE2 -D PERL_USEITHREADS
using Apache/2.4.4 (worker MPM)

waiting 180 seconds for server to start: ... [..]

And ModPerl-Registry/t/logs/error_log has again:

(2)No such file or directory: AH01762: Failed to create shared memory segment 
on file /var/run/apache2/authdigest_shm.3747

> Ideally, I think Apache-Test should be modified to add DefaultRuntimeDir
> into the base httpd.conf where it sets ServerRoot et al. I looked at
> that a bit but didn't get quite there yet.

Ack, something like that would make sense.

Apache-Test/lib/Apache/TestConfig.pm looks good.
 
Yup, works. No sure if this should be configurable, for now I've
just added it to the conf template as "@ServerRoot@/run".


Interestingly the same file also claims to create t/logs:
    $self->gendir($vars->{t_logs});
(line 1560). No idea why this doesn't happen (in time?).

Back to DefaultRuntimeDir: debian/patches/310-rundir.patch from
yesterday replaced by debian/patches/310-defaultruntimedir.patch.    


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Funny Van Dannen: Schmutziges Fenster

Attachment: signature.asc
Description: Digital signature

Reply via email to