Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2009 09:41:33 +1000
From:      andrew clarke <mail@ozzmosis.com>
To:        Cezary Morga <cm@therek.net>
Cc:        ports@freebsd.org, skv@FreeBSD.org
Subject:   Re: net/p5-Net-Twitter broken
Message-ID:  <20090713234133.GA58722@ozzmosis.com>
In-Reply-To: <4A5B8B9A.8040102@therek.net>
References:  <20090713023855.GA46001@ozzmosis.com> <4A5B8B9A.8040102@therek.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon 2009-07-13 21:31:38 UTC+0200, Cezary Morga (cm@therek.net) wrote:

> >I've been trying to get Twirssi (http://www.twirssi.com/) running
> >under Irssi but am encountering an error relating to Net::Twitter.  My
> >Perl knowledge is very limited, so I'm not too sure what's going on.
> >The same error (below) occurs when I try to use this module from my
> >own program.  I suspect the problem is within p5-Moose but I don't
> >know how to confirm this.
> 
> Strange, I had no such problem as you described.
> First off, I'd start from something like following an look for any
> 'missing' modules, or ones that have wrong (too old) version number.

I don't think there's anything missing?  My ports tree is up-to-date.

> cd /usr/ports/net/p5-Net-Twitter && make clean configure
> 
> Than I'd check if it passes all tests:
> 
> cd /usr/ports/net/p5-Net-Twitter && make clean build
> cd work/Net-Twitter-3.01000 && make test

Ah, I wasn't aware of the "test" target.  That should help.

OK, after installing devel/p5-Test-Exception, I get the same error as before:

PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.9 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/01_basic.t t/02_fails.t t/10_net-twitter-regression.t t/11_useragent.t t/12_identica.t t/13_search.t t/20_exceptions.t t/20_generated.t t/21_wraperror.t t/22_twitter_insanity.t t/30_legacy.t t/99-pod_coverage.t t/99-pod_spelling.t t/99-pod_syntax.t
t/01_basic.....................
#   Failed test 'use Net::Twitter;'
#   at t/01_basic.t line 63.
#     Tried to use 'Net::Twitter'.
#     Error:  I do not understand this option (is => bare) on attribute (_trait_namespace) at /usr/local/lib/perl5/site_perl/5.8.9/Moose/Meta/Attribute.pm line 79
# 	Moose::Meta::Attribute::new('Moose::Meta::Attribute', '_trait_namespace', 'init_arg', undef, 'isa', 'Str', 'is', 'bare') called at /usr/local/lib/perl5/site_perl/5.8.9/Moose/Meta/Attribute.pm line 88
# 	Moose::Meta::Attribute::interpolate_class_and_new('Moose::Meta::Attribute', '_trait_namespace', 'init_arg', undef, 'isa', 'Str', 'is', 'bare') called at /usr/local/lib/perl5/site_perl/5.8.9/Moose/Meta/Class.pm line 587

[...]

Digging further, I see some potential problems with devel/p5-MooseX-Traits:

===>  Configuring for p5-MooseX-Traits-0.06
Cannot determine perl version info from lib/MooseX/Traits.pm
Checking if your kit is complete...
Looks good
Warning: prerequisite Moose 0.84 not found. We have 0.81.
Warning: prerequisite ok 0 not found.
Writing Makefile for MooseX::Traits

And "make test" fails here, too:

PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.9 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00-load.....Can't locate ok.pm in @INC (@INC contains: /spare/ports/devel/p5-MooseX-Traits/work/MooseX-Traits-0.06/inc /spare/ports/devel/p5-MooseX-Traits/work/MooseX-Traits-0.06/blib/lib /spare/ports/devel/p5-MooseX-Traits/work/MooseX-Traits-0.06/blib/arch /usr/local/lib/perl5/5.8.9/BSDPAN /usr/local/lib/perl5/site_perl/5.8.9/mach /usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach /usr/local/lib/perl5/5.8.9 . /usr/local/lib/perl5/5.8.9/BSDPAN /usr/local/lib/perl5/site_perl/5.8.9/mach /usr/local/lib/perl5/site_perl/5.8.9 /usr/local/lib/perl5/5.8.9/mach /usr/local/lib/perl5/5.8.9 .) at t/00-load.t line 6.
BEGIN failed--compilation aborted at t/00-load.t line 6.
# Looks like your test exited with 2 before it could output anything.
dubious
	Test returned status 2 (wstat 512, 0x200)
DIED. FAILED test 1
	Failed 1/1 tests, 0.00% okay
t/basic.......I do not understand this option (is => bare) on attribute (_trait_namespace) at /usr/local/lib/perl5/site_perl/5.8.9/Moose/Meta/Attribute.pm line 79
	Moose::Meta::Attribute::new('Moose::Meta::Attribute', '_trait_namespace', 'init_arg', undef, 'isa', 'Str', 'is', 'bare') called at /usr/local/lib/perl5/site_perl/5.8.9/Moose/Meta/Attribute.pm line 88

[...]

Stop in /usr/ports/devel/p5-MooseX-Traits/work/MooseX-Traits-0.06.

Regards
Andrew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090713234133.GA58722>