[libyaml] Work around ldconfig bug with libyaml.so (bz1082822)
John Eckersberg
jeckersb at fedoraproject.org
Mon Mar 31 21:39:32 UTC 2014
commit 72e1452e35c23308fb1aada5e5fddd15bbcc8d00
Author: John Eckersberg <jeckersb at redhat.com>
Date: Mon Mar 31 17:39:36 2014 -0400
Work around ldconfig bug with libyaml.so (bz1082822)
libyaml.spec | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
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 <jeckersb at redhat.com> - 0.1.6-2
+- Work around ldconfig bug with libyaml.so (bz1082822)
+
* Wed Mar 26 2014 John Eckersberg <jeckersb at redhat.com> - 0.1.6-1
- New upstream release 0.1.6 (bz1081492)
- Fixes CVE-2014-2525 (bz1078083)
More information about the scm-commits
mailing list