summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-10-02 22:14:06 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-10-02 22:14:06 +0000
commitae4d15473ca2d6f07a87abcc31858dfb14011ee4 (patch)
treea6fb7acd65238d7619c13b8a846eb8984caad5a4
parent54f447b97ebaf70609238fc1e4236718a5e24e22 (diff)
web commit by RecaiOktas: Using FindBin in ikiwiki.pl.
-rw-r--r--doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn b/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn
index dbab70fe9..2c2660664 100644
--- a/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn
+++ b/doc/bugs/svn_post-commit_wrapper_can__39__t_find_IkiWiki.pm_if_not_installed.mdwn
@@ -1,3 +1,10 @@
If you're using ikiwiki without installing it, the svn post-commit wrapper will die (in a difficult-to-debug way) when it tries to execute ikiwiki.pl because it can't find IkiWiki.pm.
-I'm not sure how to fix this in a secure way. For now I'm just changing use lib '.' in ikiwiki.pl to point to the hard-coded directory where ikiwiki was unpacked. \ No newline at end of file
+I'm not sure how to fix this in a secure way. For now I'm just changing use lib '.' in ikiwiki.pl to point to the hard-coded directory where ikiwiki was unpacked.
+
+> This workaround doesn't work here. "`./ikiwiki.pl --setup ikiwiki.setup`" is ok, but the
+> wrappers fail in action. The below patch seems fine (only the relevant part). --[[Roktas]]
+
+ -use lib '.'; # For use without installation, removed by Makefile.
+ +use FindBin qw($Bin); # WILL_BE_REMOVED by Makefile.
+ +use lib ($Bin=~/(.+)/ ? "$1" : '.'); # For use without installation, WILL_BE_REMOVED by Makefile.