···1-From b43c49109694940f0a26240753e879eb629dd02d Mon Sep 17 00:00:00 2001
2-From: Thomas Tuegel <ttuegel@gmail.com>
3-Date: Mon, 7 Sep 2015 13:54:57 -0500
4-Subject: [PATCH 1/2] old kde4 cmake policies
5-6----
7- cmake/modules/FindKDE4Internal.cmake | 33 +++++++++++++++++++++++++++++++++
8- 1 file changed, 33 insertions(+)
9-10-diff --git a/cmake/modules/FindKDE4Internal.cmake b/cmake/modules/FindKDE4Internal.cmake
11-index 7d54b9b..c435571 100644
12---- a/cmake/modules/FindKDE4Internal.cmake
13-+++ b/cmake/modules/FindKDE4Internal.cmake
14-@@ -345,6 +345,39 @@
15- # Redistribution and use is allowed according to the terms of the BSD license.
16- # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
17-18-+# this is required now by cmake 2.6 and so must not be skipped by if(KDE4_FOUND) below
19-+cmake_minimum_required(VERSION 2.8.9 FATAL_ERROR)
20-+# set the cmake policies to the 2.4.x compatibility settings (may change for KDE 4.3)
21-+cmake_policy(VERSION 2.4.5)
22-+
23-+# CMake 2.6, set compatibility behaviour to cmake 2.4
24-+# this must be executed always, because the CMAKE_MINIMUM_REQUIRED() command above
25-+# resets the policy settings, so we get a lot of warnings
26-+
27-+# CMP0000: don't require cmake_minimum_version() directly in the top level CMakeLists.txt, FindKDE4Internal.cmake is good enough
28-+cmake_policy(SET CMP0000 OLD)
29-+# CMP0002: in KDE4 we have multiple targets with the same name for the unit tests
30-+cmake_policy(SET CMP0002 OLD)
31-+# CMP0003: add the link paths to the link command as with cmake 2.4
32-+cmake_policy(SET CMP0003 OLD)
33-+# CMP0005: keep escaping behaviour for definitions added via add_definitions()
34-+cmake_policy(SET CMP0005 OLD)
35-+# since cmake 2.6.3: NEW behaviour is that setting policies doesn't "escape" the file
36-+# where this is done, macros and functions are executed with the policies as they
37-+# were when the were defined. Keep the OLD behaviour so we can set the policies here
38-+# for all KDE software without the big warning
39-+cmake_policy(SET CMP0011 OLD)
40-+
41-+# since cmake 2.8.4: when include()ing from inside cmake's module dir, prefer the files
42-+# in this directory over those from CMAKE_MODULE_PATH
43-+cmake_policy(SET CMP0017 NEW)
44-+
45-+# since cmake 3.0: use of the LOCATION target property is disallowed while it is used in KDE4Macros.cmake
46-+if (POLICY CMP0026)
47-+ cmake_policy(SET CMP0026 OLD)
48-+endif (POLICY CMP0026)
49-+
50-+
51- # Only do something if it hasn't been found yet
52- if(NOT KDE4_FOUND)
53-54---
55-2.5.0
56-
···1-{ kde, kdelibs }:
2-kde {
3-#todo: libmusicbrainz5
4- buildInputs = [ kdelibs ];
5- meta = {
6- description = "A library used to retrieve audio CD meta data from the internet";
7- };
8-}
···1+--- __init__.py.orig 2017-11-02 09:06:48.998054459 +0300
2++++ ./__init__.py 2017-11-02 09:24:28.089072752 +0300
3+@@ -1,4 +1,8 @@
4+-import sys,DLFCN
5++import sys
6++try:
7++ import DLFCN
8++except ImportError:
9++ import os as DLFCN
10+ # This is needed to ensure that dynamic_cast and RTTI works inside kdelibs.
11+ sys.setdlopenflags(DLFCN.RTLD_NOW|DLFCN.RTLD_GLOBAL)
12+13+\ No newline at end of file