Skip to content
Commits on Source (2)
orthanc-postgresql (3.0-2) unstable; urgency=medium
* Removed $(DEB_VERSION) from SOVERSION.
-- Sebastien Jodogne <s.jodogne@gmail.com> Mon, 28 Jan 2019 12:58:36 +0100
orthanc-postgresql (3.0-1) unstable; urgency=medium
* New upstream version
......
Description: Fix the soname of the shared libraries
Author: Sebastien Jodogne <s.jodogne@orthanc-labs.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancPostgreSQL-3.0/PostgreSQL/CMakeLists.txt
===================================================================
--- OrthancPostgreSQL-3.0.orig/PostgreSQL/CMakeLists.txt
+++ OrthancPostgreSQL-3.0/PostgreSQL/CMakeLists.txt
@@ -84,17 +84,15 @@ add_definitions(
-DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}"
)
-set_target_properties(OrthancPostgreSQLStorage PROPERTIES
- VERSION ${ORTHANC_PLUGIN_VERSION}
- SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancPostgreSQLStorage PROPERTIES
COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
- )
+ LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLStorage.so.${DEB_VERSION}"
+ NO_SONAME ON)
-set_target_properties(OrthancPostgreSQLIndex PROPERTIES
- VERSION ${ORTHANC_PLUGIN_VERSION}
- SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancPostgreSQLIndex PROPERTIES
COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
- )
+ LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLIndex.so.${DEB_VERSION}"
+ NO_SONAME ON)
install(
TARGETS OrthancPostgreSQLIndex OrthancPostgreSQLStorage
......@@ -44,12 +44,12 @@ override_dh_auto_install:
cp Build/${TARGET_INDEX} Build/${TARGET_INDEX}.${UPSTREAM_VERSION}
cp Build/${TARGET_STORAGE} Build/${TARGET_STORAGE}.${UPSTREAM_VERSION}
dh_install Build/${TARGET_INDEX}.${UPSTREAM_VERSION} usr/lib
dh_install Build/${TARGET_STORAGE}.${UPSTREAM_VERSION} usr/lib
dh_install Build/${TARGET_INDEX}.${UPSTREAM_VERSION} usr/lib/orthanc
dh_install Build/${TARGET_STORAGE}.${UPSTREAM_VERSION} usr/lib/orthanc
override_dh_link:
dh_link usr/lib/${TARGET_INDEX}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET_INDEX}
dh_link usr/lib/${TARGET_STORAGE}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET_STORAGE}
dh_link usr/lib/orthanc/${TARGET_INDEX}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET_INDEX}
dh_link usr/lib/orthanc/${TARGET_STORAGE}.${UPSTREAM_VERSION} usr/share/orthanc/plugins/${TARGET_STORAGE}
override_dh_installchangelogs:
dh_installchangelogs -k PostgreSQL/NEWS