From: Tim Serong Date: Wed, 17 Aug 2016 11:14:46 +0000 (+1000) Subject: cmake: Fix mismatched librgw VERSION / SOVERSION X-Git-Tag: ses5-milestone5~104^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10754%2Fhead;p=ceph.git cmake: Fix mismatched librgw VERSION / SOVERSION Without this, rpmlint (on openSUSE Tumbleweed) fails with: librgw2.x86_64: E: shlib-policy-name-error (Badness: 10000) librgw1 Your package contains a single shared library but is not named after its SONAME. It seems that the VERSION/SOVERSION mismatch results in the creation of librgw.so.1 and librgw.so.2.0.0, whereas it should be librgw.so.2 and librgw.so.2.0.0. Signed-off-by: Tim Serong --- diff --git a/src/rgw/CMakeLists.txt b/src/rgw/CMakeLists.txt index 0be612ace066..1c48444afb42 100644 --- a/src/rgw/CMakeLists.txt +++ b/src/rgw/CMakeLists.txt @@ -169,5 +169,5 @@ target_link_libraries(rgw LINK_PRIVATE ${CURL_LIBRARIES} ${EXPAT_LIBRARIES}) set_target_properties(rgw PROPERTIES OUTPUT_NAME rgw VERSION 2.0.0 - SOVERSION 1) + SOVERSION 2) install(TARGETS rgw DESTINATION ${CMAKE_INSTALL_LIBDIR})