aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-18 03:52:18 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-18 03:52:18 +0000
commit63db4f9dc6616b75ada8c04fd17e2a4f9a61ffd0 (patch)
tree1bd28686fac45163cef6d590fe3bc7516391a0f5 /doc
parent5236f0d1e4ce2d4f2a952c63e24b7ce3e983d49a (diff)
downloadikiwiki-63db4f9dc6616b75ada8c04fd17e2a4f9a61ffd0.tar
ikiwiki-63db4f9dc6616b75ada8c04fd17e2a4f9a61ffd0.tar.gz
web commit by http://id.inelegant.org/
Diffstat (limited to 'doc')
-rw-r--r--doc/patchqueue/lib-fixup.mdwn35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/patchqueue/lib-fixup.mdwn b/doc/patchqueue/lib-fixup.mdwn
new file mode 100644
index 000000000..ff5a0d5c7
--- /dev/null
+++ b/doc/patchqueue/lib-fixup.mdwn
@@ -0,0 +1,35 @@
+I'm using Ikiwiki on a box where I don't have root access, so I install all of my Perl modules in `~/lib`. The `ikiwiki.in` script is ran in Taint mode, which means that it ignores the contents of `$ENV{PERL5LIB}`. The result is that the current versions of the pre-requisite modules I've installed in `~/lib` are ignored by `./make`, which uses the outdated, and therefore incompatible versions, from the system-wide `@INC`... ;-)
+
+I imagine that there's a clean and elegant solution to this, but the hack I'm currently using is to have `./make` alter `ikiwki.in` before it's run, by inserting `use lib ...` lines for each of the directories in `$ENV{PERL5LIB}`. Again, this is clearly ugly, but it allows me to run `./make`, so I'm submitting it FWIW.
+
+<pre>
+Index: lib-fixup.pl
+===================================================================
+--- lib-fixup.pl (revision 0)
++++ lib-fixup.pl (revision 0)
+@@ -0,0 +1,7 @@
++#!/usr/bin/perl -i.bak -p
++use strict;
++use warnings;
++my $libs = join('', map { "use lib '$_';\n" } split /:/, $ENV{PERL5LIB});
++s/(use IkiWiki;)/$1\n$libs/;
++
++
+
+Property changes on: lib-fixup.pl
+___________________________________________________________________
+Name: svn:executable
+ + *
+Index: Makefile.PL
+===================================================================
+--- Makefile.PL (revision 2626)
++++ Makefile.PL (working copy)
+@@ -24,6 +24,7 @@
+ )
+
+ extra_build:
++ LANG=C ./lib-fixup.pl ikiwki.in
+ LANG=C ./ikiwiki.in doc html --templatedir=templates \
+ --underlaydir=basewiki \
+ --wikiname="ikiwiki" --verbose --no-rcs \
+</pre> \ No newline at end of file