diff options
Diffstat (limited to 'source/n/obexftp/patches/obexftp-0.24-fix-absurd-install-path.patch')
-rw-r--r-- | source/n/obexftp/patches/obexftp-0.24-fix-absurd-install-path.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source/n/obexftp/patches/obexftp-0.24-fix-absurd-install-path.patch b/source/n/obexftp/patches/obexftp-0.24-fix-absurd-install-path.patch new file mode 100644 index 000000000..0f5bebdb4 --- /dev/null +++ b/source/n/obexftp/patches/obexftp-0.24-fix-absurd-install-path.patch @@ -0,0 +1,20 @@ +Index: obexftp-0.24-Source/swig/python/CMakeLists.txt +=================================================================== +--- obexftp-0.24-Source.orig/swig/python/CMakeLists.txt ++++ obexftp-0.24-Source/swig/python/CMakeLists.txt +@@ -36,13 +36,13 @@ swig_link_libraries ( obexftp-python + # + execute_process ( + COMMAND ${PYTHON_EXECUTABLE} -c +- "import site, sys; sys.stdout.write(site.PREFIXES[-1])" ++ "import site, sys; sys.stdout.write(site.PREFIXES[0])" + OUTPUT_VARIABLE PYTHON_PREFIX + ) + file ( TO_CMAKE_PATH "${PYTHON_PREFIX}" PYTHON_PREFIX ) + execute_process ( + COMMAND ${PYTHON_EXECUTABLE} -c +- "import site, sys; sys.stdout.write(site.getsitepackages()[-1])" ++ "import site, sys; sys.stdout.write(site.getsitepackages()[0])" + OUTPUT_VARIABLE PYTHON_SITE_DIR + ) + file ( TO_CMAKE_PATH "${PYTHON_SITE_DIR}" PYTHON_SITE_DIR ) |