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.

Item9274: Double slash in path to CPAN/lib

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine Configure  
In a standard foswiki 1.0.9 installation, I find the following paths (among others) in the output of configure under "@INC library path": /path/to/foswiki/lib/CPAN/lib//arch /path/to/foswiki/lib/CPAN/lib//5.10.1/x86_64-linux-gnu-thread-multi /path/to/foswiki/lib/CPAN/lib//5.10.1 /path/to/foswiki/lib/CPAN/lib/

Clearly, the double slashes after "CPAN/lib" should not be there. Currently, that does not cause any obvious problems, but might under more special circumstances. The problem seems to be the trailing slash in line 55 of /path/to/foswiki/bin/setlib.cfg: $CPANBASE = "$foswikiLibPath/CPAN/lib/" unless $CPANBASE;

If I remove the trailing slash, the problem vanishes. However, I cannot tell if that causes other problems (that I haven't noticed) somewhere else.

-- LutzGehlen - 07 Jul 2010

Confirmed on trunk too. It seems like an easy fix, but maybe someone like GeorgeClark who is more familiar with configure code can make sure.

-- PaulHarvey - 08 Jul 2010

None of our other file system path settings are supposed to include the trailing slash, so I believe that eliminating the trailing slash is probably the correct solution. I'll commit a fix and we can deal with the fallout.

-- GeorgeClark - 11 Jul 2010
 

ItemTemplate edit

Summary Double slash in path to CPAN/lib
ReportedBy LutzGehlen
Codebase 1.0.9, trunk
SVN Range
AppliesTo Engine
Component Configure
Priority Normal
CurrentState Closed
WaitingFor
Checkins Foswikirev:8128 Foswikirev:8129
TargetRelease patch
ReleasedIn 1.0.10, 1.1.0
Topic revision: r7 - 08 Sep 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