From 72e1452e35c23308fb1aada5e5fddd15bbcc8d00 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Mon, 31 Mar 2014 17:39:36 -0400 Subject: [PATCH] Work around ldconfig bug with libyaml.so (bz1082822) --- libyaml.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libyaml.spec b/libyaml.spec index ada17c0..16b2852 100644 --- a/libyaml.spec +++ b/libyaml.spec @@ -4,7 +4,7 @@ Name: libyaml Version: 0.1.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: YAML 1.1 parser and emitter written in C Group: System Environment/Libraries @@ -43,6 +43,10 @@ rm -rf %{buildroot} make DESTDIR=%{buildroot} INSTALL="install -p" install rm -f %{buildroot}%{_libdir}/*.{la,a} +soname=$(readelf -d %{buildroot}%{_libdir}/libyaml.so | awk '$2 == "(SONAME)" {print $NF}' | tr -d '[]') +rm -f %{buildroot}%{_libdir}/libyaml.so +echo "INPUT($soname)" > %{buildroot}%{_libdir}/libyaml.so + %check make check @@ -73,6 +77,9 @@ rm -rf %{buildroot} %changelog +* Mon Mar 31 2014 John Eckersberg - 0.1.6-2 +- Work around ldconfig bug with libyaml.so (bz1082822) + * Wed Mar 26 2014 John Eckersberg - 0.1.6-1 - New upstream release 0.1.6 (bz1081492) - Fixes CVE-2014-2525 (bz1078083)