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
Index: ModPerl-Registry/t/conf/extra.conf.in
===================================================================
RCS file: /home/cvspublic/modperl-2.0/ModPerl-Registry/t/conf/extra.conf.in,v
retrieving revision 1.10
diff -u -r1.10 extra.conf.in
--- ModPerl-Registry/t/conf/extra.conf.in 5 Aug 2003 18:51:10 -0000 1.10
+++ ModPerl-Registry/t/conf/extra.conf.in 1 Oct 2003 17:22:56 -0000
@@ -145,4 +145,5 @@
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
-</Location>
\ No newline at end of file
+</Location>
+ScriptSock logs/cgisock
Index: t/conf/extra.conf.in
===================================================================
RCS file: /home/cvspublic/modperl-2.0/t/conf/extra.conf.in,v
retrieving revision 1.6
diff -u -r1.6 extra.conf.in
--- t/conf/extra.conf.in 3 Feb 2003 22:56:19 -0000 1.6
+++ t/conf/extra.conf.in 1 Oct 2003 17:22:57 -0000
@@ -23,3 +23,5 @@
PerlModule Doesnt::Exist
</IfDefine>
</IfModule>
+ScriptSock logs/cgisock
+SetEnv TMPDIR /tmp
--
Haroon Rafique
<[EMAIL PROTECTED]>
Index: ModPerl-Registry/t/conf/extra.conf.in
===================================================================
RCS file: /home/cvspublic/modperl-2.0/ModPerl-Registry/t/conf/extra.conf.in,v
retrieving revision 1.10
diff -u -r1.10 extra.conf.in
--- ModPerl-Registry/t/conf/extra.conf.in 5 Aug 2003 18:51:10 -0000 1.10
+++ ModPerl-Registry/t/conf/extra.conf.in 1 Oct 2003 17:22:56 -0000
@@ -145,4 +145,5 @@
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>
-</Location>
\ No newline at end of file
+</Location>
+ScriptSock logs/cgisock
Index: t/conf/extra.conf.in
===================================================================
RCS file: /home/cvspublic/modperl-2.0/t/conf/extra.conf.in,v
retrieving revision 1.6
diff -u -r1.6 extra.conf.in
--- t/conf/extra.conf.in 3 Feb 2003 22:56:19 -0000 1.6
+++ t/conf/extra.conf.in 1 Oct 2003 17:22:57 -0000
@@ -23,3 +23,5 @@
PerlModule Doesnt::Exist
</IfDefine>
</IfModule>
+ScriptSock logs/cgisock
+SetEnv TMPDIR /tmp