Package: kde-workspace / 4:4.11.13-2

enable_dlrestrcitions.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
From: Modestas Vainius <modax@debian.org>
Subject: Enable DLRestrictions (REJECT:OTHERSOVERSION) support for all libraries
Forwarded: not-needed
Origin: vendor
Last-Update: 2011-08-11

Enable REJECT:OTHERSOVERSION for these libraries because their ABI is typically
not stable and structures frequently conflict.

Index: kde-workspace/CMakeLists.txt
===================================================================
--- kde-workspace.orig/CMakeLists.txt	2013-09-27 09:23:21.955571821 +0000
+++ kde-workspace/CMakeLists.txt	2013-09-27 09:23:21.951571977 +0000
@@ -359,3 +359,10 @@
 
 # Add support for DebianABIManager
 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")