Front page | perl.perl5.porters |
Postings from October 2003
[perl #24119] CPAN.pm error in Win32: uses rename() not File::Copy::move
Thread Next
From:
Phill Wolf
Date:
October 5, 2003 15:58
Subject:
[perl #24119] CPAN.pm error in Win32: uses rename() not File::Copy::move
Message ID:
rt-24119-65659.10.3101907761716@rt.perl.org
# New Ticket Created by Phill Wolf
# Please include the string: [perl #24119]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24119 >
CPAN.pm (invoked as cpan in the command shell) reports a permission
problem trying to move a directory. The trouble is that CPAN.pm is using
the rename() function, which in Win32 can change a file's name but not
move it from one directory to another. A convenient solution is for
CPAN.pm to use File::Copy::move() instead. CPAN.pm already has a "use"
statement for File::Copy anyway.
diff:
3948c3948
< rename($distdir,$packagedir) or
---
> File::Copy::move($distdir,$packagedir) or
CPAN.pm has many other instances of rename(). I haven't checked them.
But making the one change above made CPAN.pm function well enough to
install some modules.
This is a bug report for perl from pbwolf@bellatlantic.net,
generated with the help of perlbug 1.34 running under perl v5.8.1.
-----------------------------------------------------------------
---
Flags:
category=library
severity=low
---
Site configuration information for perl v5.8.1:
Configured by pbwolf at Sun Sep 28 22:53:03 2003.
Summary of my perl5 (revision 5 version 8 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=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='cl', ccflags ='-MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DPERL_MSVCRT_READFIX',
optimize='-MD -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release
-libpath:"c:\perl58\5.8.1\lib\MSWin32-x86-multi-thread\CORE"
-machine:x86'
libpth=\lib
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib
odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib
winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib
version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"c:\perl58\5.8.1\lib\MSWin32-x86-multi-thread\CORE"
-machine:x86'
Locally applied patches:
---
@INC for perl v5.8.1:
C:/perl58/5.8.1/lib/MSWin32-x86-multi-thread
C:/perl58/5.8.1/lib
C:/perl58/site/5.8.1/lib/MSWin32-x86-multi-thread
C:/perl58/site/5.8.1/lib
.
---
Environment for perl v5.8.1:
HOME (unset)
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=bla bla bla
PERL_BADLANG (unset)
SHELL (unset)
Thread Next
-
[perl #24119] CPAN.pm error in Win32: uses rename() not File::Copy::move
by Phill Wolf