diff options
author | Holger Jaekel <holger.jaekel@gmx.de> | 2020-05-08 21:33:33 +0200 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-05-15 14:04:03 +0200 |
commit | 45c6d85825576650dc848aea1d1cb880072f3457 (patch) | |
tree | d50a47027ce9d37f5951d416cb90552a33480a3d /community/libkml/20-fix-python3.patch | |
parent | 5a2e18dc13dd178a8c4e09e09e02df952e464b28 (diff) | |
download | aports-45c6d85825576650dc848aea1d1cb880072f3457.tar.gz aports-45c6d85825576650dc848aea1d1cb880072f3457.tar.bz2 aports-45c6d85825576650dc848aea1d1cb880072f3457.tar.xz |
community/libkml: move from testing
Diffstat (limited to 'community/libkml/20-fix-python3.patch')
-rw-r--r-- | community/libkml/20-fix-python3.patch | 15 |
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) |