File: fix-soname.patch

package info (click to toggle)
dlib 19.10-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 124,876 kB
  • sloc: cpp: 293,148; xml: 25,083; python: 1,452; sh: 324; java: 229; makefile: 181; javascript: 73; perl: 18
file content (26 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Séverin Lemaignan <severin@guakamole.org>
Reviewed-by: Hugo Lefeuvre <hle@debian.org>
Subject: Fix library SONAME
 Set library SOVERSION to the library's major version number.
 While this is not considered as a good practice by many
 library packagers, dlib's upstream uses the default cmake
 behavior when SOVERSION is not specified, that is the full
 version number is considered being the SOVERSION, which is
 even worse. Using only the major version number as
 SOVERSION is therefore a good tradeoff between using a
 completely different Debian specific SOVERSION (we'd rather
 like to avoid that), and using upstream's one.
Bug-Debian: http://bugs.debian.org/894508
Last-Update: 2018-04-14
--- a/dlib/CMakeLists.txt	2018-04-14 10:21:53.318790237 -0400
+++ b/dlib/CMakeLists.txt	2018-04-14 10:22:56.270263140 -0400
@@ -774,7 +774,8 @@
    # Install the library
    if (NOT DLIB_IN_PROJECT_BUILD)
       set_target_properties(dlib PROPERTIES
-         VERSION ${VERSION})
+         VERSION ${VERSION}
+         SOVERSION ${CPACK_PACKAGE_VERSION_MAJOR})
       install(TARGETS dlib
          EXPORT dlib 
          RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} # Windows considers .dll to be runtime artifacts