Skip Menu |

This queue is for tickets about the cpan2rpm CPAN distribution.

Report information
The Basics
Id: 27309
Status: resolved
Worked: 1.7 hours (100 min)
Priority: 0/
Queue: cpan2rpm

People
Owner: bbb [...] cpan.org
Requestors: apthorpe [...] cynistar.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.028_02



Subject: "interpolate" no longer supported by Pod::Text, breaking cpan2rpm
Date: Mon, 28 May 2007 00:29:04 -0500
To: bug-cpan2rpm [...] rt.cpan.org
From: Bob Apthorpe <apthorpe [...] cynistar.net>
cpan2rpm fails because of an interface change in Pod::Text: $ cpan2rpm Net::Server -- cpan2rpm - Ver: 2.027 -- Signatures not set up Upgrade check * A newer version of this program is now available. To upgrade * enter the following command: /usr/bin/cpan2rpm --upgrade Fetch: HTTP -- module: Net::Server -- Using cached URL: http://search.cpan.org//CPAN/authors/id/R/RH/RHANDOM/Net-Server-0.46.tar.gz Tarball found - not fetching Metadata retrieval Tarball extraction: [/usr/src/redhat/SOURCES/Net-Server-0.46.tar.gz] Can't locate object method "interpolate" via package "Pod::Text" at /usr/bin/cpan2rpm line 526. Can't return to /tmp/qP5twqbyb0/Net-Server-0.46 from /tmp/qP5twqbyb0 (No such file or directory) at /usr/lib/perl5/5.8.5/File/Temp.pm line 893 END failed--call queue aborted. -- Done -- This problem also affects cpan2rpm Ver. 2.028
From: apthorpe+cpan [...] cynistar.net
Note to self/community: The fix is to change Pod::Text to Pod::PlainText. The interpolate method comes from Pod::Parser; at some point Pod::Text switched from being a subclass of Pod::Parser to on of Pod::Simple, and Pod::Simple doesn't contain an interpolate method. On Mon May 28 01:29:55 2007, apthorpe@cynistar.net wrote: Show quoted text
> cpan2rpm fails because of an interface change in Pod::Text: > > $ cpan2rpm Net::Server > > -- cpan2rpm - Ver: 2.027 -- > Signatures not set up > Upgrade check > > * A newer version of this program is now available. To upgrade > * enter the following command: /usr/bin/cpan2rpm --upgrade > > Fetch: HTTP > > -- module: Net::Server -- > Using cached URL: >
http://search.cpan.org//CPAN/authors/id/R/RH/RHANDOM/Net-Server-0.46.tar.gz Show quoted text
> Tarball found - not fetching > Metadata retrieval > Tarball extraction: [/usr/src/redhat/SOURCES/Net-Server-0.46.tar.gz] > Can't locate object method "interpolate" via package "Pod::Text" at > /usr/bin/cpan2rpm line 526. > Can't return to /tmp/qP5twqbyb0/Net-Server-0.46 from /tmp/qP5twqbyb0 (No > such file or directory) at /usr/lib/perl5/5.8.5/File/Temp.pm line 893 > END failed--call queue aborted. > -- Done -- > > This problem also affects cpan2rpm Ver. 2.028
--- cpan2rpm 2005-06-18 00:06:54.000000000 -0500 +++ cpan2rpm.fix 2007-05-30 15:27:55.000000000 -0500 @@ -28,7 +28,7 @@ use warnings; use Getopt::Long; use Sys::Hostname; -use Pod::Text; +use Pod::PlainText; my ($ME, $RPM, $TMPDIR, %RPMDIR, $CWD, %info, %meta, $ARGS); @@ -359,7 +359,7 @@ sub get_meta { my $info = shift || $_; local $_; - my $pod = Pod::Text->new(); + my $pod = Pod::PlainText->new(); print "Metadata retrieval\n";
Thank you for this report. Version 2.028_02 of cpan2rpm has been patched to be compatible with the newer perl module while still being backwards compatible with the older perl modules.