Subject: | 'make test' fails as root |
The version of Apache::TestRun provided by Apache::Test in CPAN fails if
run as root:
if ($user eq 'root') {
error "Apache cannot spawn child processes as root, therefore
the test suite must be run as a non-privileged user.";
exit_perl(0);
}
However the Apache::TestRun in mod_perl-2.0.4 is more forgiving. It will
try to run the test as a non-root user, and if it cannot (because
directory permissions are wrong) it will skip the test.
The new behaviour causes the following problem for me. When installing
Netdot (netdot.uoregon.edu), there's a script to install all the
dependencies, which must be run as root:
# make installdeps-apt-get
This does some apt-get's to pull in some packages, then uses CPAN to
pull in additional perl modules. However it fails to install
Apache2::AuthCookie; that module has a dependency on Apache::Test
Show quoted text
>=1.32, and so I get the newer Apache::Test instead of the one from
mod_perl2. See https://rt.cpan.org/Public/Bug/Display.html?id=64933 for
a transcript.
Then it also fails to install Apache2::SiteControl because that in turn
depends on the failed Apache2::AuthCookie.
Would it be possible to make Apache::TestRun succeed silently if run as
root? If not, what's the recommended way to make packages which depend
on Apache::TestRun install successfully when cpan is run as root?
Thanks,
Brian.