Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 4401
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

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



Subject: module reported as successfully installed after failing from permissions issues
Hello, I just tried running cpanp as a non-root user to see what would happen. What I hoped would happen is this: CPANPLUS would notice: "Oh, you don't have permission to make functional use of this configuration. I'll ask you if you'd like to set up your own configuration for ~user/.cpanplus now". To test, I arbitarily picked the Util module to install, since I knew it wasn't already installed and I don't use it. What follows is a partial output of that installation attempt. You can see that there a number of failures due to permissions problems. Yet, ultimately CPANPLUS declares that "All modules installed successfully". Extracting Util-0.07/ Extracting Util-0.07/t/ Extracting Util-0.07/t/text.t Extracting Util-0.07/t/debug.h Extracting Util-0.07/t/debug.pl Extracting Util-0.07/t/io.t Extracting Util-0.07/t/Node.pm Extracting Util-0.07/t/misc.t Extracting Util-0.07/t/math.t Extracting Util-0.07/t/clone.t Extracting Util-0.07/Util.xs Extracting Util-0.07/Changes Extracting Util-0.07/MANIFEST Extracting Util-0.07/Util.pm Extracting Util-0.07/TODO Extracting Util-0.07/Makefile.PL Extracting Util-0.07/README Running [/usr/bin/gzip -cd /usr/src/.cpanplus/authors/id/C/CH/CHOCOLATE/Util-0.07.tar.gz | /usr/local/bin/tar -xf -]... /usr/local/bin/tar: Util-0.07: Cannot mkdir: Permission denied /usr/local/bin/tar: Util-0.07/t: Cannot mkdir: No such file or directory /usr/local/bin/tar: Util-0.07/t/text.t: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/t/debug.h: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/t/debug.pl: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/t/io.t: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/t/Node.pm: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/t/misc.t: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/t/math.t: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/t/clone.t: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/Util.xs: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/Changes: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/MANIFEST: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/Util.pm: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/TODO: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/Makefile.PL: Cannot open: No such file or directory /usr/local/bin/tar: Util-0.07/README: Cannot open: No such file or directory /usr/local/bin/tar: Error exit delayed from previous errors tar/gzip error: No such file or directory in CPANPLUS::Internals::Extract::_untar at Sat Nov 15 12:22:23 2003 at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Extract.pm line 284 Key 'dir' is of invalid type for CPANPLUS::Internals::Install::_check_signature provided by CPANPLUS::Internals::Install::_install_module at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Install.pm line 576 Signature checking failed for /usr/src/.cpanplus/authors/id/C/CH/CHOCOLATE/Util-0.07.tar.gz in CPANPLUS::Internals::Install::_install_module at Sat Nov 15 12:22:23 2003 at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Install.pm line 153 Successfully installed Util All modules installed successfully
From: markstos [...] cpan.org
I just want to add that I just ran into a variation of this issue with .47. I tried to install the DateTime module. Eventually it said "All modules installed successfully"... except DateTime didn't appear to be actually installed. (perldoc DateTime didn't work). I ran the following again, and then it was actually installed: cpanp -i DateTime Here's the last of the output from that installation sequence: ##### 'make test' failed before this session, no point in retrying in CPANPLUS::Internals::Make::_make at Tue Dec 2 17:04:57 2003 at /usr/local/lib/perl5/site_perl/5.8.0/CPANPLUS/Internals/Make.pm line 493 Running [/usr/bin/make install]... Installing /usr/local/lib/perl5/site_perl/5.8.0/mach/auto/Params/Validate/Validate.so Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /usr/local/lib/perl5/site_perl/5.8.0/mach/Params/ValidatePP.pm Installing /usr/local/lib/perl5/site_perl/5.8.0/mach/Params/Validate.pm Installing /usr/local/lib/perl5/site_perl/5.8.0/mach/Params/ValidateXS.pm Installing /usr/local/lib/perl5/5.8.0/man/man3/Attribute::Params::Validate.3 Installing /usr/local/lib/perl5/5.8.0/man/man3/Params::ValidatePP.3 Installing /usr/local/lib/perl5/5.8.0/man/man3/Params::Validate.3 Installing /usr/local/lib/perl5/5.8.0/man/man3/Params::ValidateXS.3 Writing /usr/local/lib/perl5/site_perl/5.8.0/mach/auto/Params/Validate/.packlist FreeBSD: Registering installation in the package database Appending installation info to /usr/local/lib/perl5/site_perl/5.8.0/mach/perllocal.pod Report Params-Validate-0.70's testing result (PASS)?: [y/N]: y Sending report for Params-Validate-0.70 Successfully sent report for Params-Validate-0.70. Report DateTime-0.19's testing result (PASS)?: [y/N]: y Sending report for DateTime-0.19 Successfully sent report for DateTime-0.19. Successfully installed Class::Singleton Successfully installed DateTime Successfully installed DateTime::Locale Successfully installed DateTime::TimeZone Successfully installed Params::Validate All modules installed successfully