diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-devtools/python/python3/0001-Update-test_sysconfig-for-posix_user-purelib.patch | 39 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3_3.11.2.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-Update-test_sysconfig-for-posix_user-purelib.patch b/meta/recipes-devtools/python/python3/0001-Update-test_sysconfig-for-posix_user-purelib.patch new file mode 100644 index 0000000000..5e113415c2 --- /dev/null +++ b/meta/recipes-devtools/python/python3/0001-Update-test_sysconfig-for-posix_user-purelib.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From b9f825b298b555c4770024d1f68ef1df65aad20a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Wentao Zhang <wentao.zhang@windriver.com> | ||
| 3 | Date: Mon, 20 Mar 2023 13:39:52 +0800 | ||
| 4 | Subject: [PATCH] Update test_sysconfig for posix_user purelib | ||
| 5 | |||
| 6 | Steps to trigger the failed test: | ||
| 7 | Edit local.conf to add something as follows: | ||
| 8 | BASELIB = "lib64" | ||
| 9 | IMAGE_INSTALL:append = " python3-tests". | ||
| 10 | bitbake core-image-sato | ||
| 11 | runqemu qemux86-64 nographic slirp | ||
| 12 | Reproducer: | ||
| 13 | $python3 -m test test_sysconfig | ||
| 14 | |||
| 15 | Update test_sysconfig.test_user_similar() for the posix_user scheme: | ||
| 16 | "purelib" doesn't use sys.platlibdir. | ||
| 17 | |||
| 18 | Upstream-Status: Inappropriate [oe-core specific] | ||
| 19 | Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com> | ||
| 20 | --- | ||
| 21 | Lib/test/test_sysconfig.py | 2 +- | ||
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py | ||
| 25 | index d96371d..20aea4b 100644 | ||
| 26 | --- a/Lib/test/test_sysconfig.py | ||
| 27 | +++ b/Lib/test/test_sysconfig.py | ||
| 28 | @@ -373,7 +373,7 @@ class TestSysConfig(unittest.TestCase): | ||
| 29 | expected = os.path.normpath(global_path.replace(base, user, 1)) | ||
| 30 | # bpo-44860: platlib of posix_user doesn't use sys.platlibdir, | ||
| 31 | # whereas posix_prefix does. | ||
| 32 | - if name == 'platlib': | ||
| 33 | + if name == 'platlib' or name == 'purelib': | ||
| 34 | # Replace "/lib64/python3.11/site-packages" suffix | ||
| 35 | # with "/lib/python3.11/site-packages". | ||
| 36 | py_version_short = sysconfig.get_python_version() | ||
| 37 | -- | ||
| 38 | 2.25.1 | ||
| 39 | |||
diff --git a/meta/recipes-devtools/python/python3_3.11.2.bb b/meta/recipes-devtools/python/python3_3.11.2.bb index 5060722beb..5bd8d32b14 100644 --- a/meta/recipes-devtools/python/python3_3.11.2.bb +++ b/meta/recipes-devtools/python/python3_3.11.2.bb | |||
| @@ -31,6 +31,7 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ | |||
| 31 | file://0001-setup.py-Do-not-detect-multiarch-paths-when-cross-co.patch \ | 31 | file://0001-setup.py-Do-not-detect-multiarch-paths-when-cross-co.patch \ |
| 32 | file://deterministic_imports.patch \ | 32 | file://deterministic_imports.patch \ |
| 33 | file://0001-Avoid-shebang-overflow-on-python-config.py.patch \ | 33 | file://0001-Avoid-shebang-overflow-on-python-config.py.patch \ |
| 34 | file://0001-Update-test_sysconfig-for-posix_user-purelib.patch \ | ||
| 34 | " | 35 | " |
| 35 | 36 | ||
| 36 | SRC_URI:append:class-native = " \ | 37 | SRC_URI:append:class-native = " \ |
