diff options
author | jcflack <jcflack@web> | 2014-09-14 13:35:03 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-09-14 13:35:03 -0400 |
commit | 1632140af6c991c6a63bed92e1570a6419042b22 (patch) | |
tree | bd1f35b3cfe63db1c87fc246ef2bd1add34c3326 | |
parent | ed1ab1622ce796b985acaf5198a53e925952a756 (diff) | |
download | ikiwiki-1632140af6c991c6a63bed92e1570a6419042b22.tar ikiwiki-1632140af6c991c6a63bed92e1570a6419042b22.tar.gz |
-rw-r--r-- | doc/bugs/CGI_wrapper_doesn__39__t_store_PERL5LIB_environment_variable.mdwn | 5 |
1 files changed, 5 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 81a5abf28..7655d401a 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 @@ -26,3 +26,8 @@ This brutal patch implement your solution as a temporary fix. 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 + +**Update:** I had not seen this bug earlier, but I ran into the same issue and made a more general solution. You can already add stuff to `%config{ENV}` in the setup file, but it was being processed too late for `PERL5LIB` to do any good. +[This change](https://github.com/jcflack/ikiwiki/commit/bc4721da0441a30822225c51b250be4cc5f8af24) moves the `%config{ENV}` handling earlier in the wrapper, so anything specified there is placed back in the actual environment before Perl gets control. Problem solved! + +-- Chap |