Skip Menu |

This queue is for tickets about the Contextual-Return CPAN distribution.

Report information
The Basics
Id: 88646
Status: resolved
Priority: 0/
Queue: Contextual-Return

People
Owner: Nobody in particular
Requestors: remy.dernat [...] univ-montp2.fr
Cc:
AdminCc:

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



CC: bug-Contextual-Return [...] rt.cpan.org
Subject: bug in install from cpanm (Contextual-Return-0.004007)
Date: Fri, 13 Sep 2013 09:41:07 +0200
To: bug-Statistics-PCA [...] rt.cpan.org
From: Dernat Rémy <remy.dernat [...] univ-montp2.fr>
Hi, I have a bug when I try to install Statistics-PCA, I have an error from Contectual::return in the method to get the version. I report the bug to you because I think the way to check version in the Contectual::return package has changed, so that is why the install of Statistics-PCA failed. From tarball: [root@cluster1 Statistics-PCA]# /opt/perl/bin/perl Build.PL Checking prerequisites... requires: ! Couldn't find a $VERSION in prerequisite Contextual::Return From Cpan: [root@compute-0-11 tmp]# /opt/perl/bin/cpanm Statistics::PCA --> Working on Statistics::PCA Fetching http://www.cpan.org/authors/id/D/DS/DSTH/Statistics-PCA-0.0.1.tar.gz ... OK Configuring Statistics-PCA-0.0.1 ... OK ==> Found dependencies: Contextual::Return --> Working on Contextual::Return Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Contextual-Return-0.004007.tar.gz ... OK Configuring Contextual-Return-0.004007 ... OK Building and testing Contextual-Return-0.004007 ... OK Successfully installed Contextual-Return-0.004007 ! Installing the dependencies failed: Missing version info for module 'Contextual::Return' ! Bailing out the installation for Statistics-PCA-v0.0.1. 1 distribution installed [root@compute-0-11 tmp]# /opt/perl/bin/cpanm Contextual::Return --> Working on Contextual::Return Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Contextual-Return-0.004007.tar.gz ... OK Configuring Contextual-Return-0.004007 ... OK Building and testing Contextual-Return-0.004007 ... OK Successfully installed Contextual-Return-0.004007 1 distribution installed [root@compute-0-11 tmp]# /opt/perl/bin/cpanm Statistics::PCA --> Working on Statistics::PCA Fetching http://www.cpan.org/authors/id/D/DS/DSTH/Statistics-PCA-0.0.1.tar.gz ... OK Configuring Statistics-PCA-0.0.1 ... OK ==> Found dependencies: Contextual::Return --> Working on Contextual::Return Fetching http://www.cpan.org/authors/id/D/DC/DCONWAY/Contextual-Return-0.004007.tar.gz ... OK Configuring Contextual-Return-0.004007 ... OK Building and testing Contextual-Return-0.004007 ... OK Successfully installed Contextual-Return-0.004007 ! Installing the dependencies failed: Missing version info for module 'Contextual::Return' ! Bailing out the installation for Statistics-PCA-v0.0.1. 1 distribution installed Informations about my configuration: [root@compute-0-11 tmp]# /opt/perl/bin/cpanm --version cpanm (App::cpanminus) version 1.7001 (/opt/perl/bin/cpanm) perl version 5.014002 (/opt/perl/bin/perl) %Config: archname=x86_64-linux-thread-multi installsitelib=/opt/perl/lib/site_perl/5.14.2 installsitebin=/opt/perl/bin installman1dir=/opt/perl/man/man1 installman3dir=/opt/perl/man/man3 sitelibexp=/opt/perl/lib/site_perl/5.14.2 archlibexp=/opt/perl/lib/5.14.2/x86_64-linux-thread-multi privlibexp=/opt/perl/lib/5.14.2 %ENV: PERL5LIB=/opt/perl/lib/site_perl/5.14.2 @INC: /opt/perl/lib/site_perl/5.14.2/x86_64-linux-thread-multi /opt/perl/lib/site_perl/5.14.2 /opt/perl/lib/site_perl/5.14.2/x86_64-linux-thread-multi /opt/perl/lib/site_perl/5.14.2 /opt/perl/lib/5.14.2/x86_64-linux-thread-multi /opt/perl/lib/5.14.2 . [root@compute-0-11 tmp]# /opt/perl/bin/perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-thread-multi Copyright 1987-2011, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. [root@compute-0-11 tmp]# uname -a Linux compute-0-11.local 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux [root@compute-0-11 tmp]# lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 6.3 (Final) Release: 6.3 Codename: Final Regards, Remy -- Rémy Dernat Ingénieur système et développement Equipe plateforme calcul bioinformatique Institut des Sciences de l'Evolution - Montpellier Plateforme calcul ISEM <http://kimura.univ-montp2.fr> Plateforme calcul MBB <http://mbb.univ-montp2.fr>
Subject: Re: [rt.cpan.org #88646] bug in install from cpanm (Contextual-Return-0.004007)
Date: Thu, 19 Sep 2013 08:04:25 +1000
To: bug-Contextual-Return [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Thanks for the report, Rémy. I can't find the problem within Contextual::Return. It definitely specifies a $VERSION variable (on line 90). Perhaps the bug is in cpanminus and you should report it to Miyagawa??? Damian
See https://rt.cpan.org/Ticket/Display.html?id=94940 "It seems M::M is confused by the "package DB" on line 13 of C::R. If you ask the version of the "DB" package it is correct." Test case: % perl -MModule::Metadata -le'print (Module::Metadata->new_from_module("Contextual::Return", inc => \@INC)->version' currently gives no output.
Subject: Re: [rt.cpan.org #88646] bug in install from cpanm (Contextual-Return-0.004007)
Date: Thu, 24 Jul 2014 09:25:30 -0700
To: bug-Contextual-Return [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Thanks for the update, Tom. Looks like this is definitely a problem in the toolchain, as the "package DB" trick is a Perl introspection technique of longstanding. Damian
RT-Send-CC: damian [...] conway.org
On 2014-07-24 09:26:24, damian@conway.org wrote: Show quoted text
> Thanks for the update, Tom. > > Looks like this is definitely a problem in the toolchain, as the > "package DB" > trick is a Perl introspection technique of longstanding. > > Damian
This cannot be fixed in Module::Metadata without breaking other things -- we simply cannot tell that the scope of the "package DB" statement has ended and the $VERSION declaration is back in the Contextual::Return namespace without doing a full parse of the file (e.g. via PPI), which requires far more overhead than can be afforded. In order for the $VERSION to be detected statically, it must be assigned before the next 'package' directive. Attached is a patch (there was no git repository listed in the distribution's metadata).
Subject: Return.pm.patch
--- lib/Contextual/Return-orig.pm 2015-09-11 16:22:40.000000000 -0700 +++ lib/Contextual/Return.pm 2015-09-11 16:23:45.000000000 -0700 @@ -1,5 +1,7 @@ package Contextual::Return; +our $VERSION = '0.004007'; + my %attrs_of; # Fake out CORE::GLOBAL::caller, Carp::*, and Scalar::Util::blessed() very early... @@ -87,8 +89,6 @@ } -our $VERSION = '0.004007'; - use warnings; use strict;
Subject: Re: [rt.cpan.org #88646] bug in install from cpanm (Contextual-Return-0.004007)
Date: Sat, 12 Sep 2015 13:17:11 +1000
To: bug-Contextual-Return [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Much appreciated, Karen. Patch applied and new release uploaded to CPAN. Damian