]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
build/ops: rpm: do not create librbd.so.1 symlink in /usr/lib64/qemu 17324/head
authorNathan Cutler <ncutler@suse.com>
Mon, 28 Aug 2017 22:19:24 +0000 (00:19 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 4 Sep 2017 13:00:47 +0000 (15:00 +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>
ceph.spec.in

index 81915e8fe3c8515d4537aa888f54e1b2b11718d8..18a2374107d2d43c4b893895626856464213369b 100644 (file)
@@ -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