| Summary: | app-portage/g-cpan-0.13.02 gets confused about where it is putting files | ||
|---|---|---|---|
| Product: | Portage Development | Reporter: | Joe Wells <sllewbj> |
| Component: | Unclassified | Assignee: | Gentoo Perl team <perl> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | alex |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | g-cpan | ||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
transcript of running "g-cpan -g Expect"
CPAN configuration file |
||
|
Description
Joe Wells
2005-09-17 19:09:32 UTC
Created attachment 68704 [details]
transcript of running "g-cpan -g Expect"
This is the attachment I mentioned in my main bug description.
I get this problem too (on 0.14 also), and found what cause this problem. Check your CPAN configuration vars (~/.cpan/CPAN/MyConfig.pm or /usr/lib/perl5/YourPerlVersion/CPAN/Config.pm) Take a look at cpan_home' => q[/root/.cpan], (you should take care of all /root/ related path) It's misconfigured with a '1' on top of the list. You could now mark this bug as FIXED. Also, I really dont know what cause this '1' to come here (perl-clean, and old g-cpan, from initial Config.pm, ...) (In reply to comment #2) > I get this problem too (on 0.14 also), and found what cause this problem. > > Check your CPAN configuration vars > (~/.cpan/CPAN/MyConfig.pm or /usr/lib/perl5/YourPerlVersion/CPAN/Config.pm) My ~/.cpan directory is completely empty. I have no files matching /usr/lib/perl5/*/CPAN/Config*. In fact, locate "CPAN/Config" reveals no files. > Take a look at > cpan_home' => q[/root/.cpan], > > (you should take care of all /root/ related path) > > It's misconfigured with a '1' on top of the list. I'm sorry, but I don't understand. > You could now mark this bug as FIXED. > Also, I really dont know what cause this '1' to come here (perl-clean, and old > g-cpan, from initial Config.pm, ...) Again, I don't understand. I'm sorry. Created attachment 88514 [details]
CPAN configuration file
Drop this file in /root/.cpan/CPAN directory
It contain full CPAN configuration
_OR_
If you do a perl -MCPAN -eshell with an empty /root/.cpan and without any /usr/lib/perl5/5.8.8/CPAN/Config.pm, the CPAN shell will start to ask you for initial configuration, and create the system Config.pm (or MyConfig.pm in ~).
The bug I talk about it that the cpan_home variable is missconfigured and contain the char 1 at the start of the path, like this :
'cpan_home' => q[1/.cpan],
This is why the g-cpan script complain about the missing file (in your case) :
1/.cpan/sources/authors/id/R/RG/RGIERSIG/Expect-1.15.tar.gz
So, the only way to fix it is to define a correct Config.pm (System wide) or MyConfig.pm (for the root user).
Hope this time this is more clear, sorry for my bad english.
(In reply to comment #4) > > 'cpan_home' => q[1/.cpan], Hmm...this should be fixed with 0.14 though (granted, it won't fix an already broken config file, but if you wipe it should regenerate a good one). Can you confirm that the bug persists even when 0.14 creates the file? (In reply to comment #5) > > > > 'cpan_home' => q[1/.cpan], > > Hmm...this should be fixed with 0.14 though (granted, it won't fix an already > broken config file, but if you wipe it should regenerate a good one). Can you > confirm that the bug persists even when 0.14 creates the file? Yes, it's working : * No CPAN Config found, auto-generating a basic one: mkdir /root/.cpan mkdir /root/.cpan/CPAN Thanks ! I can confirm this bug is resolved for me. I just successfully ran "g-cpan --generate Test::Expect" and it generated three ebuilds for me, Class-Accessor-Chained, Expect-Simple, and Test-Expect. I was able to emerge one of them, namely Simple-Expect. (Unfortunately, the ebuild created for Class-Accessor-Chained is corrupt as it is named Class-Accessor-Chained-undef.ebuild. However, that appears to be a separate bug.) |