From d2ae90cff693b8de9bd98ad7ee5e6e4fd2f92c84 Mon Sep 17 00:00:00 2001 From: Paul-Emile Element Date: Wed, 6 Jun 2018 09:43:43 -0400 Subject: [PATCH] fix rpm broken library link that caused runtime error Change-Id: Ibbb753c9a1e784c610d618b359237acbdd06b999 Signed-off-by: Matt Peters --- rpm/centos/rpm.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rpm/centos/rpm.spec b/rpm/centos/rpm.spec index 8478fe7..46a49a0 100644 --- a/rpm/centos/rpm.spec +++ b/rpm/centos/rpm.spec @@ -121,7 +121,6 @@ Group: Development/Libraries License: GPLv2+ and LGPLv2+ with exceptions Requires: rpm = %{version}-%{release} Provides: librpm.so.3()(64bit) librpmio.so.3()(64bit) -Provides: librpm.so.7()(64bit) librpmio.so.7()(64bit) # librpm uses cap_compare, introduced sometimes between libcap 2.10 and 2.16. # A manual require is needed, see #505596 Requires: libcap%{_isa} >= 2.16 @@ -267,8 +266,8 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR="$RPM_BUILD_ROOT" install -ln -s ./librpmio.so.7 ${RPM_BUILD_ROOT}%{_libdir}/librpmio.so.3 -ln -s ./librpm.so.7 ${RPM_BUILD_ROOT}%{_libdir}/librpm.so.3 +ln -s ./librpmio.so.8 ${RPM_BUILD_ROOT}%{_libdir}/librpmio.so.3 +ln -s ./librpm.so.8 ${RPM_BUILD_ROOT}%{_libdir}/librpm.so.3 ls -l ${RPM_BUILD_ROOT}%{_libdir} # remove all plugins except systemd_inhibit