Bug 567620

Summary: YAML::Dumper fails with Can't locate object method "global_object"
Product: [Fedora] Fedora EPEL Reporter: Till Maas <opensource>
Component: perl-YAMLAssignee: Steven Pritchard <steve>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: el5CC: perl-devel, steve
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: ActualBug
Fixed In Version: perl-YAML-0.66-3.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-24 03:41:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Till Maas 2010-02-23 13:12:07 UTC
Description of problem:
YAML::Dumper minimum example does not work.

Version-Release number of selected component (if applicable):
perl-YAML.noarch 0:0.66-2.el5

How reproducible:
always

Steps to Reproduce:
Try to run this script:
    use YAML::Dumper;
    my $dumper = YAML::Dumper->new;
    $dumper->indent_width(4);
    print $dumper->dump({foo => 'bar'});
from 
http://search.cpan.org/dist/YAML/lib/YAML/Dumper.pm

  
Actual results:
Can't locate object method "global_object" via package "YAML" at /usr/lib/perl5/vendor_perl/5.8.8/YAML/Dumper.pm line 145.

Expected results:
Should print a yaml stream.

Additional info:

Comment 1 Mark Chappell 2010-10-16 06:37:01 UTC
Bug confirmed.

Work around:
  use YAML; 
before the first line.

Comment 2 Mark Chappell 2010-10-16 10:57:05 UTC
Reported 4 years ago upstream...

https://rt.cpan.org/Public/Bug/Display.html?id=19838

Comment 3 Fedora Update System 2014-08-26 15:16:30 UTC
perl-YAML-0.66-3.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/perl-YAML-0.66-3.el5

Comment 4 Fedora Update System 2014-08-29 19:43:49 UTC
Package perl-YAML-0.66-3.el5:
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing perl-YAML-0.66-3.el5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-2311/perl-YAML-0.66-3.el5
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-09-24 03:41:51 UTC
perl-YAML-0.66-3.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.