aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://beaufils.myopenid.com/ <beaufils@web>2012-10-01 11:49:28 -0400
committeradmin <admin@branchable.com>2012-10-01 11:49:28 -0400
commitea3c9eb0c4cb4a8e2ef178f1bf9dae588e4a8cae (patch)
tree4f3ad42fcf8c6ed2e9fa7129487bf72c0957e07d
parent5997e0b0c26bc67f4a273f8f6714eff34596c103 (diff)
downloadikiwiki-ea3c9eb0c4cb4a8e2ef178f1bf9dae588e4a8cae.tar
ikiwiki-ea3c9eb0c4cb4a8e2ef178f1bf9dae588e4a8cae.tar.gz
Add a fast ugly patch for people in hurry
-rw-r--r--doc/bugs/CGI_wrapper_doesn__39__t_store_PERL5LIB_environment_variable.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/bugs/CGI_wrapper_doesn__39__t_store_PERL5LIB_environment_variable.mdwn b/doc/bugs/CGI_wrapper_doesn__39__t_store_PERL5LIB_environment_variable.mdwn
index 0da368644..81a5abf28 100644
--- a/doc/bugs/CGI_wrapper_doesn__39__t_store_PERL5LIB_environment_variable.mdwn
+++ b/doc/bugs/CGI_wrapper_doesn__39__t_store_PERL5LIB_environment_variable.mdwn
@@ -6,3 +6,23 @@ I think the CGI wrapper should remember PERL5LIB too.
-- Martin
+Thank's a lot for pointing me to this location in the code. I was looking it for some time.
+
+This brutal patch implement your solution as a temporary fix.
+
+ *** Wrapper.pm.old 2012-08-25 16:41:41.000000000 +0200
+ --- Wrapper.pm 2012-10-01 17:33:17.582956524 +0200
+ ***************
+ *** 149,154 ****
+ --- 149,155 ----
+ $envsave
+ newenviron[i++]="HOME=$ENV{HOME}";
+ newenviron[i++]="PATH=$ENV{PATH}";
+ + newenviron[i++]="PERL5LIB=$ENV{PERL5LIB}";
+ newenviron[i++]="WRAPPED_OPTIONS=$configstring";
+
+ #ifdef __TINYC__
+
+As I am not sure that remembering `PERL5LIB` is a good idea, I think that a prettier solution will be to add a config variable (let's say `cgi_wrapper_perllib`) which, if fixed, contains the `PERL5LIB` value to include in the wrapper, or another (let's say `cgi_wrapper_remember_libdir`), which, if fixed, remember the current `PERL5LIB`.
+
+-- Bruno