From c5fb6e17235a1ea47af7e85e640fb34a886aeb95 Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Sun, 5 Oct 2014 11:40:07 +0200 Subject: package/libplist: fix python support This patch: - fixes the python3 support detection in the libplist CMake code; - correctly sets the dependencies and configure options in libplist.mk. Fixes: http://autobuild.buildroot.net/results/efb/efba806b9a40a5e9c6bca7e591747ca2102fa1d5/ Signed-off-by: Samuel Martin Signed-off-by: Thomas Petazzoni Tested-by: Thomas Petazzoni --- ...support-python2-and-python3-when-defining.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 package/libplist/libplist-0003-cmake-swig-support-python2-and-python3-when-defining.patch (limited to 'package/libplist/libplist-0003-cmake-swig-support-python2-and-python3-when-defining.patch') diff --git a/package/libplist/libplist-0003-cmake-swig-support-python2-and-python3-when-defining.patch b/package/libplist/libplist-0003-cmake-swig-support-python2-and-python3-when-defining.patch new file mode 100644 index 0000000000..a5218e8180 --- /dev/null +++ b/package/libplist/libplist-0003-cmake-swig-support-python2-and-python3-when-defining.patch @@ -0,0 +1,27 @@ +From 114d242a3b6b749b404cda80304e621556325d34 Mon Sep 17 00:00:00 2001 +From: Samuel Martin +Date: Sun, 5 Oct 2014 10:13:06 +0200 +Subject: [PATCH] cmake: swig: support python2 and python3 when defining + DISTUTILS_PYTHON_ILIBRARY_PATH + +Signed-off-by: Samuel Martin +--- + swig/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt +index 379cb95..ae6f0e7 100644 +--- a/swig/CMakeLists.txt ++++ b/swig/CMakeLists.txt +@@ -9,7 +9,7 @@ SWIG_ADD_MODULE( plist python plist.i ) + SWIG_LINK_LIBRARIES( plist plist plist++ ${PYTHON_LIBRARIES} ) + + EXEC_PROGRAM("${PYTHON_EXECUTABLE}" +- ARGS "-c 'try:\n import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1)\nexcept: pass\n'" ++ ARGS "-c 'from __future__ import print_function\ntry:\n import distutils.sysconfig; print(distutils.sysconfig.get_python_lib(plat_specific=1))\nexcept: pass\n'" + OUTPUT_VARIABLE DISTUTILS_PYTHON_ILIBRARY_PATH + ) + +-- +2.1.2 + -- cgit v1.2.3