NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item9841: Plugin installation fails due to broken extender.pl

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine extender.pl  
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
 

ItemTemplate edit

Summary Plugin installation fails due to broken extender.pl
ReportedBy KerstinPuschke
Codebase 1.1.0
SVN Range
AppliesTo Engine
Component extender.pl
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:9603 Foswikirev:9605
TargetRelease patch
ReleasedIn 1.1.1
Topic revision: r7 - 25 Oct 2010, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads