Skip Menu |

This queue is for tickets about the CPANPLUS-Dist-Gentoo CPAN distribution.

Report information
The Basics
Id: 63819
Status: resolved
Priority: 0/
Queue: CPANPLUS-Dist-Gentoo

People
Owner: Nobody in particular
Requestors: redneb [...] gmx.com
Cc:
AdminCc:

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



Subject: undefined value used as a HASH reference at CPANPLUS/Dist/Gentoo.pm
Date: Fri, 10 Dec 2010 21:35:35 -0500
To: bug-CPANPLUS-Dist-Gentoo [...] rt.cpan.org
From: redneb [...] gmx.com
While trying to install perlconsole-0.4 I got the following error: Dist creation of 'PerlConsole::Commands' failed: 'Can't use an undefined value as a HASH reference at /usr/lib/perl5/vendor_perl/5.12.2/CPANPLUS/Dist/Gentoo.pm line 429. Line 429 of CPANPLUS/Dist/Gentoo.pm contains the following: my $license = $self->meta->{license}; So apparently $self->meta is undef and therefore cannot be used as a hash reference. I an not sure if this should be considered a CPANPLUS::Dist::Gentoo bug since it seems to be caused by perlconsole not having a META.yml file, but still it would be nice if CPANPLUS::Dist::Gentoo could handle the situation more gracefully. For example changing the above line to my $license = ($self->meta || {})->{license}; makes it possible to install perlconsole-0.4.
Thanks for your report. This has already been fixed in the git repository for a while, so you may want to use the current development version instead. I haven't released a fixed version yet because of other issues that prevents the module from working properly anyway (especially with recursive dependencies). Vincent.
Now publicly fixed in version 0.11. Vincent.