Subject: | Problem with newer Class::Accessor |
Date: | Tue, 29 Sep 2009 22:40:26 +0200 |
To: | bug-Audio-MPD [...] rt.cpan.org |
From: | gregor herrmann <gregoa [...] debian.org> |
Hi,
this is Debian bug http://bugs.debian.org/548305, the problem can
also be seen on the CPAN Testers Reports page at
http://www.cpantesters.org/distro/A/Audio-MPD.html#Audio-MPD-0.19.6
Audio-MPD doesn't work with Class::Accessor >= 0.34. The problem is
that Class::Accessor added an import method, which Audio::MPD is now
inheriting instead of the one from Exporter.
A simple fix is to change the order:
--- a/lib/Audio/MPD.pm
+++ b/lib/Audio/MPD.pm
@@ -22,7 +22,7 @@
use Readonly;
-use base qw[ Class::Accessor::Fast Exporter ];
+use base qw[ Exporter Class::Accessor::Fast ];
__PACKAGE__->mk_accessors(
qw[ _conntype _host _password _port _socket
collection playlist version ] );
Cheers,
gregor, Debian Perl Group
--
.''`. http://info.comodo.priv.at/ -- GPG Key IDs: 0x00F3CFE4, 0x8649AA06
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT, SPI Inc., fellow of FSFE | http://got.to/quote/
`- NP: Paul Simon: Train In The Distance
Message body not shown because it is not plain text.