Item9841: Plugin installation fails due to broken extender.pl
Priority: Normal
Current State: Closed
Released In: 1.1.1
Target Release: patch
Applies To: Engine
Component: extender.pl
Branches:
Plugin installation on the commandline fails if
LocalSite.cfg
contains empty lines or
$Foswiki::cfg{ScriptDir}
uses double quotes. Running any Plugin installer throws the error 'There was a compile error: Can't locate setlib.cfg in @INC'.
This is due to a bug in the
sub getScriptDir
in
extender.pl
- it does not return the
ScriptDir
if your
LocalSite.cfg
has an empty line somewhere before the definition of
$Foswiki::cfg{ScriptDir}
, or if your
LocalSite.cfg
uses double quotes for the definition of
$Foswiki::cfg{ScriptDir}
.
Since
sub getScriptDir
does not return the
ScriptDir
, the
chdir
in line 101 fails. For some reason, this has no impact when using the
configure
webinterface - maybe it's already in the correct directory. On the commandline instead, it causes the installation to fail.
--
KerstinPuschke - 18 Oct 2010
I've committed a fix for 1.1.1 - you can find the modified extender.pl at
http://trac.foswiki.org/browser/branches/Release01x01/core/tools/extender.pl?rev=9605 If you have a chance to test it, please let us know. The fix works okay in my tests. Thanks for the detailed report.
--
GeorgeClark - 18 Oct 2010
Patch works for me, too.
--
KerstinPuschke - 19 Oct 2010