File: no-soname.diff

package info (click to toggle)
resolv-wrapper 1.1.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 368 kB
  • sloc: ansic: 3,587; sh: 12; makefile: 5
file content (45 lines) | stat: -rw-r--r-- 1,438 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Description: remove SONAME
 libsocket_wrapper is a preloadable library.
 We do not support directly linking to it, so it doesn't need the SONAME.
 Let's remove it.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2023-01-21

---

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,19 +16,6 @@ project(resolv_wrapper VERSION 1.1.8 LAN
 # global needed variables
 set(APPLICATION_NAME ${PROJECT_NAME})
 
-# SOVERSION scheme: MAJOR.MINOR.PATCH
-#   If there was an incompatible interface change:
-#     Increment MAJOR. Set MINOR and PATCH to 0
-#   If there was a compatible interface change:
-#     Increment MINOR. Set PATCH to 0
-#   If the source code was changed, but there were no interface changes:
-#     Increment PATCH.
-set(LIBRARY_VERSION_MAJOR 0)
-set(LIBRARY_VERSION_MINOR 0)
-set(LIBRARY_VERSION_PATCH 8)
-set(LIBRARY_VERSION "${LIBRARY_VERSION_MAJOR}.${LIBRARY_VERSION_MINOR}.${LIBRARY_VERSION_PATCH}")
-set(LIBRARY_SOVERSION ${LIBRARY_VERSION_MAJOR})
-
 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
 set(CMAKE_MODULE_PATH
   ${CMAKE_SOURCE_DIR}/cmake/Modules
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,10 +13,7 @@ target_include_directories(resolv_wrappe
 set_target_properties(
   resolv_wrapper
     PROPERTIES
-      VERSION
-        ${LIBRARY_VERSION}
-      SOVERSION
-        ${LIBRARY_SOVERSION}
+      NO_SONAME ON
 )
 
 install(TARGETS resolv_wrapper