]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm,deb: let immutable-object-cache depend on librados2 27150/head
authorKefu Chai <kchai@redhat.com>
Mon, 25 Mar 2019 05:51:41 +0000 (13:51 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 25 Mar 2019 05:56:52 +0000 (13:56 +0800)
ceph-common depends on librados2, but ceph-immutable-object-cache only
uses librados2's C++ API, so librados2 would suffice.

rpmbuild is able to figure out the .so dependencies, and let
ceph-immutable-object-cache depend on the package which offers
librados2, but we'd better make sure immutable-object-cache is linked
against the librados2 of the same version, to ensure that librados2
offers the correct C++ symbols. as we only version the C++ API in the
librados2 after nautilus.

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in
debian/control

index da17c6cf81e8f3012047a7b833a62490f3170085..6bf422430396652a0111e13b7615b5a6abd79caf 100644 (file)
@@ -585,7 +585,7 @@ Summary:    Ceph daemon for immutable object cache
 %if 0%{?suse_version}
 Group:         System/Filesystems
 %endif
-Requires:      ceph-common = %{_epoch_prefix}%{version}-%{release}
+Requires:      librados2 = %{_epoch_prefix}%{version}-%{release}
 %description immutable-object-cache
 Daemon for immutable object cache.
 
index 89c24dd4391c935d413a474c3fbf80428dde66e6..bfb22d83e8d180ed530dd101b0b629b143b01b4b 100644 (file)
@@ -427,8 +427,7 @@ Description: debugging symbols for rbd-fuse
 
 Package: ceph-immutable-object-cache
 Architecture: linux-any
-Depends: ceph-common (= ${binary:Version}),
-         librados2 (= ${binary:Version}),
+Depends: librados2 (= ${binary:Version}),
          ${misc:Depends},
          ${shlibs:Depends},
 Description: Ceph daemon for immutable object cache