Haroon Rafique wrote:
Hi,

Find attached (and inline) a patch for smoother running of "make test" when running as a non-privileged user. This issue came to light while
running Gentoo Linux. The Gentoo package system "portage" has the ability
to run as a non-root user while building packages. Some file locations
were not accessible to that non-root user while running make test. E.g.,
on Gentoo, mod_cgid defaults to using /var/run/cgisock for its sockets,
however, the permissions for /var/run/cgisock on Gentoo are:


srwx------ 1 apache root 0 Oct 1 13:14 /var/run/cgisock

I used the ScriptSock directive to tell mod_cgid to make the socket file within the self-contained directory tree.

Along the same lines, CGI.pm likes to create new temp files in /tmp. I used the SetEnv directive to set TMPDIR environemnt variable to force it to create the temp files in a self-contained directory tree.

Comments are welcome. And we really should have a newline at the end of
ModPerl-Registry/t/conf/extra.conf.in

certainly, but does it break anything?


[...]

+SetEnv TMPDIR /tmp

This is not a portable change. If you have a particular problem with regards to temp dir it needs to be solved where it arises (e.g. using File::Temp), but you don't tell what the problem is, so I can't give you a solution.


> +ScriptSock logs/cgisock

We don't use mod_cgi in the mod_perl test suite. It's just a left-over from testing. Does this patch fix things for you?

Index: t/conf/extra.conf.in
===================================================================
RCS file: /home/cvs/modperl-2.0/ModPerl-Registry/t/conf/extra.conf.in,v
retrieving revision 1.10
diff -u -r1.10 extra.conf.in
--- t/conf/extra.conf.in        5 Aug 2003 18:51:10 -0000       1.10
+++ t/conf/extra.conf.in        1 Oct 2003 21:39:21 -0000
@@ -35,8 +35,6 @@
 Alias /registry_oo_conf/ @ServerRoot@/cgi-bin/
 Alias /perlrun/          @ServerRoot@/cgi-bin/

-ScriptAlias /cgi-bin/ @ServerRoot@/cgi-bin/
-
 PerlModule ModPerl::RegistryBB
 <Location /registry_bb>
     PerlOptions +GlobalRequest


__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com



Reply via email to