aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkml/20-fix-python3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/libkml/20-fix-python3.patch')
-rw-r--r--community/libkml/20-fix-python3.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/libkml/20-fix-python3.patch b/community/libkml/20-fix-python3.patch
new file mode 100644
index 0000000000..e71cf798fd
--- /dev/null
+++ b/community/libkml/20-fix-python3.patch
@@ -0,0 +1,15 @@
+Author: Holger Jaekel <holger.jaekel@gmx.de>
+Summary: Fix Python 2 syntax
+----
+
+--- a/src/swig/CMakeLists.txt
++++ b/src/swig/CMakeLists.txt
+@@ -10,7 +10,7 @@ if(WITH_PYTHON)
+
+ if(NOT DEFINED PYTHON_INSTALL_DIR)
+ execute_process(COMMAND
+- ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)"
++ ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(True))"
+ OUTPUT_VARIABLE PYTHON_INSTALL_DIR
+ OUTPUT_STRIP_TRAILING_WHITESPACE )
+ endif(NOT DEFINED PYTHON_INSTALL_DIR)