From c8885d4a9ef0fb8b3aa29ab95a435036fb805175 Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Wed, 17 Aug 2016 21:14:46 +1000 Subject: [PATCH] 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 --- src/rgw/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- 2.47.3