cpan2rpm-general Mailing List for cpan2rpm
Brought to you by:
ekkis
You can subscribe to this list here.
2003 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
|
May
(12) |
Jun
(13) |
Jul
(10) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
(3) |
Nov
(3) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Srikanth R <rs...@gm...> - 2013-06-20 06:53:00
|
hi all, I am trying to build an rpm out of class-inspector-1.28 pkg. It actually fails with no error msg. I tried the online package builder, it also fails. Could not figure out the root cause. Any help is greatly appreciated :) Details below, Module :: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Class-Inspector-1.28.tar.gz -- Stdout -bash-4.1$ ../../cpan2rpm-2.028/cpan2rpm --no-depchk --no-sign . -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: /home/srajan/perl-dbix/cpan/Class-Inspector-1.28 -- Metadata retrieval -bash-4.1$ ../../cpan2rpm-2.028/cpan2rpm --debug=10 --no-depchk --no-sign . -- cpan2rpm - Ver: 2.028 -- DEBUG=ON [10] Upgrade check Fetch: HTTP -- module: /home/srajan/perl-dbix/cpan/Class-Inspector-1.28 -- Metadata retrieval Prototype mismatch: sub main::prompt ($;$) vs none at inc/Module/Install.pm line 225. -- Done -- -Thanks, Srikanth |
From: Erick C. <zen...@gm...> - 2012-11-30 22:02:34
|
that's cool. you know I put cpan2rpm up on github right? so you can contribute as you like: https://github.com/ekkis/cpan2rpm On Nov 30, 2012, at 8:13 AM, Sullivan Beck wrote: > About a year ago, I was given the job of building a large number of perl > module RPMs on both RHEL5 and RHEL6. I started using cpan2rpm and > encountered a number of problems (primarily due to the fact that it > hasn't been active for quite a number of years) including: > > lack of support for Build.PL modules > interactive Makefile.PL scripts cause it to hang > > Anyway, after an attempt to modify it, I eventually decided to write my > own (heavily borrowing from the ideas in cpan2rpm, and also borrowing a > bit from cpanspec). > > I appreciate the work that went into both these tools. > > Anyway, I've been using cpantorpm now for a while and have built around > 300 modules on RHEL5, 100 on RHEL6, and a couple (just to test it out) > on OpenSuSE 12.1. In theory, it should run on any RPM based > distribution, but since this is brand new, it's not tested on any but > the three distributions I mentioned. > > I just put cpantorpm on CPAN and it should be available tomorrow. > > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > TUNE You got it built. Now make it sing. Tune shows you how. > http://goparallel.sourceforge.net > _______________________________________________ > Cpan2rpm-general mailing list > Cpa...@li... > https://lists.sourceforge.net/lists/listinfo/cpan2rpm-general |
From: Sullivan B. <sb...@cp...> - 2012-11-30 20:44:20
|
About a year ago, I was given the job of building a large number of perl module RPMs on both RHEL5 and RHEL6. I started using cpan2rpm and encountered a number of problems (primarily due to the fact that it hasn't been active for quite a number of years) including: lack of support for Build.PL modules interactive Makefile.PL scripts cause it to hang Anyway, after an attempt to modify it, I eventually decided to write my own (heavily borrowing from the ideas in cpan2rpm, and also borrowing a bit from cpanspec). I appreciate the work that went into both these tools. Anyway, I've been using cpantorpm now for a while and have built around 300 modules on RHEL5, 100 on RHEL6, and a couple (just to test it out) on OpenSuSE 12.1. In theory, it should run on any RPM based distribution, but since this is brand new, it's not tested on any but the three distributions I mentioned. I just put cpantorpm on CPAN and it should be available tomorrow. |
From: Sullivan B. <sb...@cp...> - 2012-11-30 19:54:20
|
About a year ago, I was given the job of building a large number of perl module RPMs on both RHEL5 and RHEL6. I started using cpan2rpm and encountered a number of problems (primarily due to the fact that it hasn't been active for quite a number of years) including: lack of support for Build.PL modules interactive Makefile.PL scripts cause it to hang Anyway, after an attempt to modify it, I eventually decided to write my own (heavily borrowing from the ideas in cpan2rpm, and also borrowing a bit from cpanspec). I appreciate the work that went into both these tools. Anyway, I've been using cpantorpm now for a while and have built around 300 modules on RHEL5, 100 on RHEL6, and a couple (just to test it out) on OpenSuSE 12.1. In theory, it should run on any RPM based distribution, but since this is brand new, it's not tested on any but the three distributions I mentioned. I just put cpantorpm on CPAN and it should be available tomorrow. |
From: Erick C. <zen...@gm...> - 2012-10-12 17:59:24
|
Nico, glad to hear you have a set of patches for this. honestly I haven't had time to maintain this but I did open it up on github some time ago at: https://github.com/ekkis/cpan2rpm so if you'd like to integrate your changes with that, it will make it easier for others to collaborate. - ekkis On Oct 12, 2012, at 5:09 AM, Nico Kadel-Garcia wrote: > On Fri, Oct 12, 2012 at 4:55 AM, Kobus Bensch <kb...@fu...> wrote: >> Hi >> >> I downloaded the software this morning and have so far not been able to >> build a single rpm from any cpan module. > > I've got some RPM building tools for it, with patches, at: > > https://github.com/nkadel/cpan2rpm-2.028-srpm > > There are some particularly useful patches for more recent versions of > perl and RHEL 6 or Fedora. > >> I want to build Plack as an rpm so I run: >> cpan2rpm Plack >> >> -- cpan2rpm - Ver: 2.028 -- >> Upgrade check >> Fetch: HTTP >> >> -- module: Plack -- >> Using cached URL: >> http://search.cpan.org//CPAN/authors/id/M/MI/MIYAGAWA/Plack-1.0005.tar.gz >> Tarball found - not fetching >> Metadata retrieval >> Tarball extraction: [/root/rpmbuild/SOURCES/Plack-1.0005.tar.gz] >> Unable to build module, the following dependencies have failed: >> Test::Requires >= 0 >> Stream::Buffered >= 0.02 >> Test::TCP >= 1.02 >> File::ShareDir >= 1.00 >> Hash::MultiValue >= 0.05 >> URI >= 1.59 >> parent >= 0 >> Devel::StackTrace >= 1.23 >> ExtUtils::MakeMaker >= 6.59 >> HTTP::Body >= 1.06 >> Filesys::Notify::Simple >= 0 >> Devel::StackTrace::AsHTML >= 0.11 >> Stopped at /usr/bin/cpan2rpm line 491. > > So, you're going to need to install things like the HTTP::Body, URI, > and other modules of a recent enough version, and install them as > RPM's. > > So, if you're on an RHEL or CentOS or Scientific Linux system, use > something like this: > > yum install 'perl(HTTP::Body)' > yum insall ''perl(ExtUtils::MakeMaker)' > > etc., etc., etc. to get your dependencies. > > Second, definitely apply my patches against cpan2rpm. and build > yourself a new RPM for cpan2rpm itself. The "Pod::Text" dependency for > cpan2rpm itself, for example, needs to be updated to "Pod::Parser". > > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > _______________________________________________ > Cpan2rpm-general mailing list > Cpa...@li... > https://lists.sourceforge.net/lists/listinfo/cpan2rpm-general |
From: Nico Kadel-G. <nk...@gm...> - 2012-10-12 12:09:58
|
On Fri, Oct 12, 2012 at 4:55 AM, Kobus Bensch <kb...@fu...> wrote: > Hi > > I downloaded the software this morning and have so far not been able to > build a single rpm from any cpan module. I've got some RPM building tools for it, with patches, at: https://github.com/nkadel/cpan2rpm-2.028-srpm There are some particularly useful patches for more recent versions of perl and RHEL 6 or Fedora. > I want to build Plack as an rpm so I run: > cpan2rpm Plack > > -- cpan2rpm - Ver: 2.028 -- > Upgrade check > Fetch: HTTP > > -- module: Plack -- > Using cached URL: > http://search.cpan.org//CPAN/authors/id/M/MI/MIYAGAWA/Plack-1.0005.tar.gz > Tarball found - not fetching > Metadata retrieval > Tarball extraction: [/root/rpmbuild/SOURCES/Plack-1.0005.tar.gz] > Unable to build module, the following dependencies have failed: > Test::Requires >= 0 > Stream::Buffered >= 0.02 > Test::TCP >= 1.02 > File::ShareDir >= 1.00 > Hash::MultiValue >= 0.05 > URI >= 1.59 > parent >= 0 > Devel::StackTrace >= 1.23 > ExtUtils::MakeMaker >= 6.59 > HTTP::Body >= 1.06 > Filesys::Notify::Simple >= 0 > Devel::StackTrace::AsHTML >= 0.11 > Stopped at /usr/bin/cpan2rpm line 491. So, you're going to need to install things like the HTTP::Body, URI, and other modules of a recent enough version, and install them as RPM's. So, if you're on an RHEL or CentOS or Scientific Linux system, use something like this: yum install 'perl(HTTP::Body)' yum insall ''perl(ExtUtils::MakeMaker)' etc., etc., etc. to get your dependencies. Second, definitely apply my patches against cpan2rpm. and build yourself a new RPM for cpan2rpm itself. The "Pod::Text" dependency for cpan2rpm itself, for example, needs to be updated to "Pod::Parser". |
From: Kobus B. <kb...@fu...> - 2012-10-12 09:18:04
|
Hi I downloaded the software this morning and have so far not been able to build a single rpm from any cpan module. I want to build Plack as an rpm so I run: cpan2rpm Plack -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: Plack -- Using cached URL: http://search.cpan.org//CPAN/authors/id/M/MI/MIYAGAWA/Plack-1.0005.tar.gz Tarball found - not fetching Metadata retrieval Tarball extraction: [/root/rpmbuild/SOURCES/Plack-1.0005.tar.gz] Unable to build module, the following dependencies have failed: Test::Requires >= 0 Stream::Buffered >= 0.02 Test::TCP >= 1.02 File::ShareDir >= 1.00 Hash::MultiValue >= 0.05 URI >= 1.59 parent >= 0 Devel::StackTrace >= 1.23 ExtUtils::MakeMaker >= 6.59 HTTP::Body >= 1.06 Filesys::Notify::Simple >= 0 Devel::StackTrace::AsHTML >= 0.11 Stopped at /usr/bin/cpan2rpm line 491. cannot remove path when cwd is /tmp/G8P0qN1ZyF/Plack-1.0005 for /tmp/G8P0qN1ZyF: at /usr/share/perl5/File/Temp.pm line 902 -- Done -- This is all good except for the line before the Done. I then try to build Test::Requires as it is required and I get: cpan2rpm Test::Requires -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: Test::Requires -- Using cached URL: http://search.cpan.org//CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-0.06.tar.gz Tarball found - not fetching Metadata retrieval Tarball extraction: [/root/rpmbuild/SOURCES/Test-Requires-0.06.tar.gz] Prototype mismatch: sub main::prompt: none vs ($;$) at (eval 53) line 2 main::BEGIN() called at (eval 53) line 2 eval {...} called at (eval 53) line 2 eval 'use ExtUtils::MakeMaker 6.42 ;' called at /usr/bin/cpan2rpm line 486 main::get_meta() called at /usr/bin/cpan2rpm line 54 Can't locate object method "interpolate" via package "Pod::Text" at /usr/bin/cpan2rpm line 532. cannot remove path when cwd is /tmp/W98hAIGvDF/Test-Requires-0.06 for /tmp/W98hAIGvDF: at /usr/share/perl5/File/Temp.pm line 902 -- Done -- So maybe I did something wrong so I try the next one in the list: cpan2rpm Stream::Buffered -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: Stream::Buffered -- Using cached URL: http://search.cpan.org//CPAN/authors/id/D/DO/DOY/Stream-Buffered-0.02.tar.gz Tarball found - not fetching Metadata retrieval Tarball extraction: [/root/rpmbuild/SOURCES/Stream-Buffered-0.02.tar.gz] Prototype mismatch: sub main::prompt: none vs ($;$) at (eval 45) line 2 main::BEGIN() called at (eval 45) line 2 eval {...} called at (eval 45) line 2 eval 'use ExtUtils::MakeMaker 6.36 ;' called at /usr/bin/cpan2rpm line 486 main::get_meta() called at /usr/bin/cpan2rpm line 54 Can't locate object method "interpolate" via package "Pod::Text" at /usr/bin/cpan2rpm line 532. cannot remove path when cwd is /tmp/KiLVfF9NnP/Stream-Buffered-0.02 for /tmp/KiLVfF9NnP: at /usr/share/perl5/File/Temp.pm line 902 -- Done -- Now I am getting suspicious. Maybe its not me. Here are the final attempts so: cpan2rpm Test::TCP -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: Test::TCP -- Found: Test-TCP-1.17.tar.gz At: http://search.cpan.org//CPAN/authors/id/T/TO/TOKUHIROM Retrieving URL Metadata retrieval Tarball extraction: [/root/rpmbuild/SOURCES/Test-TCP-1.17.tar.gz] Unable to build module, the following dependencies have failed: Test::More >= 0.98 ExtUtils::MakeMaker >= 6.59 Test::SharedFork >= 0.19 Stopped at /usr/bin/cpan2rpm line 491. cannot remove path when cwd is /tmp/yjeephirqe/Test-TCP-1.17 for /tmp/yjeephirqe: at /usr/share/perl5/File/Temp.pm line 902 -- Done -- [root@manage ~]# cpan2rpm Test::More -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: Test::More -- Module not found on CPAN web site! at /usr/bin/cpan2rpm line 1201. -- Done -- [root@manage ~]# cpan2rpm ExtUtils::MakeMaker -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: ExtUtils::MakeMaker -- Found: ExtUtils-MakeMaker-6.63_02.tar.gz At: http://search.cpan.org//CPAN/authors/id/M/MS/MSCHWERN Retrieving URL Metadata retrieval Tarball extraction: [/root/rpmbuild/SOURCES/ExtUtils-MakeMaker-6.63_02.tar.gz] Unable to build module, the following dependencies have failed: perl >= 5.006 Stopped at /usr/bin/cpan2rpm line 491. cannot remove path when cwd is /tmp/Z9Qkjt1Pyd/ExtUtils-MakeMaker-6.63_02 for /tmp/Z9Qkjt1Pyd: at /usr/share/perl5/File/Temp.pm line 902 -- Done -- [root@manage ~]# perl -v This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. -- |
From: Nico Kadel-G. <nk...@gm...> - 2012-08-21 05:37:02
|
There are two notable buigs building, and using, cpan2rpm on RHEL 6. * The 'perl Makefile.PL' process builds a Makefile that installs most components in /usr/local. This is dealth with by RHEL with their current MakeMaker and perl by using: perl Makefile.PL INSTALLDIRS=vendor This workg great for me on RHEL 6, and I've published patches at http://github.som/nkadel/cpan2rpm-2.028-srpms/ * The 'Pod::Text" module is no longer in perl-5.10, and was only required to provide the 'Pod::Parser' module, which is still available. The patch for that is at: https://github.com/nkadel/cpan2rpm-2.028-srpm/blob/master/cpan2rpm-2.028-pod-text.patch * There is even a cpan2rpm.spec file there to use right now, along with the patches in the git repository, to build and a Makefile to build RPM's for different releases usin g"mock". This has been very useful to me, and is making my life a lot easier right now instlalling new and old Perl modules as RPM's on verious RPM based distros. Nico Kadel-Garcia <nk...@gm...> |
From: Andrew D. <ad...@tr...> - 2012-06-17 03:40:52
|
I was just trying to use cpan2rpm to build Math::BigInt (CENTOS 5 does not have a recent enough version in the Perl base for Mail::SpamAssassin::Plugin::GoogleSafeBrowsing) cpan2rpm fails at line 1268 in untar() because the groupname has a space in it, so (split)[5] gets the time instead of the filename. I'm not sure why the verbose option is used at all; I deleted it and cpan2rpm worked OK. (I read the last message to see if the list was still active, and tried to build cpanspec 1.78 on CENTOS 6 to see what that was like. There's no perl-Parse-CPAN-Packages in the standard repositories, and when I try to install one from CENTOS 5 or build it natively I get a whole bunch of other prerequisites and errors. At least cpan2rpm works for me, most of the time...) -- Andrew Daviel, TRIUMF, Canada |
From: Arthur R. <ar...@ny...> - 2012-05-04 18:12:54
|
Thank you very much for your reply. I did explore cpanspec, but it appears to offer less configuration options than cpan2rpm. Nevertheless, you helped me isolate the problem: rpmbuild --showrc | grep docdir RPM_DOC_DIR="%{_docdir}" -14: _defaultdocdir %{_usr}/share/doc Once I added %_defaultdocdir to /root/.rpmmacros, everything get distributed perfectly. cat /root/rpmmacros %_defaultdocdir /foo/usr %_prefix /foo/usr %_infodir %{_prefix}/info %_mandir %{_prefix}/man %_docdir %{_prefix}/doc Yes this helped, Arthur From: Gino LV. Ledesma [mailto:gle...@gm...] Sent: Thursday, May 03, 2012 5:29 PM To: Arthur Reyes Subject: Re: [Cpan2rpm-general] docdir Hi, Arthur You may want to consider using cpanspec <http://cpanspec.sourceforge.net/> instead. This is what the Fedora/EPEL packagers are using for CPAN packages in RPM form. It also generates a much more legible SPEC file than cpan2rpm. You may also want to look at the actual SPEC file that cpan2rpm generates since I believe it has its own ideas for setting some variables. rpmbuild --showrc | grep docdir should also show you what "live" settings are. HTH, Gino On Thu, May 3, 2012 at 2:19 PM, Arthur Reyes <ar...@ny...<mailto:ar...@ny...>> wrote: Hi, this is my first post to this list. I hope it is still active. I'm having trouble identifying how to define certain variables. I've got .rpmmacros configured to put docs in /foo/docs cat .rpmmacros %_prefix /foo %_infodir %{_prefix}/info %_mandir %{_prefix}/man %_docdir %{_prefix}/doc However, when I compile Net::Netmask, rpmbuild seems to keep placing some files /usr/share/doc The output of rpm -ql shows the following: /usr/share/doc/perl-Net-Netmask-1.9016 /usr/share/doc/perl-Net-Netmask-1.9016/README This is my command line arguments cpan2rpm Net::Netmask --make-maker='PREFIX=/foo' --fetch=cpan --url http://mydepot/CPAN --release=1001 --no-sign When I look at my temp file, I see that mandir and infodir use /usr/share instead of /foo/info or /foo/man grep /usr/share /var/tmp/rpm-tmp.57620 RPM_DOC_DIR="/usr/share/doc" mandir=/var/tmp/perl-Net-Netmask-1.9016-root/usr/share/man \ infodir=/var/tmp/perl-Net-Netmask-1.9016-root/usr/share/info \ My kernel: 2.6.18-194.el5 This is perl, v5.8.8 built for x86_64-linux-thread-multi Am I missing a command line parameter, that makes cpan2rpm put README in /usr/share? Thanks! Arthur Reyes Please consider the environment before printing this email. Visit our website at http://www.nyse.com **************************************************** Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Cpan2rpm-general mailing list Cpa...@li...<mailto:Cpa...@li...> https://lists.sourceforge.net/lists/listinfo/cpan2rpm-general ------------------------------------------------------------------------------ Please consider the environment before printing this email. Visit our website at http://www.nyse.com <http://www.nyse.com> ***************************************************************************** Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext. |
From: Erick C. <zen...@gm...> - 2012-05-04 16:18:34
|
Arthur, I think your issue lies outside of cpan2rpm and has to do with the rpmbuild and its configuration. you should look the spec file generated because that's all that cpan2rpm is really responsible for. - erick On May 3, 2012, at 2:19 PM, Arthur Reyes wrote: > Hi, this is my first post to this list. I hope it is still active. > > I'm having trouble identifying how to define certain variables. > > I've got .rpmmacros configured to put docs in /foo/docs > cat .rpmmacros > %_prefix /foo > %_infodir %{_prefix}/info > %_mandir %{_prefix}/man > %_docdir %{_prefix}/doc > > However, when I compile Net::Netmask, rpmbuild seems to keep placing some files /usr/share/doc > The output of rpm -ql shows the following: > /usr/share/doc/perl-Net-Netmask-1.9016 > /usr/share/doc/perl-Net-Netmask-1.9016/README > > This is my command line arguments > cpan2rpm Net::Netmask --make-maker='PREFIX=/foo' --fetch=cpan --url http://mydepot/CPAN --release=1001 --no-sign > > When I look at my temp file, I see that mandir and infodir use /usr/share instead of /foo/info or /foo/man > grep /usr/share /var/tmp/rpm-tmp.57620 > RPM_DOC_DIR="/usr/share/doc" > mandir=/var/tmp/perl-Net-Netmask-1.9016-root/usr/share/man \ > infodir=/var/tmp/perl-Net-Netmask-1.9016-root/usr/share/info \ > > My kernel: 2.6.18-194.el5 > This is perl, v5.8.8 built for x86_64-linux-thread-multi > > Am I missing a command line parameter, that makes cpan2rpm put README in /usr/share? > > Thanks! > > Arthur Reyes > Please consider the environment before printing this email. > > Visit our website at http://www.nyse.com > > **************************************************** > > Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Cpan2rpm-general mailing list > Cpa...@li... > https://lists.sourceforge.net/lists/listinfo/cpan2rpm-general |
From: Arthur R. <ar...@ny...> - 2012-05-03 21:54:43
|
Hi, this is my first post to this list. I hope it is still active. I'm having trouble identifying how to define certain variables. I've got .rpmmacros configured to put docs in /foo/docs cat .rpmmacros %_prefix /foo %_infodir %{_prefix}/info %_mandir %{_prefix}/man %_docdir %{_prefix}/doc However, when I compile Net::Netmask, rpmbuild seems to keep placing some files /usr/share/doc The output of rpm -ql shows the following: /usr/share/doc/perl-Net-Netmask-1.9016 /usr/share/doc/perl-Net-Netmask-1.9016/README This is my command line arguments cpan2rpm Net::Netmask --make-maker='PREFIX=/foo' --fetch=cpan --url http://mydepot/CPAN --release=1001 --no-sign When I look at my temp file, I see that mandir and infodir use /usr/share instead of /foo/info or /foo/man grep /usr/share /var/tmp/rpm-tmp.57620 RPM_DOC_DIR="/usr/share/doc" mandir=/var/tmp/perl-Net-Netmask-1.9016-root/usr/share/man \ infodir=/var/tmp/perl-Net-Netmask-1.9016-root/usr/share/info \ My kernel: 2.6.18-194.el5 This is perl, v5.8.8 built for x86_64-linux-thread-multi Am I missing a command line parameter, that makes cpan2rpm put README in /usr/share? Thanks! Arthur Reyes Please consider the environment before printing this email. Visit our website at http://www.nyse.com **************************************************** Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext. |
From: Daniel W. <dwe...@cs...> - 2011-05-13 13:21:39
|
Hello fellow cpan2rpm users! First, let me say thank you to the developer. Not knowing much about Perl, this has greatly simplified RPM creation. Your work is much appreciated as I recently found myself packaging over 100 modules. So, I'm having an annoying problem with several modules. The build environment is Red Hat Enterprise Linux 5 x86_64 running Perl as distributed by Red Hat. The problem I'm having is that some modules output a message saying they require "perl >= 5.006", or some other version, but I'm running Perl 5.8.8. However, if I install them with the CPAN command, they install without an issue. Am I missing something or is there a problem with the modules themselves? [user@localhost perl]$ cpan2rpm --no-sign Test::Warn -- cpan2rpm - Ver: 2.028 -- Upgrade check Fetch: HTTP -- module: Test::Warn -- Using cached URL: http://search.cpan.org//CPAN/authors/id/C/CH/CHORNY/Test-Warn-0.23.tar.gz Tarball found - not fetching Metadata retrieval Tarball extraction: [/mnt/Storage/Workspace/tmp/rpm/SOURCES/Test-Warn-0.23.tar.gz] Unable to build module, the following dependencies have failed: perl >= 5.006 Stopped at /usr/bin/cpan2rpm line 491. -- Done -- [user@localhost perl]$ perl -v This is perl, v5.8.8 built for x86_64-linux-thread-multi Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. Thank you, Daniel P*Please consider the environment before printing this email* |
From: Alexey P. <al...@gm...> - 2010-08-24 23:41:29
|
Hi, My current job is generating/maintaining RPMs for a bunch (over 500) Perl packages. During the process, I discovered that several packages cause Perl seg fault while running cpan2rpm script. I located two places that trigger seg faults. It looks like they are not bugs as such in your script, bug some bugs in Perl. I'm running it on RHEL 5.2, so it could be that distribution/version specific. Discovered/fixed a bug that fires if we deal with a Perl package generated on Windows. Discovered/fixed a bug caused by some packages having '/t' appended to the package name in the first line of tar output. I've found workarounds for these situations, and with my changes the whole set of packages compiles fine. Please consider, that I'm not a Perl guru, so my changes may require more error handling, etc. Real thank you for your script. It saved me endless amount of time. I also learned a lot while reading it. Even that it's said that Perl code is 'write once, read never'. The patch (for version 2.028) is attached. -- Alexey Parshin, http://www.sptk.net |
From: Erick C. <e...@ar...> - 2010-03-19 07:42:52
|
Sheldon, sorry for the late reply. cpan2rpm uses the macro %{__perl}, which is provided by RPM, whenever it needs to refer to perl... therefore you can redefine this macro in your ~/.rpmmacros file please let me know if this is not what you mean. - erick On Mar 12, 2010, at 11:03 AM, Sheldon Plankton wrote: > I am trying to use cpan2rpm to make RPM's from CPAN modules. The > issue I am having is that the Perl executable I need use is > /apps/non-standard/perl/bin/perl but cpan2rpm generates scripts that > uses /apps/bin/perl. I tried making a symbolic link like so: > > # cd /usr/bin > # rm perl > # ln -s /apps/non-standard/perl/bin/perl perl > > I also change the shebang in the cpan2rpm script to > /apps/non-standard/perl/bin/perl, > but cpan2rpm generates a RPM build script that fails with ... > > + find /var/tmp/perl-Algorithm-Interval2Prefix-0.02-root/usr -type d - > +depth -exec rmdir '{}' ';' > error: Bad exit status from /var/tmp/rpm-tmp.90654 (%install) > > > The files and directories under > /var/tmp/perl-Algorithm-Interval2Prefix-0.02-root/ are > > # ls -l /var/tmp/perl-Algorithm-Interval2Prefix-0.02-root/ > total 4 > drwxr-xr-x 3 root root 4096 Mar 12 10:44 apps > > So how can I get cpan2rpm use something besides /usr/bin/perl ? > > Thank you! > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Cpan2rpm-general mailing list > Cpa...@li... > https://lists.sourceforge.net/lists/listinfo/cpan2rpm-general |
From: Sheldon P. <she...@gm...> - 2010-03-12 19:03:53
|
I am trying to use cpan2rpm to make RPM's from CPAN modules. The issue I am having is that the Perl executable I need use is /apps/non-standard/perl/bin/perl but cpan2rpm generates scripts that uses /apps/bin/perl. I tried making a symbolic link like so: # cd /usr/bin # rm perl # ln -s /apps/non-standard/perl/bin/perl perl I also change the shebang in the cpan2rpm script to /apps/non-standard/perl/bin/perl, but cpan2rpm generates a RPM build script that fails with ... + find /var/tmp/perl-Algorithm-Interval2Prefix-0.02-root/usr -type d - +depth -exec rmdir '{}' ';' error: Bad exit status from /var/tmp/rpm-tmp.90654 (%install) The files and directories under /var/tmp/perl-Algorithm-Interval2Prefix-0.02-root/ are # ls -l /var/tmp/perl-Algorithm-Interval2Prefix-0.02-root/ total 4 drwxr-xr-x 3 root root 4096 Mar 12 10:44 apps So how can I get cpan2rpm use something besides /usr/bin/perl ? Thank you! |
From: Sam B. <sa...@we...> - 2010-01-29 14:15:01
|
Greetings List, I have a local Perl install that I would like to manage my own yum repo for and was hoping to use cpan2rpm to build the modules. When cpan2rpm builds its packages it uses perl Makefile.PL but I would like it to use /usr/local/bin/perl Makefile.PL. Didn't come up with anything in the docs. Thank you for your time in advance. Warm Regards -Sam |
From: Erick C. <e...@ar...> - 2009-11-20 23:01:55
|
I guess the issue is that the Test::Assertions RPM must have a Provides line for TestScript. this probably means patching the spec file and regenerating the package On Nov 20, 2009, at 10:12 AM, Vic wrote: > > Hi All. > > I'm having trouble building a package from CPAN - > Email::MIME::CreateHTML > . It barfs on a missing dependency - Test::Assertions::TestScript . > > Now according to CPAN, that's supplied by Test::Assertions, which > I've got > (It's also listed as a dependency, and works fine). locate finds the > file > at /usr/lib/perl5/vendor_perl/5.10.0/Test/Assertions/TestScript.pm . > > Going through the tarball with the usual "perl Makefile.PL; make; make > install" works, but it means this module is not controlled by my > package > manager :-( > > Any ideas? > > Thanks! > > Vic. > > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Cpan2rpm-general mailing list > Cpa...@li... > https://lists.sourceforge.net/lists/listinfo/cpan2rpm-general |
From: Vic <cp...@be...> - 2009-11-20 18:26:08
|
Hi All. I'm having trouble building a package from CPAN - Email::MIME::CreateHTML . It barfs on a missing dependency - Test::Assertions::TestScript . Now according to CPAN, that's supplied by Test::Assertions, which I've got (It's also listed as a dependency, and works fine). locate finds the file at /usr/lib/perl5/vendor_perl/5.10.0/Test/Assertions/TestScript.pm . Going through the tarball with the usual "perl Makefile.PL; make; make install" works, but it means this module is not controlled by my package manager :-( Any ideas? Thanks! Vic. |
From: Gino L. L. <gle...@gm...> - 2008-08-13 19:19:19
|
Hi, all I've been rebuilding a number of CPAN packages into RPM lately while transitioning from EL4 to EL5 and I noticed I had several SRPMS/spec files call for "--make-no-test". Upon closer investigation, this was mostly due to test cases failing because of line mismatches in the expected output. Some unit tests expect to read back the output at a specific line number in the test file, but these break under cpan2rpm because of the call to the ExtUtils::MY->fixin() call. This is inserted in every spec file prior to calling the Makefile.PL to fix any file (excluding *.bak) that references #!.*perl. I've attached a patch which exposes the following run-time options to cpan2rpm: --no-perlloc-fix --no-test-perlloc-fix The former suppresses the call to MY->fixin entirely. The latter only suppresses the call to MY->fixin() for the following file patterns: - files in t/* - files in tests/* - files ending in ".t" The patch was generated against cpan2rpm 2.028. Hope this helps. - gino |
From: Jeff F. <jef...@gm...> - 2006-01-25 14:10:16
|
Hi, I am trying to build Test::Simple with cpan2rpm but it fails some of the tests. Below is the relevant part of the output, it appears to be a regex problem. If I cd to the build dir and run perl Makefile.pl, make, make test, it builds ok. Running Fedora 4, tried versions 27, 28 * 29 of cpan2rpm. t/tbt_01basic.............NOK 6 # Failed test 'testing failing' # in t/tbt_01basic.t at line 32. # STDERR is: # # Failed test 'should fail' # # in t/tbt_01basic.t at line 31. # # got: 'foo' # # expected: 'bar' # # not: # (?-xism:#\s+Failed\ test.*?\n?.*?t\/tbt_01basic\.t at line 28.*\n?) # # got: 'foo' # # # expected: 'bar' # # as expected t/tbt_01basic.............NOK 9 # Failed test 'testing failing with todo' # in t/tbt_01basic.t at line 57. # STDERR is: # # Failed (TODO) test 'name' # # in t/tbt_01basic.t at line 55. # # not: # (?-xism:#\s+Failed\ \(TODO\)\ test.*?\n?.*?t\/tbt_01basic\.t at line 52.*= \n?) # as expected t/tbt_01basic.............FAILED tests 6, 9 Failed 2/9 tests, 77.78% okay t/tbt_02fhrestore.........ok t/tbt_03die...............ok t/tbt_04line_num..........NOK 1 # Failed test 'normal line num' # in t/tbt_04line_num.t at line 9. # got: '9' # expected: '6' t/tbt_04line_num..........NOK 2 # Failed test 'line number minus one' # in t/tbt_04line_num.t at line 10. # got: '9' # expected: '6' t/tbt_04line_num..........NOK 3 # Failed test 'line number plus two' # in t/tbt_04line_num.t at line 11. # got: '13' # expected: '10' # Looks like you failed 3 tests of 3. t/tbt_04line_num..........dubious Test returned status 3 (wstat 768, 0x300) DIED. FAILED tests 1-3 Failed 3/3 tests, 0.00% okay Thanks, Jeff |
From: Trevor H. <Tre...@fo...> - 2005-08-21 23:29:37
|
Hi, I'm having a problem where cpan2rpm is hanging while extracting the sourc= e tarball. Copy and paste from console: [root@apollo cpan2rpm-2.028]# ./cpan2rpm /u/apps/tmp/DBD-Informix-2005.02= .tar.gz -U -- cpan2rpm - Ver: 2.028 -- Signatures not set up Fetch: HTTP -- module: /u/apps/tmp/DBD-Informix-2005.02.tar.gz -- Metadata retrieval Tarball extraction: [/usr/src/redhat/SOURCES/DBD-Informix-2005.02.tar.gz]= <hangs here> I haven't had this problem with any other module. Is this a known issue a= nd is there any work around? Regards, Trevor Hills ----------------------------------------------------------------------- This email contains confidential information. If you have received this email in error, please delete it immediately, and inform us of the mistak= e by return email. Any form of reproduction, or further dissemination of this email is strictly prohibited. Also, note that the opinions expressed in this email are those of the=20 author and are not necessarily those of the Fonterra Co-operative Group Limited. http://www.fonterra.com/ ----------------------------------------------------------------------- |
From: SSI - B. M. <bm...@ss...> - 2005-05-08 19:28:08
|
Hello, Here is the result I get when using cpan2rpm (tested both 2.026 & 2.027) = : # cpan2rpm = http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-2.9007.tar.gz -- cpan2rpm - Ver: 2.027 -- Signatures not set up Upgrade check Fetch: HTTP -- module: = http://www.cpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-2.9007.tar.gz -- Metadata retrieval Tarball extraction: [/usr/src/redhat/SOURCES/DBD-mysql-2.9007.tar.gz] ... and nothing more happens, the program exits without error & without = creating rpms, srpms or spec files. Tested on 3 machines, 2 different OS (RHEL3 and redhat9) with perl = v5.8.0. I'm sorry if I missed something but I really don't find any explanation = nor on the website nor on google. Thanks in advance. Ben |
From: <ben...@id...> - 2004-05-22 12:33:44
|
Dear Open Source developer I am doing a research project on "Fun and Software Development" in which I kindly invite you to participate. You will find the online survey under http://fasd.ethz.ch/qsf/. The questionnaire consists of 53 questions and you will need about 15 minutes to complete it. With the FASD project (Fun and Software Development) we want to define the motivational significance of fun when software developers decide to engage in Open Source projects. What is special about our research project is that a similar survey is planned with software developers in commercial firms. This procedure allows the immediate comparison between the involved individuals and the conditions of production of these two development models. Thus we hope to obtain substantial new insights to the phenomenon of Open Source Development. With many thanks for your participation, Benno Luthiger PS: The results of the survey will be published under http://www.isu.unizh.ch/fuehrung/blprojects/FASD/. We have set up the mailing list fa...@we... for this study. Please see http://fasd.ethz.ch/qsf/mailinglist_en.html for registration to this mailing list. _______________________________________________________________________ Benno Luthiger Swiss Federal Institute of Technology Zurich 8092 Zurich Mail: benno.luthiger(at)id.ethz.ch _______________________________________________________________________ |
From: Jon W. <jw...@ca...> - 2003-10-08 14:14:18
|
It looks as though the version of RPM (rpm-4.2-0.69) on RedHat 9 (at least) has a feature that prevents --no-requires from working. While I accept that --no-requires is in general a 'bad thing', it's needed at least to build perl-DBI since DBI includes an optional module that uses Win32::ODBC, and Win32::ODBC simply can't be built on a Unix platform. The problem is that this version of RPM only runs the dependency generator script pointed to by __find_requires if _use_internal_dependency_generator is set to 0. Unfortunately it's set to 1 by default (in /usr/lib/rpm/macros). As a result the carefully-constructed custom find_requires script that implements --no-requires never gets used and all the dependencies find their way into the resulting RPM. A work-around in to include %_use_internal_dependency_generator 0 in your ~/.rpmmacros file; a longer-term fix would be to include %define _use_internal_dependency_generator 0 in the generated spec file if a custom find_requires script is needed. Jon. -- Jon Warbrick Web/News Development, Computing Service, University of Cambridge |