rpm,deb: let immutable-object-cache depend on librados2

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>
This commit is contained in:
Kefu Chai 2019-03-25 13:51:41 +08:00
parent c80d5aa693
commit 253385d4cc
2 changed files with 2 additions and 3 deletions

View 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.

3
debian/control vendored
View 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