Skip Menu |

This queue is for tickets about the local-lib CPAN distribution.

Report information
The Basics
Id: 87633
Status: resolved
Priority: 0/
Queue: local-lib

People
Owner: Nobody in particular
Requestors: miyagawa [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.008026



Subject: problems with directory with spaces in it
Date: Mon, 5 Aug 2013 12:58:31 -0700
To: bug-local-lib [...] rt.cpan.org
From: Tatsuhiko Miyagawa <miyagawa [...] gmail.com>
If you give a directory with a space in it, it seems local::lib creates PERL_MM_OPT etc. with spaces unescaped, which leads to problems like installing modules to a different directory. Show quoted text
> perl -Mlocal::lib="/tmp/foo bar"
Attempting to create directory /tmp/foo bar export PERL_LOCAL_LIB_ROOT="$PERL_LOCAL_LIB_ROOT:/tmp/foo bar"; export PERL_MB_OPT="--install_base /tmp/foo bar"; export PERL_MM_OPT="INSTALL_BASE=/tmp/foo bar"; export PERL5LIB="/tmp/foo bar/lib/perl5:$PERL5LIB"; export PATH="/tmp/foo bar/bin:$PATH"; The original issue was https://github.com/miyagawa/cpanminus/issues/298 (which was redirected from another issue at carton). I know spaces in directory names have its own woes with make, wget etc. and add a warning when finding spaces in local::lib directory for now. -- Tatsuhiko Miyagawa
I have a fix for this which also works with paths with backslashes in the space-bs branch. It will require bumping the EUMM prereq to 6.74.
My branch is now merged, so this will be fixed in the next release.
Fixed in 1.008026