[perl-YAML] Patch for RT#74226

Petr Pisar ppisar at fedoraproject.org
Fri Jun 22 11:35:41 UTC 2012


commit 3c5630843ae766d9ee3c817cb7eb72e6cd690292
Author: Jitka Plesnikova <jplesnik at redhat.com>
Date:   Fri Jun 22 12:02:29 2012 +0200

    Patch for RT#74226

 perl-YAML.spec          |    9 ++++++++-
 perl5.16-YAML-Any.patch |   12 ++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/perl-YAML.spec b/perl-YAML.spec
index b982bb5..9c3d8ca 100644
--- a/perl-YAML.spec
+++ b/perl-YAML.spec
@@ -1,11 +1,14 @@
 Name:           perl-YAML
 Version:        0.81
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        YAML Ain't Markup Language (tm)
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/YAML/
 Source0:        http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-%{version}.tar.gz
+# https://rt.cpan.org/Public/Bug/Display.html?id=74226
+Patch0:         perl5.16-YAML-Any.patch
+
 BuildArch:      noarch
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(constant)
@@ -27,6 +30,7 @@ specification.
 
 %prep
 %setup -q -n YAML-%{version}
+%patch0 -p1
 
 # Re-code docs as UTF-8
 iconv -f iso-8859-1 -t utf8 < README > README.utf8
@@ -59,6 +63,9 @@ make test
 %{_mandir}/man3/YAML*.3*
 
 %changelog
+* Fri Jun 22 2012 Jitka Plesnikova <jplesnik at redhat.com> 0.81-4
+- apply patch to for YAML::Any RT#74226
+
 * Wed Jun 06 2012 Petr Pisar <ppisar at redhat.com> - 0.81-3
 - Perl 5.16 rebuild
 
diff --git a/perl5.16-YAML-Any.patch b/perl5.16-YAML-Any.patch
new file mode 100644
index 0000000..6ea0ba2
--- /dev/null
+++ b/perl5.16-YAML-Any.patch
@@ -0,0 +1,12 @@
+diff -up YAML-0.81/lib/YAML/Any.pm.orig YAML-0.81/lib/YAML/Any.pm
+--- YAML-0.81/lib/YAML/Any.pm.orig	2012-06-22 11:05:12.770546934 +0200
++++ YAML-0.81/lib/YAML/Any.pm	2012-06-22 11:05:34.728670103 +0200
+@@ -95,7 +95,7 @@ sub LoadFile {
+ 
+ sub order {
+     return @YAML::Any::_TEST_ORDER
+-        if defined @YAML::Any::_TEST_ORDER;
++        if @YAML::Any::_TEST_ORDER;
+     return @implementations;
+ }
+ 


More information about the scm-commits mailing list