Update to 0.51 (various minor tidy-ups, no functional changes)

This commit is contained in:
Paul Howarth 2014-08-18 20:30:44 +01:00
parent 4c0f0eab05
commit 294e189421
3 changed files with 18 additions and 15 deletions

View File

@ -1,7 +1,6 @@
diff -urbaN YAML-LibYAML-0.35-orig//LibYAML/perl_libyaml.c YAML-LibYAML-0.35/LibYAML/perl_libyaml.c --- LibYAML/perl_libyaml.c
--- YAML-LibYAML-0.35-orig//LibYAML/perl_libyaml.c 2011-04-03 18:28:08.000000000 +0200 +++ LibYAML/perl_libyaml.c
+++ YAML-LibYAML-0.35/LibYAML/perl_libyaml.c 2011-04-08 09:25:49.633009787 +0200 @@ -188,7 +188,7 @@ Load(SV *yaml_sv)
@@ -188,7 +188,7 @@
return; return;
load_error: load_error:
@ -10,7 +9,7 @@ diff -urbaN YAML-LibYAML-0.35-orig//LibYAML/perl_libyaml.c YAML-LibYAML-0.35/Lib
} }
/* /*
@@ -271,7 +271,7 @@ @@ -271,7 +271,7 @@ load_node(perl_yaml_loader_t *loader)
return return_sv; return return_sv;
load_error: load_error:
@ -19,7 +18,7 @@ diff -urbaN YAML-LibYAML-0.35-orig//LibYAML/perl_libyaml.c YAML-LibYAML-0.35/Lib
} }
/* /*
@@ -314,7 +314,7 @@ @@ -314,7 +314,7 @@ load_mapping(perl_yaml_loader_t *loader,
else if (strlen(tag) <= strlen(prefix) || else if (strlen(tag) <= strlen(prefix) ||
! strnEQ(tag, prefix, strlen(prefix)) ! strnEQ(tag, prefix, strlen(prefix))
) croak( ) croak(
@ -28,7 +27,7 @@ diff -urbaN YAML-LibYAML-0.35-orig//LibYAML/perl_libyaml.c YAML-LibYAML-0.35/Lib
); );
class = tag + strlen(prefix); class = tag + strlen(prefix);
sv_bless(hash_ref, gv_stashpv(class, TRUE)); sv_bless(hash_ref, gv_stashpv(class, TRUE));
@@ -347,7 +347,7 @@ @@ -347,7 +347,7 @@ load_sequence(perl_yaml_loader_t *loader
else if (strlen(tag) <= strlen(prefix) || else if (strlen(tag) <= strlen(prefix) ||
! strnEQ(tag, prefix, strlen(prefix)) ! strnEQ(tag, prefix, strlen(prefix))
) croak( ) croak(

View File

@ -1,16 +1,17 @@
Name: perl-YAML-LibYAML Name: perl-YAML-LibYAML
Version: 0.47 Version: 0.51
Release: 2%{?dist} Release: 1%{?dist}
Summary: Perl YAML Serialization using XS and libyaml Summary: Perl YAML Serialization using XS and libyaml
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/YAML-LibYAML/ URL: http://search.cpan.org/dist/YAML-LibYAML/
Source0: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-LibYAML-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-LibYAML-%{version}.tar.gz
Patch0: YAML-LibYAML-0.35-format-error.patch Patch0: YAML-LibYAML-0.51-format-error.patch
Patch1: YAML-LibYAML-0.41-CVE-2014-2525.patch Patch1: YAML-LibYAML-0.41-CVE-2014-2525.patch
Patch2: YAML-LibYAML-0.41-CVE-2013-6393.patch Patch2: YAML-LibYAML-0.41-CVE-2013-6393.patch
# Install # Install
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(File::Find) BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path) BuildRequires: perl(File::Path)
@ -32,7 +33,7 @@ BuildRequires: perl(Devel::Peek)
BuildRequires: perl(lib) BuildRequires: perl(lib)
BuildRequires: perl(Scalar::Util) BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Builder) BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Tie::Array) BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::Hash) BuildRequires: perl(Tie::Hash)
@ -51,7 +52,7 @@ bound to Python and was later bound to Ruby.
%setup -q -n YAML-LibYAML-%{version} %setup -q -n YAML-LibYAML-%{version}
# Fix format string vulnerabilities (CVE-2012-1152, CPAN RT#46507) # Fix format string vulnerabilities (CVE-2012-1152, CPAN RT#46507)
%patch0 -p1 %patch0
# Fix LibYAML input sanitization errors (CVE-2014-2525) # Fix LibYAML input sanitization errors (CVE-2014-2525)
%patch1 %patch1
@ -82,6 +83,9 @@ make test
%{_mandir}/man3/YAML::XS::LibYAML.3pm* %{_mandir}/man3/YAML::XS::LibYAML.3pm*
%changelog %changelog
* Mon Aug 18 2014 Paul Howarth <paul@city-fan.org> - 0.51-1
- Update to 0.51 (various minor tidy-ups, no functional changes)
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.47-2 * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.47-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

View File

@ -1 +1 @@
58cb1359bb38b015581b997a490099ef YAML-LibYAML-0.47.tar.gz ea0933f1e6da7f9eee4e707daff90782 YAML-LibYAML-0.51.tar.gz