Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 71660
Status: resolved
Priority: 0/
Queue: Perl-Critic

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

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



Subject: Perl::Critic / Ubuntu r 8.2 install issues
Date: Thu, 13 Oct 2011 10:32:08 -0500
To: bug-Perl-Critic [...] rt.cpan.org
From: Seven Reeds <seven.reeds [...] gmail.com>
Hi, I have access to two Ubuntu machines. One runs Ubuntu version 10.3 [perl 5.10.1] and the other 8.2 [perl 5.8.8] -- I do not control the 8.2 machine. My real goal is to install HTML::Restrict but Perl::Critic is listed as a pre-req. I easily installed everything on the 10.2 machine but the "P::C" install on the 8.2 machine is failing tests. Ex: $ ./Build test Skipping generating tests because it doesn't look like we're in an author environment. t/00_modules.t ................................ Couldn't require Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr : Can't locate object method "new" via package "version" (perhaps you forgot to load "version"?) at /root/.cpan/build/Perl-Critic-1.116-24FlHD/blib/lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitLvalueSubstr.pm line 26. Compilation failed in require at (eval 60) line 3. at /usr/local/share/perl/5.8.8/Module/Pluggable.pm line 28 t/00_modules.t ................................ ok t/01_config.t ................................. Couldn't require Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr : Can't locate object method "new" via package "version" (perhaps you forgot to load "version"?) at /root/.cpan/build/Perl-Critic-1.116-24FlHD/blib/lib/Perl/Critic/Policy/BuiltinFunctions/ProhibitLvalueSubstr.pm line 26. Compilation failed in require at (eval 55) line 3. at /usr/local/share/perl/5.8.8/Module/Pluggable.pm line 28 t/01_config.t ................................. ok [...] and many, many others I would welcome assistance and/or a clue sr
Subject: Re: [rt.cpan.org #71660] Perl::Critic / Ubuntu r 8.2 install issues
Date: Thu, 13 Oct 2011 19:00:18 -0500
To: bug-Perl-Critic [...] rt.cpan.org
From: Elliot Shank <perl [...] galumph.com>
Which version of Perl::Critic are you trying to install and what version of version.pm do you have?
Subject: Re: [rt.cpan.org #71660] Perl::Critic / Ubuntu r 8.2 install issues
Date: Fri, 14 Oct 2011 09:44:26 -0500
To: bug-Perl-Critic [...] rt.cpan.org
From: Seven Reeds <seven.reeds [...] gmail.com>
I have 0.94 of version.pm installed. I am trying to install 1.116 of Perl::Critic.
On Fri Oct 14 10:44:34 2011, seven.reeds@gmail.com wrote: Show quoted text
> I have 0.94 of version.pm installed. I am trying to install 1.116 of > Perl::Critic.
Is this possibly a repeat of 68498 and 69294? If so, adding the missing 'use version' will fix it up. The problem only manifests sometimes because if _anyone_ loads version.pm before this module gets loaded, this module works. Perl::Critic uses Module::Pluggable to load policies, and it appears that on *nix systems Module::Pluggable's load order depends on the vagaries of the underlying file system.
Absent a response from the requester, I'm calling this a a repeat of 68498 and 69294, and marking it patched.
This was fixed in Perl-Critic-1.117. Thanks for reporting it. -- Jeffrey Thalhammer Imaginative Software Systems www.imaginative-software.com