]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: rpm: do not create librbd.so.1 symlink in /usr/lib64/qemu 17612/head
authorNathan Cutler <ncutler@suse.com>
Mon, 28 Aug 2017 22:19:24 +0000 (00:19 +0200)
committerNathan Cutler <ncutler@suse.com>
Sat, 9 Sep 2017 04:14:39 +0000 (06:14 +0200)
As reported by Ademar de Souza Reis Jr <areis@redhat.com>:

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 <ncutler@suse.com>
(cherry picked from commit be4d6b1a74a0612621c3ad2cedebaa1fa40ffbab)

ceph.spec.in

index 4749bc7179bb2fe61d587457d76f4a7b3d7dfc96..16af8d4efbe10a627cf6e890e18f1bc2a4928659 100644 (file)
@@ -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