From 98a53f929ef92ac6c68f34e30df929eca3f323bc Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Tue, 29 Aug 2017 00:19:24 +0200 Subject: [PATCH] build/ops: rpm: do not create librbd.so.1 symlink in /usr/lib64/qemu As reported by Ademar de Souza Reis Jr : This symlink should not be necessary anymore. QEMU is properly linked to ceph/librbd these days (look at the qemu-block-rbd sub-package in Fedora and the respective package in RHEL). The symlink was a hack from a time when librbd was distributed and supported by ceph and the rbd driver would be enabled at runtime only when/if the symlink was present. So the right fix is to actually get rid of the symlink altogether and never touch (much less own) /usr/lib64/qemu. Signed-off-by: Nathan Cutler (cherry picked from commit be4d6b1a74a0612621c3ad2cedebaa1fa40ffbab) --- ceph.spec.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 4749bc7179bb2..16af8d4efbe10 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1528,10 +1528,7 @@ fi %{_libdir}/librbd_tp.so.* %endif -%post -n librbd1 -/sbin/ldconfig -mkdir -p /usr/lib64/qemu/ -ln -sf %{_libdir}/librbd.so.1 /usr/lib64/qemu/librbd.so.1 +%post -n librbd1 -p /sbin/ldconfig %postun -n librbd1 -p /sbin/ldconfig -- 2.39.5