when packaging debian packages, dpkg-shlibdeps analyzes the linked
shared libraries of the binaries in given package by looking at their
names. but if the name does not include any useful versioning
information, it complains. we have no intention of versioning
libceph-common, as it is merely an internal shared library used by ceph
packages only. but there is no simple way to disable dpkg-shlibdeps'
warning of
dpkg-shlibdeps: warning: can't extract name and version from library
name 'libceph-common.so'
other than skipping the dpkg-shlibdeps for the whole package. so let's
just version it anyway.
Signed-off-by: Kefu Chai <kchai@redhat.com>
%defattr(-,root,root,-)
%{_libdir}/librados.so.*
%dir %{_libdir}/ceph
-%{_libdir}/ceph/libceph-common.so
+%{_libdir}/ceph/libceph-common.so.*
%if %{with lttng}
%{_libdir}/librados_tp.so.*
%endif
usr/lib/librados.so.*
usr/lib/librados_tp.so.*
-usr/lib/ceph/libceph-common.so
+usr/lib/ceph/libceph-common.so.*
if(NOT WITH_SYSTEM_BOOST)
target_link_libraries(ceph-common ${ZLIB_LIBRARIES})
endif()
+# appease dpkg-shlibdeps
+set_target_properties(ceph-common PROPERTIES
+ SOVERSION 0)
install(TARGETS ceph-common DESTINATION ${CMAKE_INSTALL_PKGLIBDIR})
if(WITH_EMBEDDED)
add_library(cephd_common STATIC