blob: d483dd410b34f91f47b5b1c88fd58ea5d474d354 [file] [log] [blame]
Andrew Geissler09036742021-06-25 14:25:14 -05001From c0a465ccae395871ab10932975e37894220bc6a1 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 1 Jun 2021 10:23:59 +0800
4Subject: [PATCH] drop FindPythonInstDir.cmake
5
6Since commit [1] applied, PYTHON_INSTALL_DIR is not right
7on nativesdk build
8...
9|Building for python3
10|-- Python install dir is
11|tmp-glibc/work/x86_64-nativesdk-wrlinuxsdk-linux/nativesdk-libdnf/0.63.0-r0/
12recipe-sysroot-native/usr/lib/python3.9/site-packages
13...
14
15Yocto manually set PYTHON_INSTALL_DIR from recipe, it is not
16necessary to call FindPythonInstDir.cmake which will override
17Yocto setting
18
19[1] https://github.com/rpm-software-management/libdnf/commit/f1cffbfb9f338da827e233c2d8ac3a25a6a59a69
20
21Upstream-Status: Inappropriate [Yocto specific]
22
23Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
24---
25 cmake/modules/FindPythonInstDir.cmake | 7 +------
26 1 file changed, 1 insertion(+), 6 deletions(-)
27
28diff --git a/cmake/modules/FindPythonInstDir.cmake b/cmake/modules/FindPythonInstDir.cmake
29index ed098ded..8b137891 100644
30--- a/cmake/modules/FindPythonInstDir.cmake
31+++ b/cmake/modules/FindPythonInstDir.cmake
32@@ -1,6 +1 @@
33-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "
34-from sys import stdout
35-from sysconfig import get_path
36-path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'})
37-stdout.write(path)"
38-OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
39+
40--
412.18.1
42