Blame 0001-use-LIB_PYTHON-realpath.patch

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