Skip Menu |

This queue is for tickets about the POE-Component-OpenSSH CPAN distribution.

Report information
The Basics
Id: 63792
Status: resolved
Priority: 0/
Queue: POE-Component-OpenSSH

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

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



Subject: test warnings - "overwriting a locally defined function (alias) with an accessor"
Testing fails with the following error: You are overwriting a locally defined function (alias) with an accessor at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Moose/Meta/Attribute.pm line 675 Moose::Meta::Attribute::_process_accessors('Class::MOP::Class::__ANON__::SERIAL::7=HASH(0x100e56038)', 'reader', 'alias', undef) called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Class/MOP/Attribute.pm line 360 Class::MOP::Attribute::install_accessors('Class::MOP::Class::__ANON__::SERIAL::7=HASH(0x100e56038)') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Moose/Meta/Attribute.pm line 623 Moose::Meta::Attribute::install_accessors('Class::MOP::Class::__ANON__::SERIAL::7=HASH(0x100e56038)') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Class/MOP/Method/Wrapped.pm line 54 Class::MOP::Method::Wrapped::__ANON__('Class::MOP::Class::__ANON__::SERIAL::7=HASH(0x100e56038)') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Class/MOP/Method/Wrapped.pm line 89 Class::MOP::Class::__ANON__::SERIAL::7::install_accessors('Class::MOP::Class::__ANON__::SERIAL::7=HASH(0x100e56038)') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Class/MOP/Class.pm line 789 Class::MOP::Class::__ANON__() called at /usr/local/lib/perl5/site_perl/5.12.2/Try/Tiny.pm line 76 eval {...} called at /usr/local/lib/perl5/site_perl/5.12.2/Try/Tiny.pm line 67 Try::Tiny::try('CODE(0x100de3860)', 'Try::Tiny::Catch=REF(0x100de39c8)') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Class/MOP/Class.pm line 794 Class::MOP::Class::_post_add_attribute('Moose::Meta::Class=HASH(0x100dde388)', 'Class::MOP::Class::__ANON__::SERIAL::7=HASH(0x100e56038)') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Class/MOP/Mixin/HasAttributes.pm line 45 Class::MOP::Mixin::HasAttributes::add_attribute('Moose::Meta::Class=HASH(0x100dde388)', 'Class::MOP::Class::__ANON__::SERIAL::7=HASH(0x100e56038)') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Moose/Meta/Class.pm line 304 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x100dde388)', 'alias', 'isa', 'Str', 'default', '', 'definition_context', 'HASH(0x100e54a28)', 'is', ...) called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Moose.pm line 70 Moose::has('Moose::Meta::Class=HASH(0x100dde388)', 'alias', 'is', 'ro', 'isa', 'Str', 'default', '') called at /usr/local/lib/perl5/site_perl/5.12.2/darwin-thread-multi-2level/Moose/Exporter.pm line 359 Moose::has('alias', 'is', 'ro', 'isa', 'Str', 'default', '') called at /usr/local/lib/perl5/site_perl/5.12.2/POE/Component/OpenSSH.pm line 16 require POE/Component/OpenSSH.pm called at /Users/pragmatic/scripts/poco_openssh.pl line 13 Runner::BEGIN() called at /usr/local/lib/perl5/site_perl/5.12.2/POE/Component/OpenSSH.pm line 0 eval {...} called at /usr/local/lib/perl5/site_perl/5.12.2/POE/Component/OpenSSH.pm line 0 I found that following the advice to use namespace::autoclean from the following thread on the Moose mailing list fixed (or hid?) the warning: http://news.gmane.org/gmane.comp.lang.perl.moose Also, I found this bug report for Moose, which may indicate that the warnings have started occurring quite recently: https://rt.cpan.org/Public/Bug/Display.html?id=57510
Subject: OpenSSH.pm.patch
11a12 > use namespace::autoclean;
This has been fixed in the last release.