Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Git-CPAN-Patch CPAN distribution.

Report information
The Basics
Id: 61034
Status: resolved
Priority: 0/
Queue: Git-CPAN-Patch

People
Owner: Nobody in particular
Requestors: perl [...] evancarroll.com
Cc:
AdminCc:

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



Subject: Prototype mismatch
Runtime fail with git-cpan-import: ecarroll@rda:~/code/Catalyst-Plugin-Params-Nested$ git-cpan-import -- backpan Catalst::Plugin::Params::Nested Prototype mismatch: sub Git::CPAN::Patch::Import::chmod (@) vs none at /usr/share/perl/5.10/Exporter.pm line 67. at /usr/local/share/perl/5.10.1/Git/CPAN/Patch/Import.pm line 16 Aborting: git repository already present. use '--force' if it's really what you want to do Prototype mismatch seems to happen with every comand: ecarroll@rda:~/code/Catalyst-Plugin-Params-Nested$ git-cpan-import http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-Plugin- Params-Nested-0.04.tar.gz Prototype mismatch: sub Git::CPAN::Patch::Import::chmod (@) vs none at /usr/share/perl/5.10/Exporter.pm line 67. at /usr/local/share/perl/5.10.1/Git/CPAN/Patch/Import.pm line 16 importing Catalyst::Plugin::Params::Nested (http://search.cpan.org/CPAN/authors/id/B/BO/BOBTFISH/Catalyst-Plugin- Params-Nested-0.04.tar.gz) downloading Catalyst-Plugin-Params-Nested-0.04.tar.gz extracting distribution add 'Changes' add 'MANIFEST' add 'META.yml' add 'Makefile.PL' add 'README' add 'inc/Module/Install.pm' add 'inc/Module/Install/Base.pm' add 'inc/Module/Install/Can.pm' add 'inc/Module/Install/Fetch.pm' add 'inc/Module/Install/Makefile.pm' add 'inc/Module/Install/Metadata.pm' add 'inc/Module/Install/Win32.pm' add 'inc/Module/Install/WriteAll.pm' add 'lib/Catalyst/Plugin/Params/Nested.pm' add 'lib/Catalyst/Plugin/Params/Nested/Expander.pm' add 't/basic.t' Couldn't find upload date for Catalyst-Plugin-Params-Nested-0.04.tar.gz Couldn't find author for Catalyst-Plugin-Params-Nested-0.04.tar.gz created tag '0.04' (42a151668ecf351a729a6d78128a2634591a2182) -- Evan Carroll System Lord of the Internets http://www.evancarroll.com
Subject: Re: [rt.cpan.org #61034] Prototype mismatch
Date: Thu, 09 Sep 2010 20:37:52 -0400
To: bug-Git-CPAN-Patch [...] rt.cpan.org
From: Yanick Champoux <yanick [...] babyl.dyndns.org>
On 09/03/2010 02:05 PM, Evan Carroll via RT wrote: Show quoted text
> Prototype mismatch seems to happen with every comand:
Hmm... I don't see this on my own machine. Could you do a ./Build prereq_report in Git::CPAN::Path's distribution directory and attach to this ticket the resulting output?
As requested, requires: Module Need Have -----------------+---------+---------- autodie 0 2.10 BackPAN::Index 0.39 0.39 CLASS 0 1.00 CPANPLUS 0.84 0.9007 File::chdir 0 0.1004 File::chmod 0 0.32 File::Path 0 2.08 File::Temp 0.22 0.22 perl 5.010 5.10.1 Pod::Usage 0 1.36 configure_requires: Module Need Have ----------------+--------+---------- Module::Build 0 0.3607 -- Evan Carroll System Lord of the Internets http://www.evancarroll.com
The problem is File::chmod is trying to clobber the export by autodie, which is trying to clobber the CORE::chmod for the "or die $!" functionality. Pick your poison: perl -wE'use strict; use autodie; use File::chmod'; Though interestingly, it will at least not error the other way around (though I have no idea how this will work) perl -wE'use strict; use File::chmod; use autodie'; -- Evan Carroll System Lord of the Internets http://www.evancarroll.com