...
 
Commits (3)
orthanc-wsi (0.6-2) unstable; urgency=medium
* Removed $(DEB_VERSION) from SOVERSION.
-- Sebastien Jodogne <s.jodogne@gmail.com> Mon, 28 Jan 2019 13:40:33 +0100
orthanc-wsi (0.6-1) unstable; urgency=medium
* New upstream version
......
Description: Fix the version of the shared library
Author: Sebastien Jodogne <s.jodogne@orthanc-labs.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancWSI-0.6/ViewerPlugin/CMakeLists.txt
===================================================================
--- OrthancWSI-0.6.orig/ViewerPlugin/CMakeLists.txt
+++ OrthancWSI-0.6/ViewerPlugin/CMakeLists.txt
@@ -198,9 +198,10 @@ add_library(OrthancWSI SHARED
)
message("Setting the version of the library to ${ORTHANC_WSI_VERSION}")
-set_target_properties(OrthancWSI PROPERTIES
- VERSION ${ORTHANC_WSI_VERSION}
- SOVERSION ${ORTHANC_WSI_VERSION})
+set_target_properties(OrthancWSI PROPERTIES
+ NO_SONAME ON
+ LINK_FLAGS "-Wl,-soname,libOrthancWSI.so.${ORTHANC_WSI_VERSION}"
+ )
install(
TARGETS OrthancWSI
......@@ -73,11 +73,10 @@ override_dh_auto_install:
dh_auto_install --builddirectory=BuildApplications
# Install the plugin
cp BuildViewer/${VIEWER_TARGET} BuildViewer/${VIEWER_TARGET}.${UPSTREAM_VERSION}
dh_install BuildViewer/${VIEWER_TARGET}.${UPSTREAM_VERSION} usr/lib
dh_install BuildViewer/${VIEWER_TARGET}.${UPSTREAM_VERSION} usr/lib/orthanc
override_dh_link:
dh_link usr/lib/${VIEWER_TARGET}.${UPSTREAM_VERSION} \
dh_link usr/lib/orthanc/${VIEWER_TARGET}.${UPSTREAM_VERSION} \
usr/share/orthanc/plugins/${VIEWER_TARGET}
override_dh_installchangelogs:
......