diff options
author | wangmy <wangmy@fujitsu.com> | 2021-06-17 08:10:59 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-17 22:20:44 +0100 |
commit | 446788bef3c7e1f1a353daf7230a97c0b30557d5 (patch) | |
tree | 1b1c260ae3d8142bd84b479f3dac6d574e492471 /meta/recipes-devtools/createrepo-c/createrepo-c | |
parent | 50999ca5fadd8a9fabe542c438cd23433943edd6 (diff) | |
download | poky-446788bef3c7e1f1a353daf7230a97c0b30557d5.tar.gz |
createrepo-c: upgrade 0.17.2 -> 0.17.3
refresh 0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
(From OE-Core rev: 0ff4cfe6655853082771878bdcb4578fc08f7f12)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/createrepo-c/createrepo-c')
-rw-r--r-- | meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch b/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch index 4b844574ea..b63fe53944 100644 --- a/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch +++ b/meta/recipes-devtools/createrepo-c/createrepo-c/0001-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch | |||
@@ -5,21 +5,24 @@ Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python | |||
5 | 5 | ||
6 | Upstream-Status: Inappropriate [oe-core specific] | 6 | Upstream-Status: Inappropriate [oe-core specific] |
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
8 | 8 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | |
9 | --- | 9 | --- |
10 | src/python/CMakeLists.txt | 2 +- | 10 | src/python/CMakeLists.txt | 2 +- |
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
12 | 12 | ||
13 | diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt | 13 | diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt |
14 | index ecc262d..a86514c 100644 | 14 | index a31b14d..01fd8ca 100644 |
15 | --- a/src/python/CMakeLists.txt | 15 | --- a/src/python/CMakeLists.txt |
16 | +++ b/src/python/CMakeLists.txt | 16 | +++ b/src/python/CMakeLists.txt |
17 | @@ -14,7 +14,7 @@ if (NOT SKBUILD) | 17 | @@ -14,7 +14,7 @@ if (NOT SKBUILD) |
18 | FIND_PACKAGE(PythonLibs 3 REQUIRED) | 18 | FIND_PACKAGE(PythonLibs 3 REQUIRED) |
19 | endif (NOT SKBUILD) | 19 | endif (NOT SKBUILD) |
20 | 20 | ||
21 | -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | 21 | -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('platlib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) |
22 | +#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | 22 | +#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('platlib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) |
23 | INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH}) | 23 | INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH}) |
24 | 24 | ||
25 | MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}") | 25 | MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}") |
26 | -- | ||
27 | 2.25.1 | ||
28 | |||