From: Nathan Cutler Date: Mon, 28 Aug 2017 22:19:24 +0000 (+0200) Subject: build/ops: rpm: do not create librbd.so.1 symlink in /usr/lib64/qemu X-Git-Tag: v13.0.1~974^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=be4d6b1a74a0612621c3ad2cedebaa1fa40ffbab;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 81915e8fe3c8..18a2374107d2 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1530,10 +1530,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