Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 370223

Summary: g-cpan crashes on install AnyEvent::Feed
Product: Gentoo Linux Reporter: Pozdnyak Pavel <pozpl>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: perl, pozpl, Sergiy.Borodych
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pozdnyak Pavel 2011-06-06 06:24:22 UTC
When I try to install AnyEvent::Feed I've got this error:
g-cpan -i AnyEvent::Feed
|Checksum for /var/tmp/g-cpan/.cpan/sources/authors/id/E/EL/ELMEX/AnyEvent-Feed-0.3.tar.gz ok
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /usr/lib64/perl5/vendor_perl/5.12.3/YAML.pm line 36

I have got file AnyEvent-Feed-0.3.tar.gz from CPAN and untar it. The META.yaml file was in fact json file. Also distribution contained META.json that seemed well formed. The quastion is, is this posible to do some failback mech for json META.

Reproducible: Always

Steps to Reproduce:
1.launch g-cpan -i AnyEvent::Feed

Actual Results:  
-Sorry, we have to rerun the configuration dialog for CPAN.pm due to
some missing parameters...  Will write to
 <</root/.cpan/CPAN/MyConfig.pm>>

Normally CPAN.pm keeps config variables in memory and changes need to
be saved in a separate 'o conf commit' command to make them permanent
between sessions. If you set the 'auto_commit' option to true, changes
to a config variable are always automatically committed to disk.

 <auto_commit>
Always commit changes to config variables to disk? [no] no


Please remember to call 'o conf commit' to make the config permanent!
Going to read '/var/tmp/g-cpan/.cpan/Metadata'
  Database was generated on Mon, 06 Jun 2011 02:34:52 GMT
|Checksum for /var/tmp/g-cpan/.cpan/sources/authors/id/E/EL/ELMEX/AnyEvent-Feed-0.3.tar.gz ok
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /usr/lib64/perl5/vendor_perl/5.12.3/YAML.pm line 36
Comment 1 Sergiy Borodych 2011-06-09 08:02:55 UTC
I'm try to fix this bug
see
https://github.com/gentoo-perl/g-cpan/pull/1

also about parse META.json - it need adding one more depend (JSON)
so I do not added this feature, maybe in future if someone approved
Comment 2 Sergiy Borodych 2014-09-04 06:50:17 UTC
I've checked on g-cpan-0.16.5, all seems fine now.
Please check it, and close the bug if all OK.