Blame 0001-use-LIB_PYTHON-realpath.patch

Rex Dieter c6d8bf6
From 34bed3ceb7cd2bb43e67acce97f4cc3e8bbc1c1d Mon Sep 17 00:00:00 2001
Rex Dieter c6d8bf6
From: Rex Dieter <rdieter@math.unl.edu>
Rex Dieter c6d8bf6
Date: Tue, 11 Mar 2014 09:51:17 -0500
Rex Dieter c6d8bf6
Subject: [PATCH 1/3] use LIB_PYTHON realpath
Rex Dieter c6d8bf6
Rex Dieter c6d8bf6
Use GET_FILENAME_COMPONENT( ... REALPATH). PYTHON_LIBRARY as returned
Rex Dieter c6d8bf6
by cmake, whose target is often a symlink.  Some distro packaging
Rex Dieter c6d8bf6
reserves such library symlinks for -devel and not runtime.
Rex Dieter c6d8bf6
Rex Dieter c6d8bf6
REVIEW: 116719
Rex Dieter c6d8bf6
---
Rex Dieter c6d8bf6
 kpythonpluginfactory/CMakeLists.txt | 3 ++-
Rex Dieter c6d8bf6
 1 file changed, 2 insertions(+), 1 deletion(-)
Rex Dieter c6d8bf6
Rex Dieter c6d8bf6
diff --git a/kpythonpluginfactory/CMakeLists.txt b/kpythonpluginfactory/CMakeLists.txt
Rex Dieter c6d8bf6
index c24160e..a777dac 100644
Rex Dieter c6d8bf6
--- a/kpythonpluginfactory/CMakeLists.txt
Rex Dieter c6d8bf6
+++ b/kpythonpluginfactory/CMakeLists.txt
Rex Dieter c6d8bf6
@@ -3,7 +3,8 @@
Rex Dieter c6d8bf6
 set(kpythonpluginfactory_SRCS
Rex Dieter c6d8bf6
     kpythonpluginfactory.cpp)
Rex Dieter c6d8bf6
 
Rex Dieter c6d8bf6
-GET_FILENAME_COMPONENT(LIB_PYTHON ${PYTHON_LIBRARIES} NAME)
Rex Dieter c6d8bf6
+GET_FILENAME_COMPONENT(PYTHON_LIBRARY_REALPATH "${PYTHON_LIBRARY}" REALPATH)
Rex Dieter c6d8bf6
+GET_FILENAME_COMPONENT(LIB_PYTHON ${PYTHON_LIBRARY_REALPATH} NAME)
Rex Dieter c6d8bf6
 ADD_DEFINITIONS(-DLIB_PYTHON="${LIB_PYTHON}")
Rex Dieter c6d8bf6
 ADD_DEFINITIONS(-DKDE_DEFAULT_DEBUG_AREA=15000)
Rex Dieter c6d8bf6
 
Rex Dieter c6d8bf6
-- 
Rex Dieter c6d8bf6
2.9.3
Rex Dieter c6d8bf6