Package: kde-baseapps / 4:16.08.3-1

enable_dlrestrictions.diff Patch series | download
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
From: Modestas Vainius <modax@debian.org>
Date: Wed, 13 Jul 2016 05:35:22 +0200
Subject: Enable DLRestrictions (REJECT:OTHERSOVERSION) support for all
 libraries

Enable REJECT:OTHERSOVERSION for these libraries because their ABI is typically
not stable and structures frequently conflict.
Forwarded: not-needed
Origin: vendor
Last-Update: 2011-05-25
---
 CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63c8781..b3195e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,3 +60,10 @@ macro_optional_add_subdirectory( doc )
 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
 
 include(/usr/share/pkg-kde-tools/cmake/DebianABIManager.cmake)
+
+# Enable DLResctrictions
+if (CMAKE_BUILD_TYPE STREQUAL "Debian")
+    find_package(DLRestrictions)
+    set(DEFAULT_DLRESTRICTIONS "REJECT:OTHERSOVERSION")
+    kde4deb_dlrestrictions_process_libraries()
+endif (CMAKE_BUILD_TYPE STREQUAL "Debian")