mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Drop distutils and smtpd modules from packaging, as both are gone in 3.12. Rebase: 0020-configure.ac-setup.py-do-not-add-a-curses-include-pa.patch (drop setup.py chunk as the file is gone) Drop patches: 0001-Do-not-add-usr-lib-termcap-to-linker-flags-to-avoid-.patch (setup.py gone, lib/termcap not mentioned anywhere else) 0001-Don-t-search-system-for-headers-libraries.patch (setup.py gone, usr/lib64 not mentioned anywhere else) 0001-Makefile-do-not-compile-.pyc-in-parallel.patch (replaced with COMPILEALL_OPTS= in EXTRA_OEMAKE) 0001-setup.py-Do-not-detect-multiarch-paths-when-cross-co.patch (setup.py gone, add_multiarch_paths not mentioned anywhere else) 0017-setup.py-do-not-report-missing-dependencies-for-disa.patch (has been superseded by Setup.local tweak in do_configure:prepend) 12-distutils-prefix-is-inside-staging-area.patch (distutils has been removed upstream, so this old, unplesant hack can be finally dropped) avoid_warning_about_tkinter.patch (setup.py gone, tkinter detection logic performed in configure.ac) (From OE-Core rev: 716d82352545d3667a658b69d65d6127678dd150) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
From 37d058e841ba3bd89b5746cc5381afb014b11581 Mon Sep 17 00:00:00 2001
|
|
From: Wentao Zhang <wentao.zhang@windriver.com>
|
|
Date: Mon, 20 Mar 2023 13:39:52 +0800
|
|
Subject: [PATCH] Update test_sysconfig for posix_user purelib
|
|
|
|
Steps to trigger the failed test:
|
|
Edit local.conf to add something as follows:
|
|
BASELIB = "lib64"
|
|
IMAGE_INSTALL:append = " python3-tests".
|
|
bitbake core-image-sato
|
|
runqemu qemux86-64 nographic slirp
|
|
Reproducer:
|
|
$python3 -m test test_sysconfig
|
|
|
|
Update test_sysconfig.test_user_similar() for the posix_user scheme:
|
|
"purelib" doesn't use sys.platlibdir.
|
|
|
|
Upstream-Status: Inappropriate [oe-core specific]
|
|
Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
|
|
|
|
---
|
|
Lib/test/test_sysconfig.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
|
|
index b6dbf3d..5672590 100644
|
|
--- a/Lib/test/test_sysconfig.py
|
|
+++ b/Lib/test/test_sysconfig.py
|
|
@@ -372,7 +372,7 @@ class TestSysConfig(unittest.TestCase):
|
|
expected = os.path.normpath(global_path.replace(base, user, 1))
|
|
# bpo-44860: platlib of posix_user doesn't use sys.platlibdir,
|
|
# whereas posix_prefix does.
|
|
- if name == 'platlib':
|
|
+ if name == 'platlib' or name == 'purelib':
|
|
# Replace "/lib64/python3.11/site-packages" suffix
|
|
# with "/lib/python3.11/site-packages".
|
|
py_version_short = sysconfig.get_python_version()
|