Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14679 - g-cpan.pl can't handle some perl modules
Summary: g-cpan.pl can't handle some perl modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: J Robert Ray
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-28 11:21 UTC by Alan
Modified: 2003-05-24 01:43 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan 2003-01-28 11:21:04 UTC
Trying to create an ebuild of Finance::YahooQuote via the (very cool) g-cpan.pl utility program causes some strange things to happen.
----------------------------------
phoenix alan # g-cpan.pl Finance::YahooQuote
mkdir /tmp/perl-modules_3528
mkdir /tmp/perl-modules_3528/dev-perl
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Mon, 27 Jan 2003 07:49:14 GMT
************************************************************************
*
*
*  Need to create ebuild for 'Finance::YahooQuote': finance
*
*
************************************************************************
Running make for E/ED/EDD/finance-yahooquote_0.18.tar.gz
Checksum for /root/.cpan/sources/authors/id/E/ED/EDD/finance-yahooquote_0.18.tar.gz ok
Scanning cache /root/.cpan/build for sizes
Finance-YahooQuote-0.18/
[snip list of files]
Finance-YahooQuote-0.18/t/02simple.t
Removing previously used /root/.cpan/build/Finance-YahooQuote-0.18

  CPAN.pm: Going to build E/ED/EDD/finance-yahooquote_0.18.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite HTML::Parser 2.2 not found.
Writing Makefile for Finance::YahooQuote
---- Unsatisfied dependencies detected during [E/ED/EDD/finance-yahooquote_0.18.tar.gz] -----
    HTML::Parser
  Ignoring dependencies on modules HTML::Parser
cp YahooQuote.pm blib/lib/Finance/YahooQuote.pm
cp yahooquote blib/script/yahooquote
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/yahooquote
Manifying blib/man1/yahooquote.1
Manifying blib/man3/Finance::YahooQuote.3pm
  /usr/bin/make -j2 -- OK
************************************************************************
*
*
*  Ebuild already exists for 'LWP::UserAgent': libwww-perl
*
*
************************************************************************
************************************************************************
*
*
*  Need to create ebuild for 'Text::ParseWords': perl
*
*
************************************************************************
Running make for J/JH/JHI/perl-5.8.0.tar.gz

The most recent version "3.21" of the module "Text::ParseWords"
comes with the current version of perl (5.8.0).
I'll build that only if you ask for something like
    force install Text::ParseWords
or
    install J/JH/JHI/perl-5.8.0.tar.gz
Use of uninitialized value in open at /usr/bin/g-cpan.pl line 249.
Can't open 'J/JH/JHI/perl-5.8.0.tar.gz': No such file or directory at /usr/bin/g-cpan.pl line 249.
phoenix alan #
----------------------------------

It seems that it is creating a list of dependancies and because one is installed with perl, it tries to go and build that.

The ebuild that I created worked fine with no dependancies btw, though on another machine (debian) installing from CPAN it wanted Spreadsheet::ParseExcel and IO::Scalar, which I guess are installed already.

I currently have perl 5.8.0-r9 installed.
Assigning to J Robert Ray as requested.
Comment 1 Dan Noe 2003-05-12 23:03:05 UTC
I have had the same problem trying to merge WebService::weblogUpdates.

*  Ebuild already exists for 'Test::More': Test-Simple

<snip>

*  Need to create ebuild for 'Carp': perl

<snip>
Running make for J/JH/JHI/perl-5.8.0.tar.gz

The most recent version "1.01" of the module "Carp"
comes with the current version of perl (5.8.0).
I'll build that only if you ask for something like
    force install Carp
or
    install J/JH/JHI/perl-5.8.0.tar.gz
Use of uninitialized value in open at /usr/bin/g-cpan.pl line 250.
Can't open 'J/JH/JHI/perl-5.8.0.tar.gz': No such file or directory at /usr/bin/g-cpan.pl line 250.



Interestingly enough, if I try to merge Carp (the CPAN module which is depended upon, and exists in the base perl package) I get:

*  Module already installed for 'Carp'

Looks like the same problem... g-cpan is great, I'd love to see this fixed.  I'll take another look at it tomorrow.
Comment 2 J Robert Ray 2003-05-24 01:42:52 UTC
This bug is now fixed in CVS, awaiting a new release of portage to roll it out.
Comment 3 J Robert Ray 2003-05-24 01:43:38 UTC
Nick - new g-cpan.pl needs to go out.