Skip Menu |

This queue is for tickets about the String-MkPasswd CPAN distribution.

Report information
The Basics
Id: 78952
Status: open
Priority: 0/
Queue: String-MkPasswd

People
Owner: cgrau [...] cpan.org
Requestors: obonhomme [...] nerim.net
Cc:
AdminCc:

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



Subject: Unable to build an RPM using cpan2rpm due to missing data in META.yml
Date: Tue, 14 Aug 2012 14:35:48 +0200
To: bug-String-MkPasswd [...] rt.cpan.org
From: Olivier BONHOMME <obonhomme [...] nerim.net>
Hello, I use the lib String-MkPasswd on a CentOS distribution and for practical reasons I intend to package the lib as a RPM. To do that I use the soft CPAN2RPM. It worked well for the version 0.02 but since the 0.03 CPAN2RPM had can't build without forcing version parameter. It would be nice if the RPM could be built without forcing these parameters like for the 0.02. Please find here after build traces. 0.02 ---- $ cpan2rpm --no-sign http://search.cpan.org//CPAN/authors/id/C/CG/CGRAU/String-MkPasswd-0.02.tar.gz -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: http://search.cpan.org//CPAN/authors/id/C/CG/CGRAU/String-MkPasswd-0.02.tar.gz -- Metadata retrieval Tarball extraction: [/exports/home/obonhomme/rpmbuild/SOURCES/String-MkPasswd-0.02.tar.gz] Generating spec file SPEC: /exports/home/obonhomme/rpmbuild/SPECS/String-MkPasswd.spec RPM: /exports/home/obonhomme/rpmbuild/RPMS/noarch/perl-String-MkPasswd-0.02-1.noarch.rpm -- Done - 0.03 ---- $ cpan2rpm --no-sign http://search.cpan.org//CPAN/authors/id/C/CG/CGRAU/String-MkPasswd-0.03.tar.gz -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: http://search.cpan.org//CPAN/authors/id/C/CG/CGRAU/String-MkPasswd-0.03.tar.gz -- Metadata retrieval Tarball extraction: [/exports/home/obonhomme/rpmbuild/SOURCES/String-MkPasswd-0.03.tar.gz] No version found, please use --version option. Stopped at /usr/bin/cpan2rpm line 580, <DATA> line 537. -- Done -- Version Information ------------------- OS : CentOS 5.8 Perl : 5.8.8 CPAN2RPM: 2.028 String-MkPasswd : 0.02 and 0.03 Many thanks for your help Regards, Olivier BONHOMME
On Tue Aug 14 08:36:06 2012, obonhomme@nerim.net wrote: Show quoted text
> To do that I use the soft CPAN2RPM. > > It worked well for the version 0.02 but since the 0.03 CPAN2RPM had > can't build without forcing version parameter. > > $ cpan2rpm --no-sign > http://search.cpan.org//CPAN/authors/id/C/CG/CGRAU/String-MkPasswd- > 0.03.tar.gz > > -- cpan2rpm - Ver: 2.028 -- > Upgrade check > Fetch: HTTP > > -- module: > http://search.cpan.org//CPAN/authors/id/C/CG/CGRAU/String-MkPasswd- > 0.03.tar.gz > -- > Metadata retrieval > Tarball extraction: > [/exports/home/obonhomme/rpmbuild/SOURCES/String-MkPasswd-0.03.tar.gz] > No version found, please use --version option. Stopped at > /usr/bin/cpan2rpm line 580, <DATA> line 537. > -- Done --
It appears that it's not META.yml that cpan2rpm uses to gather metadata, but either Build.PL or Makefile.PL. Here is what it parses out of the Build.PL file included in String-MkPasswd-0.03: { "ARRAY(0x15d01e8)" => undef, "Chris Grau <cgrau\@cpan.org>" => "dist_version_from", "lib/String/MkPasswd.pm" => "add_to_cleanup", "Module::Build" => "module_name", "perl" => "dist_author", "String::MkPasswd" => "license", } I'm not sure why it's doing this, but it's definitely confusing things. Nor, after briefly perusing the cpan2rpm code, am I entirely sure how I would modify Build.PL to get this to work. I've been switching other modules to use Dist::Zilla (which doesn't generate a Build.PL file), so I might just go ahead and do that.
I just uploaded String-MkPasswd-0.04, which only contains a Makefile.PL. Hopefully, that will solve the problem with cpan2rpm.
Subject: Re: [rt.cpan.org #78952] Unable to build an RPM using cpan2rpm due to missing data in META.yml
Date: Tue, 04 Sep 2012 11:52:33 +0200
To: bug-String-MkPasswd [...] rt.cpan.org
From: Olivier BONHOMME <obonhomme [...] nerim.net>
Le 18/08/2012 02:51, Chris Grau via RT a écrit : Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=78952 > > > I just uploaded String-MkPasswd-0.04, which only contains a Makefile.PL. > Hopefully, that will solve the problem with cpan2rpm.
Hello, I confirm that it's okay now with the version 0.04. cpan2rpm command works without any hacks. Thanks for your support Regards, Olivier BONHOMME