Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

CPAN update triggers attempt to re-install perl 5.6 #1464

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

Migrated from rt.perl.org#2671 (status was 'resolved')

Searchable as RT2671$

p5pRT commented 24 years ago

From lvirden@cas.org

Created by lvirden@cas.org

This morning while reading perl5-porters\, I noticed a note about a new version of File​::Copy as well as a note about an update to CPAN. When I started up CPAN\, cpan tells me to install Bundle​::CPAN to get the latest. When I do that\, CPAN downloads a new version of Perl 5.6 to install. As you can see below\, I already have that version. I even did a diff between the version CPAN is downloading and the version from which I did the install. The only differences are those pod doc nits that I am turning in as time permits.

I decided to skip building the bundle and just do a build on CPAN. No good - that too attempts to rebuild CPAN. Here's why​:

$ cpan Undefined value assigned to typeglob at (eval 9) line 12. Warning [/home/lwv26/.inputrc line 2]​:   Invalid variable `show-all-if-ambiguous'

cpan shell -- CPAN exploration and modules installation (v1.52) ReadLine support enabled

cpan> i /File​::Copy/ Going to read /home/lwv26/.cpan/sources/authors/01mailrc.txt.gz CPAN​: Compress​::Zlib loaded ok Going to read /home/lwv26/.cpan/sources/modules/02packages.details.txt.gz Scanning cache /home/lwv26/.cpan/build for sizes

  There's a new CPAN.pm version (v1.53) available!   [Current version is v1.52]   You might want to try   install Bundle​::CPAN   reload cpan   without quitting the current session. It should be a seamless upgrade   while we are running...

Going to read /home/lwv26/.cpan/sources/modules/03modlist.data.gz Module id = File​::Copy   DESCRIPTION Copying files or filehandles   CPAN_USERID GSAR (Gurusamy Sarathy \gsar@​ActiveState\.com)   CPAN_VERSION 2.03   CPAN_FILE GSAR/perl-5.6.0.tar.gz   DSLI_STATUS adpf (alpha\,developer\,perl\,functions)   MANPAGE File​::Copy - Copy files or filehandles   INST_FILE /vol/lwv26ldatae/lib/perl5/site_perl/5.6.0/File/Copy.pm   INST_VERSION 2.0

cpan>

However\, when I check the INST_FILE\, I see​:

$File​::Copy​::VERSION = '2.0'; $File​::Copy​::Too_Big = 1024 * 1024 * 2;

sub VERSION {   # Version of File​::Copy   return $File​::Copy​::VERSION; }

Perl Info ``` Flags: category=library severity=high Site configuration information for perl v5.6.0: Configured by lwv26 at Thu Mar 23 08:53:11 EST 2000. Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Platform: osname=solaris, osvers=2.6, archname=sun4-solaris uname='sunos lwv26awu 5.6 generic_105181-19 sun4u sparc sunw,ultra-5_10 ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef Compiler: cc='cc', optimize='-g', gccversion= cppflags='-DDEBUGGING -I/projects/gnu/sparc-sun-solaris2.6/include -I/vol/lwv26ldatae/include' ccflags ='-DDEBUGGING -I/projects/gnu/sparc-sun-solaris2.6/include -I/vol/lwv26ldatae/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' stdchar='unsigned char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='cc', ldflags ='-R/vol/SUNWspro/SC5.0/lib:/projects/gnu/sparc-sun-solaris2.6/lib:/vol/lwv26ldatae/lib -L/vol/SUNWspro/SC5.0/lib -L/usr/lib -L/usr/ccs/lib -L/projects/gnu/sparc-sun-solaris2.6/lib -L/vol/lwv26ldatae/lib ' libpth=/vol/SUNWspro/SC5.0/lib /usr/lib /usr/ccs/lib /projects/gnu/sparc-sun-solaris2.6/lib /vol/lwv26ldatae/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lsec libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G -L/vol/SUNWspro/SC5.0/lib -L/usr/lib -L/usr/ccs/lib -L/projects/gnu/sparc-sun-solaris2.6/lib -L/vol/lwv26ldatae/lib -R/vol/SUNWspro/SC5.0/lib:/projects/gnu/sparc-sun-solaris2.6/lib:/vol/lwv26ldatae/lib' Locally applied patches: @INC for perl v5.6.0: /home/lwv26/lib/perl5/ /projects/sprs_lwv/lib/perl5/ /vol/lwv26ldatae/lib/perl5/5.6.0/sun4-solaris /vol/lwv26ldatae/lib/perl5/5.6.0 /vol/lwv26ldatae/lib/perl5/site_perl/5.6.0/sun4-solaris /vol/lwv26ldatae/lib/perl5/site_perl/5.6.0 /vol/lwv26ldatae/lib/perl5/site_perl . Environment for perl v5.6.0: HOME=/home/lwv26 LANG=C LANGUAGE (unset) LD_LIBRARY_PATH=/lprod/cas/lib:/usr/dt/lib:/usr/openwin/lib:/usr/lib LOGDIR (unset) PATH=/vol/SUNWspro/bin:/ldatae/bin:/projects/sprs_lwv/sol26/bin:/projects/sprs_lwv/sol26/bin/mime:/projects/sprs_lwv/sol2/bin:/projects/sprs_lwv/bin:/projects/sprs_lwv/bin/mime:/home/lwv26/bin/D.news:/usr/perl5/bin:/projects/gnu/sparc-sun-solaris2.6/bin:/usr/tcl82/sun4/bin:/usr/tcl82/bin:/projects/xopsrc/sun4/bin:/projects/xopsrc/bin:/usr/atria/bin:/projects/intranet/bin:/projects/clearcase/bin:/vol/tclsrcsol/TclPro1.3/solaris-sparc/bin:/ldata2/teTeX/bin/sparc-sun-solaris2.6:/vol/adobe/Acrobat3/bin:/ldata/bin:/home/lwv26/bin/D.aws:/home/lwv26/bin/sol2:/home/lwv26/bin/D.frontend:/home/lwv26/bin/D.ksh:/cas/test/bin/sun4:/projects/sprs_lwv/bin/sol2:/usr/java1.2/bin:/home/lwv26/bin/sun4:/lprod/cas/bin:/usr/local/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/cas/bin/sun4:/cas/abin/sun4:/cas/X11/sun4/bin:/usr/ccs/bin:/uprod/bin:/usr/sbin:/usr/ucb:/cas/tools/bin/sun4:/cas/X11/sun4/tools/bin:/home/lwv26/bin:/cas/tools/pdbin/sun4:/home/lwv26/bin/D.mistypes:/home/lwv26/bin/D.toys:/home/lwv! 26/bin/D.tools:/projects/npd/npdweb/bin-sol2:/vol/tclsrcsol/TclPro/solaris-sparc/bin PERL5LIB=/home/lwv26/lib/perl5/:/projects/sprs_lwv/lib/perl5/: PERLDOC=-t PERLLIB=/home/lwv26/lib/perl:/projects/sprs_lwv/lib/perl: PERL_BADLANG (unset) SHELL=/bin/ksh -- Unless explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. -><- ```
p5pRT commented 24 years ago

From [Unknown Contact. See original ticket]

Here's an update on my CPAN problem. For some reason\, something installed an ancient version of File​::Copy in my $install_prefix/lib/site_perl/5.6.0 directory \, while perl itself installed the newer version of File​::Copy in the $install_prefix/lib/5.6.0 directory.

I have no idea what package installed the older version in that directory. Anyone have any ideas on how to figure it out? -- Larry W. Virden \mailto&#8203;:lvirden@&#8203;cas\.org \<URL​: http​://www.purl.org/NET/lvirden/> Unless explicitly stated to the contrary\, nothing in this posting should be construed as representing my employer's opinions. ->\<-

p5pRT commented 23 years ago

From The RT System itself

The problem came from the fact that perl 5.6.0 had a new naming style for the perl distribution so that it didn't match anymore to the hardcoded regular expression that recognizes perl distributions. The fix came with CPAN.pm version 1.53\, the RE had to be updated.