]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: Fix mismatched librgw VERSION / SOVERSION 10754/head
authorTim Serong <tserong@suse.com>
Wed, 17 Aug 2016 11:14:46 +0000 (21:14 +1000)
committerTim Serong <tserong@suse.com>
Wed, 17 Aug 2016 12:21:59 +0000 (22:21 +1000)
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 <tserong@suse.com>
src/rgw/CMakeLists.txt

index 0be612ace066aaae9f06b6d5923956d58f285894..1c48444afb420c06dad937898eab7c45b6422e7e 100644 (file)
@@ -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})