Skip Menu |

This queue is for tickets about the CatalystX-TraitFor-Dispatcher-ExactMatch CPAN distribution.

Report information
The Basics
Id: 98708
Status: resolved
Priority: 0/
Queue: CatalystX-TraitFor-Dispatcher-ExactMatch

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

Bug Information
Severity: (no value)
Broken in: 0.002
Fixed in: (no value)



Subject: Test suite started to fail (Moose related?)
I guess it's some recent change in the Moose world: PERL_DL_NONLAZY=1 /bbbike/perl-5.12.5/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/01basic.t # Failed test 'use CatalystX::TraitFor::Dispatcher::ExactMatch;' # at t/01basic.t line 2. # Tried to use 'CatalystX::TraitFor::Dispatcher::ExactMatch'. # Error: Undefined subroutine &Scalar::Util::set_prototype called at /opt/perl-5.12.5/lib/site_perl/5.12.5/x86_64-linux/Moose/Exporter.pm line 395. # BEGIN failed--compilation aborted at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Types/Moose.pm line 6. # Compilation failed in require at /opt/perl-5.12.5/lib/site_perl/5.12.5/Parse/Method/Signatures.pm line 6. # BEGIN failed--compilation aborted at /opt/perl-5.12.5/lib/site_perl/5.12.5/Parse/Method/Signatures.pm line 6. # Compilation failed in require at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Method/Signatures/Meta/Method.pm line 13. # BEGIN failed--compilation aborted at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Method/Signatures/Meta/Method.pm line 13. # Compilation failed in require at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Declare/Syntax/MethodDeclaration.pm line 5. # BEGIN failed--compilation aborted at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Declare/Syntax/MethodDeclaration.pm line 5. # Compilation failed in require at /opt/perl-5.12.5/lib/site_perl/5.12.5/Module/Runtime.pm line 317. # Compilation failed in require at (eval 180) line 1. # BEGIN failed--compilation aborted at (eval 180) line 1. # at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Declare/Syntax/MooseSetup.pm line 9. # BEGIN failed--compilation aborted at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Declare/Syntax/MooseSetup.pm line 9. # Compilation failed in require at /opt/perl-5.12.5/lib/site_perl/5.12.5/Module/Runtime.pm line 317. # Compilation failed in require at (eval 6) line 1. # BEGIN failed--compilation aborted at (eval 6) line 1. # at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Declare.pm line 10. # BEGIN failed--compilation aborted at /opt/perl-5.12.5/lib/site_perl/5.12.5/MooseX/Declare.pm line 10. # Compilation failed in require at /tmpfs/.cpan-build/CatalystX-TraitFor-Dispatcher-ExactMatch-0.002-fO5jqW/blib/lib/CatalystX/TraitFor/Dispatcher/ExactMatch.pm line 5. # BEGIN failed--compilation aborted at /tmpfs/.cpan-build/CatalystX-TraitFor-Dispatcher-ExactMatch-0.002-fO5jqW/blib/lib/CatalystX/TraitFor/Dispatcher/ExactMatch.pm line 5. # Compilation failed in require at t/01basic.t line 2. # BEGIN failed--compilation aborted at t/01basic.t line 2. # Looks like you failed 1 test of 1. t/01basic.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests
On 2014-09-08 13:41:25, SREZIC wrote: Show quoted text
> I guess it's some recent change in the Moose world:
It isn't. We don't make big changes without a cycle of deprecation warnings first.
Subject: Test suite started to fail (bundled Scalar::Util?)
On 2014-09-08 17:27:46, ETHER wrote: Show quoted text
> On 2014-09-08 13:41:25, SREZIC wrote:
> > I guess it's some recent change in the Moose world:
> > It isn't. We don't make big changes without a cycle of deprecation > warnings first.
You're probably right. It's more likely that the inc/Scalar/Util* stuff is causing the problems.
Yes, I think the bundled Scalar::Util is interacting badly with the non-bundled version already on your system.
On 2014-09-09 14:42:09, TOBYINK wrote: Show quoted text
> Yes, I think the bundled Scalar::Util is interacting badly with the > non-bundled version already on your system.
It seems a lot of your distribution bundle Scalar::Util in inc/ and are affected. Probably a change in Scalar-List-Utils 1.40 is causing the problem, see https://metacpan.org/changes/distribution/Scalar-List-Utils#L12
Yes, I understand the problem. Makefile.PL is loading the bundled version of Scalar::Util. The bundled version of Scalar::Util loads a bunch of XS stuff, which is expected to implement the Scalar::Util::set_prototype function. However, since Scalar::Util 1.40, Scalar::Util::set_prototype has been a pure Perl wrapper around Sub::Util::set_prototype. So if post-1.40 Scalar::Util is installed, the pre-1.40 Scalar/Util.pm file stops providing any set_prototype function. I've been releasing updates for most of my Module::Install-based dists to resolve this issue. CatalystX-TraitFor-Dispatcher-ExactMatch should now be fixed.