[SCM] kodiplatform/master: Fix SOVERSION of libkodiplatform

rbalint at users.alioth.debian.org rbalint at users.alioth.debian.org
Wed Sep 9 22:18:01 UTC 2015


The following commit has been merged in the master branch:
commit aa4cec12f569acc96cbb5a109bde0edb2ac34d43
Author: Balint Reczey <balint at balintreczey.hu>
Date:   Wed Sep 9 21:31:38 2015 +0200

    Fix SOVERSION of libkodiplatform
    
    Also fix SOVERSION to be one single number

diff --git a/debian/patches/04_fix_so_version.patch b/debian/patches/04_fix_so_version.patch
new file mode 100644
index 0000000..dad8be7
--- /dev/null
+++ b/debian/patches/04_fix_so_version.patch
@@ -0,0 +1,27 @@
+Description: Fix SOVERSION of the shipped library
+ Changing it based on some other package's version is not reliable
+ .
+Author: Balint Reczey <balint at balintreczey.hu>
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,8 +14,8 @@
+ 
+ set(kodiplatform_NAME kodiplatform)
+ set(kodiplatform_DESCRIPTION "Kodi add-on platform support library")
+-set(kodiplatform_VERSION_MAJOR ${APP_VERSION_MAJOR})
+-set(kodiplatform_VERSION_MINOR ${APP_VERSION_MINOR})
++set(kodiplatform_VERSION_MAJOR 16)
++set(kodiplatform_VERSION_MINOR 0)
+ set(kodiplatform_VERSION_PATCH 0)
+ 
+ if(NOT WIN32)
+@@ -41,7 +41,7 @@
+ add_library(kodiplatform ${SOURCES} ${PLAT_SOURCES})
+ target_link_libraries(kodiplatform ${kodiplatform_LIBRARIES} ${platform_LIBRARIES})
+ set_target_properties(kodiplatform PROPERTIES VERSION ${kodiplatform_VERSION_MAJOR}.${kodiplatform_VERSION_MINOR}.${kodiplatform_VERSION_PATCH}
+-                                              SOVERSION ${kodiplatform_VERSION_MAJOR}.0)
++                                              SOVERSION ${kodiplatform_VERSION_MAJOR})
+ 
+ install(TARGETS kodiplatform DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ install(FILES src/util/XMLUtils.h
diff --git a/debian/patches/series b/debian/patches/series
index e630a95..447339a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 01_use_cec-platform.patch
 02_fix-noarch-libdir-usage.patch
 03_dont_set_cflags_in_pkg-config.patch
+04_fix_so_version.patch

-- 
kodiplatform packaging



More information about the pkg-multimedia-commits mailing list