Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: perl [...] csjewell.fastmail.us
Cc:
AdminCc:

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



Subject: local::lib and Win32 don't quite work together (bug 1)
Date: Tue, 02 Jun 2009 22:50:48 -0600
To: bug-local-lib [...] rt.cpan.org
From: "Curtis Jewell" <perl [...] csjewell.fastmail.us>
The first bug is that the paths in PERL5LIB and PATH are colon separated, instead of semicolon-separated (and are also "export"ed instead of "set".) Once that's fixed, I'll send others your way. If there's a repository I can work against (a svn one, preferably) I'll send a patch pretty quickly. C:\>perl -Mlocal::lib Attempting to create directory C:\Documents and Settings\Curtis\perl5 Attempting to create file C:\Documents and Settings\Curtis\perl5\.modulebuildrc export MODULEBUILDRC="C:\Documents and Settings\Curtis\perl5\.modulebuildrc" export PERL_MM_OPT="INSTALL_BASE=C:\Documents and Settings\Curtis\perl5" export PERL5LIB="C:\Documents and Settings\Curtis\perl5\lib\perl5:C:\Documents a nd Settings\Curtis\perl5\lib\perl5\MSWin32-x86-multi-thread" export PATH="C:\Documents and Settings\Curtis\perl5\bin:$PATH" C:\>perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTE XT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='3.4.5', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseek size=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\li b"' libpth=C:\strawberry\c\lib libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdl g32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lw inmm -lversion -lodbc32 -lodbccp32 libc=-lmsvcrt, so=dll, useshrplib=true, libperl=libperl510.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\st rawberry\c\lib"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO Built under MSWin32 Compiled at Apr 30 2009 14:30:10 @INC: C:/strawberry/perl/lib C:/strawberry/perl/site/lib . [If you're wondering, this is Strawberry Perl 5.10.0.5... I'll be installing 5.10.0.6b2 on this machine soon.] --Curtis -- Curtis Jewell swordsman@csjewell.fastmail.us %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail] -- Curtis Jewell swordsman@csjewell.fastmail.us %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail]
Subject: Re: [rt.cpan.org #46636] local::lib and Win32 don't quite work together (bug 1)
Date: Tue, 09 Jun 2009 18:07:10 -0600
To: "Hans Dieter Pearcey via RT" <bug-local-lib [...] rt.cpan.org>
From: "Curtis Jewell" <swordsman [...] csjewell.fastmail.us>
Date: Wed, 10 Jun 2009 00:07:10 UT
Here's the first pass patch - I haven't exhaustively tested it yet, but the t/install.t test passes, even within a directory with spaces in it. Here's the example output on my system, which looks like what it should be. C:\local-lib>perl -Mlocal::lib Attempting to create directory C:\Documents and Settings\Curtis\perl5 Attempting to create file C:\DOCUME~1\Curtis\perl5\.modulebuildrc set MODULEBUILDRC=C:\DOCUME~1\Curtis\perl5\.modulebuildrc set PERL_MM_OPT=INSTALL_BASE=C:\DOCUME~1\Curtis\perl5 set PERL5LIB=C:\DOCUME~1\Curtis\perl5\lib\perl5;C:\DOCUME~1\Curtis\perl5\lib\perl5\MSWin32-x86-multi-thread set PATH=C:\DOCUME~1\Curtis\perl5\bin;%PATH% --Curtis -- Curtis Jewell swordsman@csjewell.fastmail.us %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail]
Date: Wed, 10 Jun 2009 00:07:10 UT

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #46636] local::lib and Win32 don't quite work together (bug 1)
Date: Wed, 10 Jun 2009 22:49:07 -0600
To: "Hans Dieter Pearcey via RT" <bug-local-lib [...] rt.cpan.org>
From: "Curtis Jewell" <perl [...] csjewell.fastmail.us>
Date: Thu, 11 Jun 2009 04:49:07 UT
I've tested --self-contained (using LWP as the module to install), --bootstrap, installing a module with 10 prerequisites that needed installed (Catalyst::Runtime), and installing an XS module (Text::Iconv) and everything works. This patch replaces the first one, and adds documentation and a small patch to Makefile.PL to be technically correct, along the same lines as some of the changes in the module itself (':' -> $Config{path_sep}) It also increases the version to 1.004002 (1.4.2), but does not add an entry to the Changes file. This should do it - I don't have a non-Win32 system to use to make sure nothing broke, but I've been defensive - nothing should have. Once you release this version, it'll be releasable in Strawberry Perl. I may include a script with Strawberry to add the registry entries mentioned in the documentation (the equivalent of appending to .bashrc) - or it could be requested that it's something that needs added to this module, and I'll write the code if that request is made. -- Curtis Jewell swordsman@csjewell.fastmail.us %DCL-E-MEM-BAD, bad memory -VMS-F-PDGERS, pudding between the ears [I use PC-Alpine, which deliberately does not display colors and pictures in HTML mail]
Date: Thu, 11 Jun 2009 04:49:07 UT

Message body is not shown because sender requested not to inline it.

Other than the fact that the package for 1.004002 is missing the files in t\dist, it works great! closing.
Fixed.