Skip Menu |

This queue is for tickets about the Fedora-Bugzilla CPAN distribution.

Report information
The Basics
Id: 78054
Status: new
Priority: 0/
Queue: Fedora-Bugzilla

People
Owner: Nobody in particular
Requestors: jplesnik [...] redhat.com
Cc:
AdminCc:

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



Subject: Tests fail when loading Fedora::Bugzilla::NewBug
The part of error output is below. The issue is solved by using MooseX::Types::DateTimeX in NewBug.pm instead of MooseX::Types::DateTime. Patch is attached. + make test /usr/bin/perl "-Iinc" "-MModule::Install::ExtraTests" "-e" "Module::Install::ExtraTests::__harness('Test::Harness', 0, 'xt/author', '', '', 0, 'blib/lib', 'blib/arch')" t/00.load.t t/01.login-logout.t t/02.live_bug_tests.t t/03.auto-login.t t/04.comments.t t/05.bugs.t t/06.xml_bits.t t/07.attachments.t t/50.live_attach.t t/51.live_bug.t t/60.live_bug_mods.t t/63.assignment.t # Failed test 'use Fedora::Bugzilla;' # at t/00.load.t line 4. # Tried to use 'Fedora::Bugzilla'. # Error: A coercion action already exists for 'Num' at /usr/lib64/perl5/vendor_perl/Moose/Meta/TypeCoercion.pm line 92. # Moose::Meta::TypeCoercion::add_type_coercions('Moose::Meta::TypeCoercion=HASH(0x2b0a9e8)', 'MooseX::Types::TypeDecorator=HASH(0x3915070)', 'CODE(0x391b448)', 'MooseX::Types::TypeDecorator=HASH(0x3b1cf60)', 'CODE(0x3b53698)', 'MooseX::Types::TypeDecorator=HASH(0x391acc8)', 'CODE(0x3914db8)') called at /usr/lib64/perl5/vendor_perl/Moose/Util/TypeConstraints.pm line 590 # Moose::Util::TypeConstraints::_install_type_coercions('DateTime', 'ARRAY(0x36b70d0)') called at /usr/lib64/perl5/vendor_perl/Moose/Util/TypeConstraints.pm line 403 # Moose::Util::TypeConstraints::coerce('DateTime', 'MooseX::Types::TypeDecorator=HASH(0x3915070)', 'CODE(0x391b448)', 'MooseX::Types::TypeDecorator=HASH(0x3b1cf60)', 'CODE(0x3b53698)', 'MooseX::Types::TypeDecorator=HASH(0x391acc8)', 'CODE(0x3914db8)') called at /usr/lib64/perl5/vendor_perl/Moose/Exporter.pm line 361 # MooseX::Types::CheckedUtilExports::coerce('DateTime', 'MooseX::Types::TypeDecorator=HASH(0x3915070)', 'CODE(0x391b448)', 'MooseX::Types::TypeDecorator=HASH(0x3b1cf60)', 'CODE(0x3b53698)', 'MooseX::Types::TypeDecorator=HASH(0x391acc8)', 'CODE(0x3914db8)') called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 68 # require MooseX/Types/DateTime.pm called at /builddir/build/BUILD/Fedora-Bugzilla-0.13/blib/lib/Fedora/Bugzilla/NewBug.pm line 26 # Fedora::Bugzilla::NewBug::BEGIN() called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # eval {...} called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # require Fedora/Bugzilla/NewBug.pm called at /builddir/build/BUILD/Fedora-Bugzilla-0.13/blib/lib/Fedora/Bugzilla.pm line 31 # Fedora::Bugzilla::BEGIN() called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # eval {...} called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # require Fedora/Bugzilla.pm called at (eval 4) line 2 # main::BEGIN() called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # eval {...} called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # eval 'package main; # use Fedora::Bugzilla @{$args[0]}; # 1; # # ;' called at /usr/share/perl5/Test/More.pm line 885 # Test::More::_eval('package main;\x{a}use Fedora::Bugzilla @{$args[0]};\x{a}1;\x{a}', 'ARRAY(0xbab9b8)') called at /usr/share/perl5/Test/More.pm line 860 # Test::More::use_ok('Fedora::Bugzilla') called at t/00.load.t line 4 # main::BEGIN() called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # eval {...} called at /usr/share/perl5/vendor_perl/MooseX/Types/DateTime.pm line 0 # Compilation failed in require at /builddir/build/BUILD/Fedora-Bugzilla-0.13/blib/lib/Fedora/Bugzilla/NewBug.pm line 26. # BEGIN failed--compilation aborted at /builddir/build/BUILD/Fedora-Bugzilla-0.13/blib/lib/Fedora/Bugzilla/NewBug.pm line 26. # Compilation failed in require at /builddir/build/BUILD/Fedora-Bugzilla-0.13/blib/lib/Fedora/Bugzilla.pm line 31. # BEGIN failed--compilation aborted at /builddir/build/BUILD/Fedora-Bugzilla-0.13/blib/lib/Fedora/Bugzilla.pm line 31. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. Use of uninitialized value $Fedora::Bugzilla::VERSION in concatenation (.) or string at t/00.load.t line 7. # Testing Fedora::Bugzilla # Looks like you failed 1 test of 1. t/00.load.t ............
Subject: perl-Fedora-Bugzilla-0.13-fix-NewBug.patch
diff -up Fedora-Bugzilla-0.13/lib/Fedora/Bugzilla/NewBug.pm.orig Fedora-Bugzilla-0.13/lib/Fedora/Bugzilla/NewBug.pm --- Fedora-Bugzilla-0.13/lib/Fedora/Bugzilla/NewBug.pm.orig 2012-06-26 11:06:39.670201180 +0200 +++ Fedora-Bugzilla-0.13/lib/Fedora/Bugzilla/NewBug.pm 2012-06-26 11:06:58.813276600 +0200 @@ -23,7 +23,7 @@ use MooseX::AttributeHelpers; use Moose::Util::TypeConstraints; use MooseX::Types::URI qw{ Uri }; -use MooseX::Types::DateTime qw{ DateTime }; +use MooseX::Types::DateTimeX qw{ DateTime }; use namespace::clean -except => 'meta';