1 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`... ;-)
3 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.
7 ===================================================================
8 --- lib-fixup.pl (revision 0)
9 +++ lib-fixup.pl (revision 0)
11 +#!/usr/bin/perl -i.bak -p
14 +my $libs = join('', map { "use lib '$_';\n" } split /:/, $ENV{PERL5LIB});
15 +s/(use IkiWiki;)/$1\n$libs/;
19 Property changes on: lib-fixup.pl
20 ___________________________________________________________________
24 ===================================================================
25 --- Makefile.PL (revision 2626)
26 +++ Makefile.PL (working copy)
31 + LANG=C ./lib-fixup.pl ikiwki.in
32 LANG=C ./ikiwiki.in doc html --templatedir=templates \
33 --underlaydir=basewiki \
34 --wikiname="ikiwiki" --verbose --no-rcs \