<div dir="ltr"><div>As RP said, the problematic pieces will be tested and fixed one by one, I guess I was too optimistic about this patchset's maturity.</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 7 Dec 2019 at 16:48, Khem Raj <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">besides gettext this is another reason I suppose causing a few more failures see<br>
<br>
<br>
<a href="http://errors.yoctoproject.org/Errors/Build/94077/" rel="noreferrer" target="_blank">http://errors.yoctoproject.org/Errors/Build/94077/</a><br>
<br>
all do_prepare_recipe_sysroot seems to be failing in python snippets.<br>
and do_configure aree also related to native python missing modules<br>
do_compile are mostly related to gettext.<br>
<br>
On Thu, Dec 5, 2019 at 7:45 AM Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>> wrote:<br>
><br>
> Drop backports, rebase other patches.<br>
><br>
> One patch I wasn't able to rebase as upstream code changed too much:<br>
> 0003-setup.py-pass-missing-libraries-to-Extension-for-mul.patch<br>
> Please determine if it is still needed, produce a new version,<br>
> and work with upstream to get it merged.<br>
><br>
> 0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch<br>
> is removed as the use case (allowing python 2 and 3 to coexist<br>
> in SDKs) is no longer relevant with Python 2.x reaching end of line<br>
> and upstream has refactored the code making a rebase difficult.<br>
> If needed, please re-add the patch to py2, rather than py3.<br>
><br>
> Python 3.8 no longer adds "m" to "3.8" in paths, so adjust the recipes<br>
> and classes accordingly.<br>
><br>
> Signed-off-by: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> ---<br>
> meta/classes/python3-dir.bbclass | 4 +-<br>
> ...ib-termcap-to-linker-flags-to-avoid-.patch | 14 +-<br>
> ...lib-as-location-for-site-packages-an.patch | 156 ++++++++------<br>
> ...-detection-of-mips-architecture-for-.patch | 16 +-<br>
> ...fig-append-STAGING_LIBDIR-python-sys.patch | 2 +-<br>
> ...ON3HOME-is-set-use-instead-of-PYTHON.patch | 47 -----<br>
> ...asename-to-replace-CC-for-checking-c.patch | 37 ++--<br>
> ...runtime-test-to-get-float-byte-order.patch | 199 ------------------<br>
> ...ssing-libraries-to-Extension-for-mul.patch | 80 -------<br>
> ...report-missing-dependencies-for-disa.patch | 11 +-<br>
> ...tutils-prefix-is-inside-staging-area.patch | 2 +-<br>
> .../python3/avoid_warning_about_tkinter.patch | 33 ++-<br>
> .../python/python3/python-config.patch | 24 ++-<br>
> .../python/python3/python3-manifest.json | 4 +-<br>
> .../{<a href="http://python3_3.7.5.bb" rel="noreferrer" target="_blank">python3_3.7.5.bb</a> => <a href="http://python3_3.8.0.bb" rel="noreferrer" target="_blank">python3_3.8.0.bb</a>} | 28 ++-<br>
> 15 files changed, 175 insertions(+), 482 deletions(-)<br>
> delete mode 100644 meta/recipes-devtools/python/python3/0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch<br>
> delete mode 100644 meta/recipes-devtools/python/python3/0002-Don-t-do-runtime-test-to-get-float-byte-order.patch<br>
> delete mode 100644 meta/recipes-devtools/python/python3/0003-setup.py-pass-missing-libraries-to-Extension-for-mul.patch<br>
> rename meta/recipes-devtools/python/{<a href="http://python3_3.7.5.bb" rel="noreferrer" target="_blank">python3_3.7.5.bb</a> => <a href="http://python3_3.8.0.bb" rel="noreferrer" target="_blank">python3_3.8.0.bb</a>} (91%)<br>
><br>
> diff --git a/meta/classes/python3-dir.bbclass b/meta/classes/python3-dir.bbclass<br>
> index 7dd130bad99..036d7140d99 100644<br>
> --- a/meta/classes/python3-dir.bbclass<br>
> +++ b/meta/classes/python3-dir.bbclass<br>
> @@ -1,5 +1,5 @@<br>
> -PYTHON_BASEVERSION = "3.7"<br>
> -PYTHON_ABI = "m"<br>
> +PYTHON_BASEVERSION = "3.8"<br>
> +PYTHON_ABI = ""<br>
> PYTHON_DIR = "python${PYTHON_BASEVERSION}"<br>
> PYTHON_PN = "python3"<br>
> PYTHON_SITEPACKAGES_DIR = "${libdir}/${PYTHON_DIR}/site-packages"<br>
> diff --git a/meta/recipes-devtools/python/python3/0001-Do-not-add-usr-lib-termcap-to-linker-flags-to-avoid-.patch b/meta/recipes-devtools/python/python3/0001-Do-not-add-usr-lib-termcap-to-linker-flags-to-avoid-.patch<br>
> index 09f279ba1d7..59592821d7f 100644<br>
> --- a/meta/recipes-devtools/python/python3/0001-Do-not-add-usr-lib-termcap-to-linker-flags-to-avoid-.patch<br>
> +++ b/meta/recipes-devtools/python/python3/0001-Do-not-add-usr-lib-termcap-to-linker-flags-to-avoid-.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From 23294c6ba6896115828293fdb7e67b47b38ba675 Mon Sep 17 00:00:00 2001<br>
> +From 039c53dd5baddec3359a05be0bff46a3b32bbb84 Mon Sep 17 00:00:00 2001<br>
> From: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> Date: Fri, 25 Jan 2019 19:04:13 +0100<br>
> Subject: [PATCH] Do not add /usr/lib/termcap to linker flags to avoid host<br>
> @@ -12,14 +12,14 @@ Signed-off-by: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> 1 file changed, 1 deletion(-)<br>
><br>
> diff --git a/setup.py b/setup.py<br>
> -index b4357e3..fbec00d 100644<br>
> +index 20d7f35..ab18ff0 100644<br>
> --- a/setup.py<br>
> +++ b/setup.py<br>
> -@@ -856,7 +856,6 @@ class PyBuildExt(build_ext):<br>
> +@@ -957,7 +957,6 @@ class PyBuildExt(build_ext):<br>
> 'termcap'):<br>
> readline_libs.append('termcap')<br>
> - exts.append( Extension('readline', ['readline.c'],<br>
> -- library_dirs=['/usr/lib/termcap'],<br>
> - extra_link_args=readline_extra_link_args,<br>
> - libraries=readline_libs) )<br>
> + self.add(Extension('readline', ['readline.c'],<br>
> +- library_dirs=['/usr/lib/termcap'],<br>
> + extra_link_args=readline_extra_link_args,<br>
> + libraries=readline_libs))<br>
> else:<br>
> diff --git a/meta/recipes-devtools/python/python3/0001-Do-not-hardcode-lib-as-location-for-site-packages-an.patch b/meta/recipes-devtools/python/python3/0001-Do-not-hardcode-lib-as-location-for-site-packages-an.patch<br>
> index ea75262c4f6..112c979441f 100644<br>
> --- a/meta/recipes-devtools/python/python3/0001-Do-not-hardcode-lib-as-location-for-site-packages-an.patch<br>
> +++ b/meta/recipes-devtools/python/python3/0001-Do-not-hardcode-lib-as-location-for-site-packages-an.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From 0fbdad1eaf541a8e92be81f39514cd249b3b0801 Mon Sep 17 00:00:00 2001<br>
> +From a078b6ff1492e848ad1055764fb9a414abaf3e12 Mon Sep 17 00:00:00 2001<br>
> From: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> Date: Tue, 5 Feb 2019 15:52:02 +0100<br>
> Subject: [PATCH] Do not hardcode "lib" as location for modules, site-packages<br>
> @@ -11,13 +11,13 @@ Signed-off-by: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> Include/pythonrun.h | 2 ++<br>
> Lib/site.py | 4 ++--<br>
> <a href="http://Makefile.pre.in" rel="noreferrer" target="_blank">Makefile.pre.in</a> | 5 +++--<br>
> - Modules/getpath.c | 18 ++++++++++++------<br>
> + Modules/getpath.c | 22 ++++++++++++++--------<br>
> Python/getplatform.c | 10 ++++++++++<br>
> Python/sysmodule.c | 2 ++<br>
> - 6 files changed, 31 insertions(+), 10 deletions(-)<br>
> + 6 files changed, 33 insertions(+), 12 deletions(-)<br>
><br>
> diff --git a/Include/pythonrun.h b/Include/pythonrun.h<br>
> -index 6f0c6fc..0a17edd 100644<br>
> +index 46091e0..61b2e15 100644<br>
> --- a/Include/pythonrun.h<br>
> +++ b/Include/pythonrun.h<br>
> @@ -7,6 +7,8 @@<br>
> @@ -28,12 +28,12 @@ index 6f0c6fc..0a17edd 100644<br>
> +<br>
> #ifndef Py_LIMITED_API<br>
> PyAPI_FUNC(int) PyRun_SimpleStringFlags(const char *, PyCompilerFlags *);<br>
> - PyAPI_FUNC(int) PyRun_AnyFileFlags(FILE *, const char *, PyCompilerFlags *);<br>
> + PyAPI_FUNC(int) PyRun_AnyFileExFlags(<br>
> diff --git a/Lib/site.py b/Lib/site.py<br>
> -index ffd132b..b55f6d8 100644<br>
> +index a065ab0..1d720ef 100644<br>
> --- a/Lib/site.py<br>
> +++ b/Lib/site.py<br>
> -@@ -334,12 +334,12 @@ def getsitepackages(prefixes=None):<br>
> +@@ -335,12 +335,12 @@ def getsitepackages(prefixes=None):<br>
> seen.add(prefix)<br>
><br>
> if os.sep == '/':<br>
> @@ -49,10 +49,10 @@ index ffd132b..b55f6d8 100644<br>
><br>
> def addsitepackages(known_paths, prefixes=None):<br>
> diff --git a/<a href="http://Makefile.pre.in" rel="noreferrer" target="_blank">Makefile.pre.in</a> b/<a href="http://Makefile.pre.in" rel="noreferrer" target="_blank">Makefile.pre.in</a><br>
> -index 6e81b2f..671a20e 100644<br>
> +index 65665df..be49140 100644<br>
> --- a/<a href="http://Makefile.pre.in" rel="noreferrer" target="_blank">Makefile.pre.in</a><br>
> +++ b/<a href="http://Makefile.pre.in" rel="noreferrer" target="_blank">Makefile.pre.in</a><br>
> -@@ -142,7 +142,7 @@ LIBDIR= @libdir@<br>
> +@@ -143,7 +143,7 @@ LIBDIR= @libdir@<br>
> MANDIR= @mandir@<br>
> INCLUDEDIR= @includedir@<br>
> CONFINCLUDEDIR= $(exec_prefix)/include<br>
> @@ -61,7 +61,7 @@ index 6e81b2f..671a20e 100644<br>
> ABIFLAGS= @ABIFLAGS@<br>
><br>
> # Detailed destination directories<br>
> -@@ -768,6 +768,7 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile<br>
> +@@ -753,6 +753,7 @@ Modules/getpath.o: $(srcdir)/Modules/getpath.c Makefile<br>
> -DEXEC_PREFIX='"$(exec_prefix)"' \<br>
> -DVERSION='"$(VERSION)"' \<br>
> -DVPATH='"$(VPATH)"' \<br>
> @@ -69,7 +69,7 @@ index 6e81b2f..671a20e 100644<br>
> -o $@ $(srcdir)/Modules/getpath.c<br>
><br>
> Programs/python.o: $(srcdir)/Programs/python.c<br>
> -@@ -856,7 +857,7 @@ regen-opcode:<br>
> +@@ -868,7 +869,7 @@ regen-symbol: $(srcdir)/Include/graminit.h<br>
> Python/compile.o Python/symtable.o Python/ast_unparse.o Python/ast.o Python/future.o Parser/parsetok.o: $(srcdir)/Include/graminit.h $(srcdir)/Include/Python-ast.h<br>
><br>
> Python/getplatform.o: $(srcdir)/Python/getplatform.c<br>
> @@ -79,72 +79,90 @@ index 6e81b2f..671a20e 100644<br>
> Python/importdl.o: $(srcdir)/Python/importdl.c<br>
> $(CC) -c $(PY_CORE_CFLAGS) -I$(DLINCLDIR) -o $@ $(srcdir)/Python/importdl.c<br>
> diff --git a/Modules/getpath.c b/Modules/getpath.c<br>
> -index e6a3e8e..0c62af6 100644<br>
> +index b727f66..c003e46 100644<br>
> --- a/Modules/getpath.c<br>
> +++ b/Modules/getpath.c<br>
> -@@ -123,6 +123,7 @@ typedef struct {<br>
> - wchar_t *exec_prefix; /* EXEC_PREFIX define */<br>
> +@@ -128,6 +128,7 @@ typedef struct {<br>
> + wchar_t *exec_prefix; /* EXEC_PREFIX macro */<br>
><br>
> wchar_t *lib_python; /* "lib/pythonX.Y" */<br>
> + wchar_t *multilib_python; /* "lib[suffix]/pythonX.Y" */<br>
> - wchar_t argv0_path[MAXPATHLEN+1];<br>
> - wchar_t zip_path[MAXPATHLEN+1]; /* ".../lib/pythonXY.zip" */<br>
><br>
> -@@ -314,7 +315,7 @@ search_for_prefix(const _PyCoreConfig *core_config,<br>
> + int prefix_found; /* found platform independent libraries? */<br>
> + int exec_prefix_found; /* found the platform dependent libraries? */<br>
> +@@ -386,7 +387,7 @@ search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,<br>
> if (delim) {<br>
> *delim = L'\0';<br>
> }<br>
> -- joinpath(prefix, calculate->lib_python);<br>
> -+ joinpath(prefix, calculate->multilib_python);<br>
> - joinpath(prefix, LANDMARK);<br>
> - return 1;<br>
> - }<br>
> -@@ -343,7 +344,7 @@ search_for_prefix(const _PyCoreConfig *core_config,<br>
> - copy_absolute(prefix, calculate->argv0_path, MAXPATHLEN+1);<br>
> +- status = joinpath(prefix, calculate->lib_python, prefix_len);<br>
> ++ status = joinpath(prefix, calculate->multilib_python, prefix_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + return status;<br>
> + }<br>
> +@@ -444,7 +445,7 @@ search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,<br>
> do {<br>
> - n = wcslen(prefix);<br>
> -- joinpath(prefix, calculate->lib_python);<br>
> -+ joinpath(prefix, calculate->multilib_python);<br>
> - joinpath(prefix, LANDMARK);<br>
> - if (ismodule(prefix)) {<br>
> - return 1;<br>
> -@@ -355,7 +356,7 @@ search_for_prefix(const _PyCoreConfig *core_config,<br>
> - /* Look at configure's PREFIX */<br>
> - wcsncpy(prefix, calculate->prefix, MAXPATHLEN);<br>
> - prefix[MAXPATHLEN] = L'\0';<br>
> -- joinpath(prefix, calculate->lib_python);<br>
> -+ joinpath(prefix, calculate->multilib_python);<br>
> - joinpath(prefix, LANDMARK);<br>
> - if (ismodule(prefix)) {<br>
> - return 1;<br>
> -@@ -427,7 +428,7 @@ search_for_exec_prefix(const _PyCoreConfig *core_config,<br>
> - wcsncpy(exec_prefix, core_config->home, MAXPATHLEN);<br>
> + /* Path: <argv0_path or substring> / <lib_python> / LANDMARK */<br>
> + size_t n = wcslen(prefix);<br>
> +- status = joinpath(prefix, calculate->lib_python, prefix_len);<br>
> ++ status = joinpath(prefix, calculate->multilib_python, prefix_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + return status;<br>
> }<br>
> - exec_prefix[MAXPATHLEN] = L'\0';<br>
> -- joinpath(exec_prefix, calculate->lib_python);<br>
> -+ joinpath(exec_prefix, calculate->multilib_python);<br>
> - joinpath(exec_prefix, L"lib-dynload");<br>
> - return 1;<br>
> +@@ -467,7 +468,7 @@ search_for_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,<br>
> + if (safe_wcscpy(prefix, calculate->prefix, prefix_len) < 0) {<br>
> + return PATHLEN_ERR();<br>
> + }<br>
> +- status = joinpath(prefix, calculate->lib_python, prefix_len);<br>
> ++ status = joinpath(prefix, calculate->multilib_python, prefix_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + return status;<br>
> }<br>
> -@@ -464,7 +465,7 @@ search_for_exec_prefix(const _PyCoreConfig *core_config,<br>
> - copy_absolute(exec_prefix, calculate->argv0_path, MAXPATHLEN+1);<br>
> +@@ -510,7 +511,7 @@ calculate_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,<br>
> + if (safe_wcscpy(prefix, calculate->prefix, prefix_len) < 0) {<br>
> + return PATHLEN_ERR();<br>
> + }<br>
> +- status = joinpath(prefix, calculate->lib_python, prefix_len);<br>
> ++ status = joinpath(prefix, calculate->multilib_python, prefix_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + return status;<br>
> + }<br>
> +@@ -635,7 +636,7 @@ search_for_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,<br>
> + return PATHLEN_ERR();<br>
> + }<br>
> + }<br>
> +- status = joinpath(exec_prefix, calculate->lib_python, exec_prefix_len);<br>
> ++ status = joinpath(exec_prefix, calculate->multilib_python, exec_prefix_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + return status;<br>
> + }<br>
> +@@ -667,7 +668,7 @@ search_for_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,<br>
> do {<br>
> - n = wcslen(exec_prefix);<br>
> -- joinpath(exec_prefix, calculate->lib_python);<br>
> -+ joinpath(exec_prefix, calculate->multilib_python);<br>
> - joinpath(exec_prefix, L"lib-dynload");<br>
> - if (isdir(exec_prefix)) {<br>
> - return 1;<br>
> -@@ -476,7 +477,7 @@ search_for_exec_prefix(const _PyCoreConfig *core_config,<br>
> - /* Look at configure's EXEC_PREFIX */<br>
> - wcsncpy(exec_prefix, calculate->exec_prefix, MAXPATHLEN);<br>
> - exec_prefix[MAXPATHLEN] = L'\0';<br>
> -- joinpath(exec_prefix, calculate->lib_python);<br>
> -+ joinpath(exec_prefix, calculate->multilib_python);<br>
> - joinpath(exec_prefix, L"lib-dynload");<br>
> - if (isdir(exec_prefix)) {<br>
> - return 1;<br>
> -@@ -871,6 +872,10 @@ calculate_init(PyCalculatePath *calculate,<br>
> + /* Path: <argv0_path or substring> / <lib_python> / "lib-dynload" */<br>
> + size_t n = wcslen(exec_prefix);<br>
> +- status = joinpath(exec_prefix, calculate->lib_python, exec_prefix_len);<br>
> ++ status = joinpath(exec_prefix, calculate->multilib_python, exec_prefix_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + return status;<br>
> + }<br>
> +@@ -689,7 +690,7 @@ search_for_exec_prefix(PyCalculatePath *calculate, _PyPathConfig *pathconfig,<br>
> + if (safe_wcscpy(exec_prefix, calculate->exec_prefix, exec_prefix_len) < 0) {<br>
> + return PATHLEN_ERR();<br>
> + }<br>
> +- status = joinpath(exec_prefix, calculate->lib_python, exec_prefix_len);<br>
> ++ status = joinpath(exec_prefix, calculate->multilib_python, exec_prefix_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + return status;<br>
> + }<br>
> +@@ -928,7 +929,7 @@ calculate_argv0_path(PyCalculatePath *calculate, const wchar_t *program_full_pat<br>
> + return PATHLEN_ERR();<br>
> + }<br>
> + reduce(argv0_path);<br>
> +- status = joinpath(argv0_path, calculate->lib_python, argv0_path_len);<br>
> ++ status = joinpath(argv0_path, calculate->multilib_python, argv0_path_len);<br>
> + if (_PyStatus_EXCEPTION(status)) {<br>
> + PyMem_RawFree(wbuf);<br>
> + return status;<br>
> +@@ -1201,6 +1202,10 @@ calculate_init(PyCalculatePath *calculate, const PyConfig *config)<br>
> if (!calculate->lib_python) {<br>
> return DECODE_LOCALE_ERR("EXEC_PREFIX define", len);<br>
> }<br>
> @@ -152,10 +170,10 @@ index e6a3e8e..0c62af6 100644<br>
> + if (!calculate->multilib_python) {<br>
> + return DECODE_LOCALE_ERR("EXEC_PREFIX define", len);<br>
> + }<br>
> - return _Py_INIT_OK();<br>
> - }<br>
><br>
> -@@ -882,6 +887,7 @@ calculate_free(PyCalculatePath *calculate)<br>
> + calculate->warnings = config->pathconfig_warnings;<br>
> + calculate->pythonpath_env = config->pythonpath_env;<br>
> +@@ -1216,6 +1221,7 @@ calculate_free(PyCalculatePath *calculate)<br>
> PyMem_RawFree(calculate->prefix);<br>
> PyMem_RawFree(calculate->exec_prefix);<br>
> PyMem_RawFree(calculate->lib_python);<br>
> @@ -182,10 +200,10 @@ index 81a0f7a..d55396b 100644<br>
> + return LIB;<br>
> +}<br>
> diff --git a/Python/sysmodule.c b/Python/sysmodule.c<br>
> -index efe5b29..de77b17 100644<br>
> +index 5b0fb81..0dce754 100644<br>
> --- a/Python/sysmodule.c<br>
> +++ b/Python/sysmodule.c<br>
> -@@ -2319,6 +2319,8 @@ _PySys_BeginInit(PyObject **sysmod)<br>
> +@@ -2668,6 +2668,8 @@ _PySys_InitCore(_PyRuntimeState *runtime, PyInterpreterState *interp,<br>
> PyUnicode_FromString(Py_GetCopyright()));<br>
> SET_SYS_FROM_STRING("platform",<br>
> PyUnicode_FromString(Py_GetPlatform()));<br>
> diff --git a/meta/recipes-devtools/python/python3/0001-bpo-36852-proper-detection-of-mips-architecture-for-.patch b/meta/recipes-devtools/python/python3/0001-bpo-36852-proper-detection-of-mips-architecture-for-.patch<br>
> index e7af88654da..fe0aa8aabed 100644<br>
> --- a/meta/recipes-devtools/python/python3/0001-bpo-36852-proper-detection-of-mips-architecture-for-.patch<br>
> +++ b/meta/recipes-devtools/python/python3/0001-bpo-36852-proper-detection-of-mips-architecture-for-.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From 7535c39951b9d15dd64c4669092a8582ba555466 Mon Sep 17 00:00:00 2001<br>
> +From 2581ebe3cd9686089aed223651e1b8bf0b862b48 Mon Sep 17 00:00:00 2001<br>
> From: Matthias Schoepfer <<a href="mailto:matthias.schoepfer@ithinx.io" target="_blank">matthias.schoepfer@ithinx.io</a>><br>
> Date: Fri, 31 May 2019 15:34:34 +0200<br>
> Subject: [PATCH] bpo-36852: proper detection of mips architecture for soft<br>
> @@ -12,15 +12,16 @@ to do this in a more autoconf/autotools manner.<br>
><br>
> Upstream-Status: Submitted [<a href="https://github.com/python/cpython/pull/13196" rel="noreferrer" target="_blank">https://github.com/python/cpython/pull/13196</a>]<br>
> Signed-off-by: Matthias Schoepfer <<a href="mailto:matthias.schoepfer@ithinx.io" target="_blank">matthias.schoepfer@ithinx.io</a>><br>
> +<br>
> ---<br>
> - <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 169 ++++++---------------------------------------------<br>
> - 1 file changed, 17 insertions(+), 152 deletions(-)<br>
> + <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 171 +++++----------------------------------------------<br>
> + 1 file changed, 17 insertions(+), 154 deletions(-)<br>
><br>
> diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> -index a7de901e08..a73e2de51b 100644<br>
> +index 0f85486..0ca7e24 100644<br>
> --- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> +++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> -@@ -727,158 +727,23 @@ fi<br>
> +@@ -704,160 +704,23 @@ fi<br>
> MULTIARCH=$($CC --print-multiarch 2>/dev/null)<br>
> AC_SUBST(MULTIARCH)<br>
><br>
> @@ -163,6 +164,8 @@ index a7de901e08..a73e2de51b 100644<br>
> - i386-gnu<br>
> -#elif defined(__APPLE__)<br>
> - darwin<br>
> +-#elif defined(__VXWORKS__)<br>
> +- vxworks<br>
> -#else<br>
> -# error unknown platform triplet<br>
> -#endif<br>
> @@ -196,6 +199,3 @@ index a7de901e08..a73e2de51b 100644<br>
><br>
> if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then<br>
> if test x$PLATFORM_TRIPLET != x$MULTIARCH; then<br>
> ---<br>
> -2.21.0<br>
> -<br>
> diff --git a/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch b/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch<br>
> index 1709011be8a..ee37f6bd52d 100644<br>
> --- a/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch<br>
> +++ b/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From eff903c600f4c40f5753e95ab1557126fc6e0c9c Mon Sep 17 00:00:00 2001<br>
> +From cf676775109c0a7fb38058bb60b453ff8f1a166b Mon Sep 17 00:00:00 2001<br>
> From: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> Date: Thu, 31 Jan 2019 16:46:30 +0100<br>
> Subject: [PATCH] distutils/sysconfig: append<br>
> diff --git a/meta/recipes-devtools/python/python3/0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch b/meta/recipes-devtools/python/python3/0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch<br>
> deleted file mode 100644<br>
> index a146c747f83..00000000000<br>
> --- a/meta/recipes-devtools/python/python3/0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch<br>
> +++ /dev/null<br>
> @@ -1,47 +0,0 @@<br>
> -From 5ce3ac59531828ff682646fbba59b2126b28a8aa Mon Sep 17 00:00:00 2001<br>
> -From: Jaewon Lee <<a href="mailto:jaewon.lee@xilinx.com" target="_blank">jaewon.lee@xilinx.com</a>><br>
> -Date: Thu, 25 Apr 2019 15:34:26 -0700<br>
> -Subject: [PATCH] main.c: if OEPYTHON3HOME is set use instead of PYTHONHOME<br>
> -<br>
> -There is one variable PYTHONHOME to determine where libraries are coming<br>
> -from for both python2 and python3. This becomes an issue if only one has<br>
> -libraries in the specified PYTHONHOME path, but they are using the same<br>
> -PYTHONHOME. Creating another variable OEPYTHON3HOME to allow for a way<br>
> -to set a different path for python3<br>
> -<br>
> -Signed-off-by: Jaewon Lee <<a href="mailto:jaewon.lee@xilinx.com" target="_blank">jaewon.lee@xilinx.com</a>><br>
> -<br>
> -Upstream-Status: Inappropriate [OE specific configuration]<br>
> -<br>
> ----<br>
> - Modules/main.c | 17 +++++++++++++----<br>
> - 1 file changed, 13 insertions(+), 4 deletions(-)<br>
> -<br>
> -diff --git a/Modules/main.c b/Modules/main.c<br>
> -index acc59c6..407085a 100644<br>
> ---- a/Modules/main.c<br>
> -+++ b/Modules/main.c<br>
> -@@ -1834,10 +1834,19 @@ config_init_home(_PyCoreConfig *config)<br>
> - }<br>
> - return _Py_INIT_OK();<br>
> - }<br>
> --<br>
> -- int res = config_get_env_var_dup(&home, L"PYTHONHOME", "PYTHONHOME");<br>
> -- if (res < 0) {<br>
> -- return DECODE_LOCALE_ERR("PYTHONHOME", res);<br>
> -+ int res;<br>
> -+ const char *oepython3home = config_get_env_var("OEPYTHON3HOME");<br>
> -+ if (oepython3home) {<br>
> -+ res = config_get_env_var_dup(&home, L"OEPYTHON3HOME", "OEPYTHON3HOME");<br>
> -+ if (res < 0) {<br>
> -+ return DECODE_LOCALE_ERR("OEPYTHON3HOME", res);<br>
> -+ }<br>
> -+ }<br>
> -+ else {<br>
> -+ res = config_get_env_var_dup(&home, L"PYTHONHOME", "PYTHONHOME");<br>
> -+ if (res < 0) {<br>
> -+ return DECODE_LOCALE_ERR("PYTHONHOME", res);<br>
> -+ }<br>
> - }<br>
> - config->home = home;<br>
> - return _Py_INIT_OK();<br>
> diff --git a/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch b/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch<br>
> index a0ea897f4e8..fb10ca94b31 100644<br>
> --- a/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch<br>
> +++ b/meta/recipes-devtools/python/python3/0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From 2645317fef09afe31b01bb2c1d4fe5b9afdbb11a Mon Sep 17 00:00:00 2001<br>
> +From 994783da5c21cab81b6589ed2d4275e665a946f9 Mon Sep 17 00:00:00 2001<br>
> From: Changqing Li <<a href="mailto:changqing.li@windriver.com" target="_blank">changqing.li@windriver.com</a>><br>
> Date: Mon, 22 Oct 2018 15:19:51 +0800<br>
> Subject: [PATCH] python3: use cc_basename to replace CC for checking compiler<br>
> @@ -21,12 +21,13 @@ Signed-off-by: Li Zhou <<a href="mailto:li.zhou@windriver.com" target="_blank">li.zhou@windriver.com</a>><br>
> patch originally from Li Zhou, I just rework it to new version<br>
><br>
> Signed-off-by: Changqing Li <<a href="mailto:changqing.li@windriver.com" target="_blank">changqing.li@windriver.com</a>><br>
> +<br>
> ---<br>
> <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 19 ++++++++++---------<br>
> 1 file changed, 10 insertions(+), 9 deletions(-)<br>
><br>
> diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> -index a7de901..4a3681f 100644<br>
> +index a189d42..0f85486 100644<br>
> --- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> +++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> @@ -54,6 +54,7 @@ AC_CONFIG_HEADER(pyconfig.h)<br>
> @@ -37,7 +38,7 @@ index a7de901..4a3681f 100644<br>
><br>
> # pybuilddir.txt will be created by --generate-posix-vars in the Makefile<br>
> rm -f pybuilddir.txt<br>
> -@@ -695,7 +696,7 @@ AC_MSG_RESULT($with_cxx_main)<br>
> +@@ -671,7 +672,7 @@ AC_MSG_RESULT($with_cxx_main)<br>
> preset_cxx="$CXX"<br>
> if test -z "$CXX"<br>
> then<br>
> @@ -46,7 +47,7 @@ index a7de901..4a3681f 100644<br>
> gcc) AC_PATH_TOOL(CXX, [g++], [g++], [notfound]) ;;<br>
> cc) AC_PATH_TOOL(CXX, [c++], [c++], [notfound]) ;;<br>
> clang|*/clang) AC_PATH_TOOL(CXX, [clang++], [clang++], [notfound]) ;;<br>
> -@@ -979,7 +980,7 @@ rmdir CaseSensitiveTestDir<br>
> +@@ -957,7 +958,7 @@ rmdir CaseSensitiveTestDir<br>
><br>
> case $ac_sys_system in<br>
> hp*|HP*)<br>
> @@ -55,7 +56,7 @@ index a7de901..4a3681f 100644<br>
> cc|*/cc) CC="$CC -Ae";;<br>
> esac;;<br>
> esac<br>
> -@@ -1336,7 +1337,7 @@ else<br>
> +@@ -1335,7 +1336,7 @@ else<br>
> fi],<br>
> [AC_MSG_RESULT(no)])<br>
> if test "$Py_LTO" = 'true' ; then<br>
> @@ -64,7 +65,7 @@ index a7de901..4a3681f 100644<br>
> *clang*)<br>
> AC_SUBST(LLVM_AR)<br>
> AC_PATH_TOOL(LLVM_AR, llvm-ar, '', ${llvm_path})<br>
> -@@ -1426,7 +1427,7 @@ then<br>
> +@@ -1425,7 +1426,7 @@ then<br>
> fi<br>
> fi<br>
> LLVM_PROF_ERR=no<br>
> @@ -73,16 +74,16 @@ index a7de901..4a3681f 100644<br>
> *clang*)<br>
> # Any changes made here should be reflected in the GCC+Darwin case below<br>
> PGO_PROF_GEN_FLAG="-fprofile-instr-generate"<br>
> -@@ -1500,7 +1501,7 @@ then<br>
> - WRAP="-fwrapv"<br>
> - fi<br>
> +@@ -1486,7 +1487,7 @@ esac<br>
> + # compiler and platform. BASECFLAGS tweaks need to be made even if the<br>
> + # user set OPT.<br>
><br>
> -- case $CC in<br>
> -+ case $cc_basename in<br>
> - *clang*)<br>
> - cc_is_clang=1<br>
> - ;;<br>
> -@@ -1623,7 +1624,7 @@ yes)<br>
> +-case $CC in<br>
> ++case $cc_basename in<br>
> + *clang*)<br>
> + cc_is_clang=1<br>
> + ;;<br>
> +@@ -1622,7 +1623,7 @@ yes)<br>
><br>
> # ICC doesn't recognize the option, but only emits a warning<br>
> ## XXX does it emit an unused result warning and can it be disabled?<br>
> @@ -91,7 +92,7 @@ index a7de901..4a3681f 100644<br>
> *icc*)<br>
> ac_cv_disable_unused_result_warning=no<br>
> ;;<br>
> -@@ -1965,7 +1966,7 @@ yes)<br>
> +@@ -1943,7 +1944,7 @@ yes)<br>
> esac<br>
><br>
> # ICC needs -fp-model strict or floats behave badly<br>
> @@ -100,7 +101,7 @@ index a7de901..4a3681f 100644<br>
> *icc*)<br>
> CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"<br>
> ;;<br>
> -@@ -2727,7 +2728,7 @@ then<br>
> +@@ -2711,7 +2712,7 @@ then<br>
> then<br>
> LINKFORSHARED="-Wl,--export-dynamic"<br>
> fi;;<br>
> @@ -109,7 +110,7 @@ index a7de901..4a3681f 100644<br>
> *gcc*)<br>
> if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null<br>
> then<br>
> -@@ -5429,7 +5430,7 @@ if test "$have_gcc_asm_for_x87" = yes; then<br>
> +@@ -5362,7 +5363,7 @@ if test "$have_gcc_asm_for_x87" = yes; then<br>
> # Some versions of gcc miscompile inline asm:<br>
> # <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491" rel="noreferrer" target="_blank">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491</a><br>
> # <a href="http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html" rel="noreferrer" target="_blank">http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html</a><br>
> diff --git a/meta/recipes-devtools/python/python3/0002-Don-t-do-runtime-test-to-get-float-byte-order.patch b/meta/recipes-devtools/python/python3/0002-Don-t-do-runtime-test-to-get-float-byte-order.patch<br>
> deleted file mode 100644<br>
> index 58ab709028e..00000000000<br>
> --- a/meta/recipes-devtools/python/python3/0002-Don-t-do-runtime-test-to-get-float-byte-order.patch<br>
> +++ /dev/null<br>
> @@ -1,199 +0,0 @@<br>
> -From fa96a7fd19e17b9c6b4dd01c3c3774fb382dddc6 Mon Sep 17 00:00:00 2001<br>
> -From: Ross Burton <<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>><br>
> -Date: Wed, 5 Sep 2018 11:45:52 +0100<br>
> -Subject: [PATCH] Don't do runtime test to get float byte order<br>
> -<br>
> -Python uses AC_RUN_IFELSE to determine the byte order for floats and doubles,<br>
> -and falls back onto "I don't know" if it can't run code. This results in<br>
> -crippled floating point numbers in Python, and the regression tests fail.<br>
> -<br>
> -Instead of running code, take a macro from autoconf-archive which compiles C<br>
> -with a special double in which has an ASCII representation, and then greps the<br>
> -binary to identify the format.<br>
> -<br>
> -Upstream-Status: Backport [2a9c3805ddedf282881ef7811a561c70b74f80b1]<br>
> -Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>><br>
> ----<br>
> - <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 72 +++------------------------<br>
> - m4/ax_c_float_words_bigendian.m4 | 83 ++++++++++++++++++++++++++++++++<br>
> - 2 files changed, 90 insertions(+), 65 deletions(-)<br>
> - create mode 100644 m4/ax_c_float_words_bigendian.m4<br>
> -<br>
> -diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> -index 4a3681f..4ab19a6 100644<br>
> ---- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> -+++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> -@@ -4328,77 +4328,19 @@ fi<br>
> - # * Check for various properties of floating point *<br>
> - # **************************************************<br>
> -<br>
> --AC_MSG_CHECKING(whether C doubles are little-endian IEEE 754 binary64)<br>
> --AC_CACHE_VAL(ac_cv_little_endian_double, [<br>
> --AC_RUN_IFELSE([AC_LANG_SOURCE([[<br>
> --#include <string.h><br>
> --int main() {<br>
> -- double x = 9006104071832581.0;<br>
> -- if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)<br>
> -- return 0;<br>
> -- else<br>
> -- return 1;<br>
> --}<br>
> --]])],<br>
> --[ac_cv_little_endian_double=yes],<br>
> --[ac_cv_little_endian_double=no],<br>
> --[ac_cv_little_endian_double=no])])<br>
> --AC_MSG_RESULT($ac_cv_little_endian_double)<br>
> --if test "$ac_cv_little_endian_double" = yes<br>
> --then<br>
> -- AC_DEFINE(DOUBLE_IS_LITTLE_ENDIAN_IEEE754, 1,<br>
> -- [Define if C doubles are 64-bit IEEE 754 binary format, stored<br>
> -- with the least significant byte first])<br>
> --fi<br>
> --<br>
> --AC_MSG_CHECKING(whether C doubles are big-endian IEEE 754 binary64)<br>
> --AC_CACHE_VAL(ac_cv_big_endian_double, [<br>
> --AC_RUN_IFELSE([AC_LANG_SOURCE([[<br>
> --#include <string.h><br>
> --int main() {<br>
> -- double x = 9006104071832581.0;<br>
> -- if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)<br>
> -- return 0;<br>
> -- else<br>
> -- return 1;<br>
> --}<br>
> --]])],<br>
> --[ac_cv_big_endian_double=yes],<br>
> --[ac_cv_big_endian_double=no],<br>
> --[ac_cv_big_endian_double=no])])<br>
> --AC_MSG_RESULT($ac_cv_big_endian_double)<br>
> --if test "$ac_cv_big_endian_double" = yes<br>
> -+AX_C_FLOAT_WORDS_BIGENDIAN<br>
> -+if test "$ax_cv_c_float_words_bigendian" = "yes"<br>
> - then<br>
> - AC_DEFINE(DOUBLE_IS_BIG_ENDIAN_IEEE754, 1,<br>
> - [Define if C doubles are 64-bit IEEE 754 binary format, stored<br>
> - with the most significant byte first])<br>
> --fi<br>
> --<br>
> --# Some ARM platforms use a mixed-endian representation for doubles.<br>
> --# While Python doesn't currently have full support for these platforms<br>
> --# (see e.g., issue 1762561), we can at least make sure that float <-> string<br>
> --# conversions work.<br>
> --AC_MSG_CHECKING(whether C doubles are ARM mixed-endian IEEE 754 binary64)<br>
> --AC_CACHE_VAL(ac_cv_mixed_endian_double, [<br>
> --AC_RUN_IFELSE([AC_LANG_SOURCE([[<br>
> --#include <string.h><br>
> --int main() {<br>
> -- double x = 9006104071832581.0;<br>
> -- if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)<br>
> -- return 0;<br>
> -- else<br>
> -- return 1;<br>
> --}<br>
> --]])],<br>
> --[ac_cv_mixed_endian_double=yes],<br>
> --[ac_cv_mixed_endian_double=no],<br>
> --[ac_cv_mixed_endian_double=no])])<br>
> --AC_MSG_RESULT($ac_cv_mixed_endian_double)<br>
> --if test "$ac_cv_mixed_endian_double" = yes<br>
> -+elif test "$ax_cv_c_float_words_bigendian" = "no"<br>
> - then<br>
> -- AC_DEFINE(DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754, 1,<br>
> -+ AC_DEFINE(DOUBLE_IS_LITTLE_ENDIAN_IEEE754, 1,<br>
> - [Define if C doubles are 64-bit IEEE 754 binary format, stored<br>
> -- in ARM mixed-endian order (byte order 45670123)])<br>
> -+ with the least significant byte first])<br>
> -+else<br>
> -+ AC_MSG_ERROR([Cannot identify floating point byte order])<br>
> - fi<br>
> -<br>
> - # The short float repr introduced in Python 3.1 requires the<br>
> -diff --git a/m4/ax_c_float_words_bigendian.m4 b/m4/ax_c_float_words_bigendian.m4<br>
> -new file mode 100644<br>
> -index 0000000..216b90d<br>
> ---- /dev/null<br>
> -+++ b/m4/ax_c_float_words_bigendian.m4<br>
> -@@ -0,0 +1,83 @@<br>
> -+# ===============================================================================<br>
> -+# <a href="https://www.gnu.org/software/autoconf-archive/ax_c_float_words_bigendian.html" rel="noreferrer" target="_blank">https://www.gnu.org/software/autoconf-archive/ax_c_float_words_bigendian.html</a><br>
> -+# ===============================================================================<br>
> -+#<br>
> -+# SYNOPSIS<br>
> -+#<br>
> -+# AX_C_FLOAT_WORDS_BIGENDIAN([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])<br>
> -+#<br>
> -+# DESCRIPTION<br>
> -+#<br>
> -+# Checks the ordering of words within a multi-word float. This check is<br>
> -+# necessary because on some systems (e.g. certain ARM systems), the float<br>
> -+# word ordering can be different from the byte ordering. In a multi-word<br>
> -+# float context, "big-endian" implies that the word containing the sign<br>
> -+# bit is found in the memory location with the lowest address. This<br>
> -+# implementation was inspired by the AC_C_BIGENDIAN macro in autoconf.<br>
> -+#<br>
> -+# The endianness is detected by first compiling C code that contains a<br>
> -+# special double float value, then grepping the resulting object file for<br>
> -+# certain strings of ASCII values. The double is specially crafted to have<br>
> -+# a binary representation that corresponds with a simple string. In this<br>
> -+# implementation, the string "noonsees" was selected because the<br>
> -+# individual word values ("noon" and "sees") are palindromes, thus making<br>
> -+# this test byte-order agnostic. If grep finds the string "noonsees" in<br>
> -+# the object file, the target platform stores float words in big-endian<br>
> -+# order. If grep finds "seesnoon", float words are in little-endian order.<br>
> -+# If neither value is found, the user is instructed to specify the<br>
> -+# ordering.<br>
> -+#<br>
> -+# LICENSE<br>
> -+#<br>
> -+# Copyright (c) 2008 Daniel Amelang <<a href="mailto:dan@amelang.net" target="_blank">dan@amelang.net</a>><br>
> -+#<br>
> -+# Copying and distribution of this file, with or without modification, are<br>
> -+# permitted in any medium without royalty provided the copyright notice<br>
> -+# and this notice are preserved. This file is offered as-is, without any<br>
> -+# warranty.<br>
> -+<br>
> -+#serial 11<br>
> -+<br>
> -+AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],<br>
> -+ [AC_CACHE_CHECK(whether float word ordering is bigendian,<br>
> -+ ax_cv_c_float_words_bigendian, [<br>
> -+<br>
> -+ax_cv_c_float_words_bigendian=unknown<br>
> -+AC_COMPILE_IFELSE([AC_LANG_SOURCE([[<br>
> -+<br>
> -+double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;<br>
> -+<br>
> -+]])], [<br>
> -+<br>
> -+if grep noonsees conftest.$ac_objext >/dev/null ; then<br>
> -+ ax_cv_c_float_words_bigendian=yes<br>
> -+fi<br>
> -+if grep seesnoon conftest.$ac_objext >/dev/null ; then<br>
> -+ if test "$ax_cv_c_float_words_bigendian" = unknown; then<br>
> -+ ax_cv_c_float_words_bigendian=no<br>
> -+ else<br>
> -+ ax_cv_c_float_words_bigendian=unknown<br>
> -+ fi<br>
> -+fi<br>
> -+<br>
> -+])])<br>
> -+<br>
> -+case $ax_cv_c_float_words_bigendian in<br>
> -+ yes)<br>
> -+ m4_default([$1],<br>
> -+ [AC_DEFINE([FLOAT_WORDS_BIGENDIAN], 1,<br>
> -+ [Define to 1 if your system stores words within floats<br>
> -+ with the most significant word first])]) ;;<br>
> -+ no)<br>
> -+ $2 ;;<br>
> -+ *)<br>
> -+ m4_default([$3],<br>
> -+ [AC_MSG_ERROR([<br>
> -+<br>
> -+Unknown float word ordering. You need to manually preset<br>
> -+ax_cv_c_float_words_bigendian=no (or yes) according to your system.<br>
> -+<br>
> -+ ])]) ;;<br>
> -+esac<br>
> -+<br>
> -+])# AX_C_FLOAT_WORDS_BIGENDIAN<br>
> diff --git a/meta/recipes-devtools/python/python3/0003-setup.py-pass-missing-libraries-to-Extension-for-mul.patch b/meta/recipes-devtools/python/python3/0003-setup.py-pass-missing-libraries-to-Extension-for-mul.patch<br>
> deleted file mode 100644<br>
> index b9d5bc9c516..00000000000<br>
> --- a/meta/recipes-devtools/python/python3/0003-setup.py-pass-missing-libraries-to-Extension-for-mul.patch<br>
> +++ /dev/null<br>
> @@ -1,80 +0,0 @@<br>
> -From b881a79adcd4ae5ac8fe4f49d0fc77c47f777919 Mon Sep 17 00:00:00 2001<br>
> -From: Hongxu Jia <<a href="mailto:hongxu.jia@windriver.com" target="_blank">hongxu.jia@windriver.com</a>><br>
> -Date: Fri, 4 Aug 2017 11:16:14 +0800<br>
> -Subject: [PATCH] setup.py: pass missing libraries to Extension for<br>
> - multiprocessing module<br>
> -<br>
> -In the following commit:<br>
> -...<br>
> -commit e711cafab13efc9c1fe6c5cd75826401445eb585<br>
> -Author: Benjamin Peterson <<a href="mailto:benjamin@python.org" target="_blank">benjamin@python.org</a>><br>
> -Date: Wed Jun 11 16:44:04 2008 +0000<br>
> -<br>
> - Merged revisions 64104,64117 via svnmerge from<br>
> - svn+ssh://<a href="http://pythondev@svn.python.org/python/trunk" rel="noreferrer" target="_blank">pythondev@svn.python.org/python/trunk</a><br>
> -...<br>
> -(see diff in setup.py)<br>
> -It assigned libraries for multiprocessing module according<br>
> -the host_platform, but not pass it to Extension.<br>
> -<br>
> -In glibc, the following commit caused two definition of<br>
> -sem_getvalue are different.<br>
> -<a href="https://sourceware.org/git/?p=glibc.git;a=commit;h=042e1521c794a945edc43b5bfa7e69ad70420524" rel="noreferrer" target="_blank">https://sourceware.org/git/?p=glibc.git;a=commit;h=042e1521c794a945edc43b5bfa7e69ad70420524</a><br>
> -(see diff in nptl/sem_getvalue.c for detail)<br>
> -`__new_sem_getvalue' is the latest sem_getvalue@@GLIBC_2.1<br>
> -and `__old_sem_getvalue' is to compat the old version<br>
> -sem_getvalue@GLIBC_2.0.<br>
> -<br>
> -To build python for embedded Linux systems:<br>
> -<a href="http://www.yoctoproject.org/docs/2.3.1/yocto-project-qs/yocto-project-qs.html" rel="noreferrer" target="_blank">http://www.yoctoproject.org/docs/2.3.1/yocto-project-qs/yocto-project-qs.html</a><br>
> -If not explicitly link to library pthread (-lpthread), it will<br>
> -load glibc's sem_getvalue randomly at runtime.<br>
> -<br>
> -Such as build python on linux x86_64 host and run the python<br>
> -on linux x86_32 target. If not link library pthread, it caused<br>
> -multiprocessing bounded semaphore could not work correctly.<br>
> -...<br>
> ->>> import multiprocessing<br>
> ->>> pool_sema = multiprocessing.BoundedSemaphore(value=1)<br>
> ->>> pool_sema.acquire()<br>
> -True<br>
> ->>> pool_sema.release()<br>
> -Traceback (most recent call last):<br>
> - File "<stdin>", line 1, in <module><br>
> -ValueError: semaphore or lock released too many times<br>
> -...<br>
> -<br>
> -And the semaphore issue also caused multiprocessing.Queue().put() hung.<br>
> -<br>
> -Upstream-Status: Submitted [<a href="https://github.com/python/cpython/pull/2999" rel="noreferrer" target="_blank">https://github.com/python/cpython/pull/2999</a>]<br>
> -<br>
> -Signed-off-by: Hongxu Jia <<a href="mailto:hongxu.jia@windriver.com" target="_blank">hongxu.jia@windriver.com</a>><br>
> ----<br>
> - setup.py | 7 +++++--<br>
> - 1 file changed, 5 insertions(+), 2 deletions(-)<br>
> -<br>
> -diff --git a/setup.py b/setup.py<br>
> -index b7a36a6..658ead3 100644<br>
> ---- a/setup.py<br>
> -+++ b/setup.py<br>
> -@@ -1584,8 +1584,10 @@ class PyBuildExt(build_ext):<br>
> - elif host_platform.startswith('netbsd'):<br>
> - macros = dict()<br>
> - libraries = []<br>
> --<br>
> -- else: # Linux and other unices<br>
> -+ elif host_platform.startswith(('linux')):<br>
> -+ macros = dict()<br>
> -+ libraries = ['pthread']<br>
> -+ else: # Other unices<br>
> - macros = dict()<br>
> - libraries = ['rt']<br>
> -<br>
> -@@ -1603,6 +1605,7 @@ class PyBuildExt(build_ext):<br>
> -<br>
> - exts.append ( Extension('_multiprocessing', multiprocessing_srcs,<br>
> - define_macros=list(macros.items()),<br>
> -+ libraries=libraries,<br>
> - include_dirs=["Modules/_multiprocessing"]))<br>
> - # End multiprocessing<br>
> -<br>
> diff --git a/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch b/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch<br>
> index c15295c034c..4bd98f62fd6 100644<br>
> --- a/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch<br>
> +++ b/meta/recipes-devtools/python/python3/0017-setup.py-do-not-report-missing-dependencies-for-disa.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From e3b59cb9658e1d3efa3535840939a0fa92a70a5a Mon Sep 17 00:00:00 2001<br>
> +From a2dd127b4163aff6cc35af0d0251321964232ad4 Mon Sep 17 00:00:00 2001<br>
> From: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> Date: Mon, 7 Oct 2019 13:22:14 +0200<br>
> Subject: [PATCH] setup.py: do not report missing dependencies for disabled<br>
> @@ -10,22 +10,23 @@ build completeness checker which relies on the report.<br>
><br>
> Upstream-Status: Inappropriate [oe-core specific]<br>
> Signed-off-by: Alexander Kanavin <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>><br>
> +<br>
> ---<br>
> setup.py | 4 ++++<br>
> 1 file changed, 4 insertions(+)<br>
><br>
> diff --git a/setup.py b/setup.py<br>
> -index 4b53668..0097643 100644<br>
> +index 7691258..ec3f2a4 100644<br>
> --- a/setup.py<br>
> +++ b/setup.py<br>
> -@@ -365,6 +365,10 @@ class PyBuildExt(build_ext):<br>
> +@@ -408,6 +408,10 @@ class PyBuildExt(build_ext):<br>
> print("%-*s %-*s %-*s" % (longest, e, longest, f,<br>
> longest, g))<br>
><br>
> + # There is no need to report missing module dependencies,<br>
> + # if the modules have been disabled in the first place.<br>
> -+ missing = list(set(missing) - set(sysconf_dis))<br>
> ++ self.missing = list(set(self.missing) - set(sysconf_dis))<br>
> +<br>
> - if missing:<br>
> + if self.missing:<br>
> print()<br>
> print("Python build finished successfully!")<br>
> diff --git a/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch b/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch<br>
> index d49604ba4d9..219b3551b8b 100644<br>
> --- a/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch<br>
> +++ b/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From a274ba778838824efcacaba57c415b7262f779ec Mon Sep 17 00:00:00 2001<br>
> +From 93b2c26467b0ea9a18c178e4e1371d52e917a68b Mon Sep 17 00:00:00 2001<br>
> From: Khem Raj <<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>><br>
> Date: Tue, 14 May 2013 15:00:26 -0700<br>
> Subject: [PATCH] python3: Add target and native recipes<br>
> diff --git a/meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch b/meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch<br>
> index 24e67b4ca14..184540e794c 100644<br>
> --- a/meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch<br>
> +++ b/meta/recipes-devtools/python/python3/avoid_warning_about_tkinter.patch<br>
> @@ -1,4 +1,4 @@<br>
> -From fead48c8b501a8d7c3db21df2e599f90f38f11d3 Mon Sep 17 00:00:00 2001<br>
> +From ba7202700578d435b07cfdfb7b57e83185752800 Mon Sep 17 00:00:00 2001<br>
> From: Andrei Gherzan <<a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a>><br>
> Date: Mon, 28 Jan 2019 15:57:54 +0000<br>
> Subject: [PATCH] _tkinter module needs tk module along with tcl. tk is not yet<br>
> @@ -11,26 +11,21 @@ Also simply disable the tk module since its not in DEPENDS.<br>
> Signed-off-by: Andrei Gherzan <<a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a>><br>
><br>
> ---<br>
> - setup.py | 8 +++++---<br>
> - 1 file changed, 5 insertions(+), 3 deletions(-)<br>
> + setup.py | 4 ++--<br>
> + 1 file changed, 2 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/setup.py b/setup.py<br>
> -index fbec00d..b7a36a6 100644<br>
> +index ab18ff0..7691258 100644<br>
> --- a/setup.py<br>
> +++ b/setup.py<br>
> -@@ -1623,10 +1623,12 @@ class PyBuildExt(build_ext):<br>
> - self.extensions.extend(exts)<br>
> +@@ -1706,8 +1706,8 @@ class PyBuildExt(build_ext):<br>
> + self.detect_decimal()<br>
> + self.detect_ctypes()<br>
> + self.detect_multiprocessing()<br>
> +- if not self.detect_tkinter():<br>
> +- self.missing.append('_tkinter')<br>
> ++# if not self.detect_tkinter():<br>
> ++# self.missing.append('_tkinter')<br>
> + self.detect_uuid()<br>
><br>
> - # Call the method for detecting whether _tkinter can be compiled<br>
> -- self.detect_tkinter(inc_dirs, lib_dirs)<br>
> -+ # self.detect_tkinter(inc_dirs, lib_dirs)<br>
> -<br>
> -- if '_tkinter' not in [<a href="http://e.name" rel="noreferrer" target="_blank">e.name</a> for e in self.extensions]:<br>
> -- missing.append('_tkinter')<br>
> -+ # tkinter module will not be avalaible as yocto<br>
> -+ # doesn't have tk integrated (yet)<br>
> -+ #if '_tkinter' not in [<a href="http://e.name" rel="noreferrer" target="_blank">e.name</a> for e in self.extensions]:<br>
> -+ # missing.append('_tkinter')<br>
> -<br>
> - # Build the _uuid module if possible<br>
> - uuid_incs = find_file("uuid.h", inc_dirs, ["/usr/include/uuid"])<br>
> + ## # Uncomment these lines if you want to play with xxmodule.c<br>
> diff --git a/meta/recipes-devtools/python/python3/python-config.patch b/meta/recipes-devtools/python/python3/python-config.patch<br>
> index f23b8b7df06..c8a8f3d4aa3 100644<br>
> --- a/meta/recipes-devtools/python/python3/python-config.patch<br>
> +++ b/meta/recipes-devtools/python/python3/python-config.patch<br>
> @@ -1,4 +1,7 @@<br>
> -python-config: Revert to using distutils.sysconfig<br>
> +From 07df0ae0d70cba6d1847fe1c24a71063930bec60 Mon Sep 17 00:00:00 2001<br>
> +From: Tyler Hall <<a href="mailto:tylerwhall@gmail.com" target="_blank">tylerwhall@gmail.com</a>><br>
> +Date: Sun, 4 May 2014 20:06:43 -0400<br>
> +Subject: [PATCH] python-config: Revert to using distutils.sysconfig<br>
><br>
> The newer sysconfig module shares some code with distutils.sysconfig, but the same modifications as in<br>
><br>
> @@ -12,11 +15,16 @@ Upstream-Status: Inappropriate [Embedded Specific]<br>
><br>
> Signed-off-by: Tyler Hall <<a href="mailto:tylerwhall@gmail.com" target="_blank">tylerwhall@gmail.com</a>><br>
> :<br>
> -Index: Python-3.3.3/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a><br>
> -===================================================================<br>
> ---- Python-3.3.3.orig/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a><br>
> -+++ Python-3.3.3/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a><br>
> -@@ -4,7 +4,7 @@<br>
> +<br>
> +---<br>
> + Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a> | 10 +++++-----<br>
> + 1 file changed, 5 insertions(+), 5 deletions(-)<br>
> +<br>
> +diff --git a/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a> b/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a><br>
> +index 727c4a8..c702829 100644<br>
> +--- a/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a><br>
> ++++ b/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a><br>
> +@@ -6,7 +6,7 @@<br>
> import getopt<br>
> import os<br>
> import sys<br>
> @@ -24,8 +32,8 @@ Index: Python-3.3.3/Misc/<a href="http://python-config.in" rel="noreferrer" target="_blank">python-config.in</a><br>
> +from distutils import sysconfig<br>
><br>
> valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',<br>
> - 'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir']<br>
> -@@ -32,14 +32,14 @@ if '--help' in opt_flags:<br>
> + 'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir',<br>
> +@@ -35,14 +35,14 @@ if '--help' in opt_flags:<br>
><br>
> for opt in opt_flags:<br>
> if opt == '--prefix':<br>
> diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json<br>
> index dba92b0e396..ebfc10b4045 100644<br>
> --- a/meta/recipes-devtools/python/python3/python3-manifest.json<br>
> +++ b/meta/recipes-devtools/python/python3/python3-manifest.json<br>
> @@ -213,8 +213,8 @@<br>
> "${bindir}/python3",<br>
> "${bindir}/python${PYTHON_MAJMIN}",<br>
> "${bindir}/python${PYTHON_MAJMIN}.real",<br>
> - "${bindir}/python${PYTHON_BINABI}",<br>
> - "${includedir}/python${PYTHON_BINABI}/pyconfig*.h",<br>
> + "${bindir}/python${PYTHON_MAJMIN}",<br>
> + "${includedir}/python${PYTHON_MAJMIN}/pyconfig*.h",<br>
> "${prefix}/lib/python${PYTHON_MAJMIN}/config*/*[!.a]",<br>
> "${libdir}/python${PYTHON_MAJMIN}/UserDict.py",<br>
> "${libdir}/python${PYTHON_MAJMIN}/UserList.py",<br>
> diff --git a/meta/recipes-devtools/python/<a href="http://python3_3.7.5.bb" rel="noreferrer" target="_blank">python3_3.7.5.bb</a> b/meta/recipes-devtools/python/<a href="http://python3_3.8.0.bb" rel="noreferrer" target="_blank">python3_3.8.0.bb</a><br>
> similarity index 91%<br>
> rename from meta/recipes-devtools/python/<a href="http://python3_3.7.5.bb" rel="noreferrer" target="_blank">python3_3.7.5.bb</a><br>
> rename to meta/recipes-devtools/python/<a href="http://python3_3.8.0.bb" rel="noreferrer" target="_blank">python3_3.8.0.bb</a><br>
> index 57eaaea5e7c..1feaebea8ee 100644<br>
> --- a/meta/recipes-devtools/python/<a href="http://python3_3.7.5.bb" rel="noreferrer" target="_blank">python3_3.7.5.bb</a><br>
> +++ b/meta/recipes-devtools/python/<a href="http://python3_3.8.0.bb" rel="noreferrer" target="_blank">python3_3.8.0.bb</a><br>
> @@ -19,8 +19,6 @@ SRC_URI = "<a href="http://www.python.org/ftp/python/$%7BPV%7D/Python-$%7BPV%7D.tar.xz" rel="noreferrer" target="_blank">http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz</a> \<br>
> file://0001-Makefile.pre-use-qemu-wrapper-when-gathering-profile.patch \<br>
> file://0001-Do-not-hardcode-lib-as-location-for-site-packages-an.patch \<br>
> file://0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch \<br>
> - file://0002-Don-t-do-runtime-test-to-get-float-byte-order.patch \<br>
> - file://0003-setup.py-pass-missing-libraries-to-Extension-for-mul.patch \<br>
> file://0001-Lib-sysconfig.py-fix-another-place-where-lib-is-hard.patch \<br>
> file://0001-Makefile-fix-Issue36464-parallel-build-race-problem.patch \<br>
> file://0001-bpo-36852-proper-detection-of-mips-architecture-for-.patch \<br>
> @@ -35,20 +33,16 @@ SRC_URI_append_class-native = " \<br>
> file://0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch \<br>
> file://12-distutils-prefix-is-inside-staging-area.patch \<br>
> "<br>
> -SRC_URI_append_class-nativesdk = " \<br>
> - file://0001-main.c-if-OEPYTHON3HOME-is-set-use-instead-of-PYTHON.patch \<br>
> - "<br>
><br>
> -SRC_URI[md5sum] = "08ed8030b1183107c48f2092e79a87e2"<br>
> -SRC_URI[sha256sum] = "e85a76ea9f3d6c485ec1780fca4e500725a4a7bbc63c78ebc44170de9b619d94"<br>
> +SRC_URI[md5sum] = "dbac8df9d8b9edc678d0f4cacdb7dbb0"<br>
> +SRC_URI[sha256sum] = "b356244e13fb5491da890b35b13b2118c3122977c2cd825e3eb6e7d462030d84"<br>
><br>
> # exclude pre-releases for both python 2.x and 3.x<br>
> UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar"<br>
><br>
> CVE_PRODUCT = "python"<br>
><br>
> -PYTHON_MAJMIN = "3.7"<br>
> -PYTHON_BINABI = "${PYTHON_MAJMIN}m"<br>
> +PYTHON_MAJMIN = "3.8"<br>
><br>
> S = "${WORKDIR}/Python-${PV}"<br>
><br>
> @@ -59,8 +53,8 @@ inherit autotools pkgconfig qemu ptest multilib_header update-alternatives<br>
> MULTILIB_SUFFIX = "${@d.getVar('base_libdir',1).split('/')[-1]}"<br>
><br>
> ALTERNATIVE_${PN}-dev = "python3-config"<br>
> -ALTERNATIVE_LINK_NAME[python3-config] = "${bindir}/python${PYTHON_BINABI}-config"<br>
> -ALTERNATIVE_TARGET[python3-config] = "${bindir}/python${PYTHON_BINABI}-config-${MULTILIB_SUFFIX}"<br>
> +ALTERNATIVE_LINK_NAME[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config"<br>
> +ALTERNATIVE_TARGET[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}"<br>
><br>
><br>
> DEPENDS = "bzip2-replacement-native libffi bzip2 openssl sqlite3 zlib virtual/libintl xz virtual/crypt util-linux libtirpc libnsl2"<br>
> @@ -131,7 +125,7 @@ do_install_prepend() {<br>
> }<br>
><br>
> do_install_append_class-target() {<br>
> - oe_multilib_header python${PYTHON_BINABI}/pyconfig.h<br>
> + oe_multilib_header python${PYTHON_MAJMIN}/pyconfig.h<br>
> }<br>
><br>
> do_install_append_class-native() {<br>
> @@ -161,7 +155,7 @@ do_install_append() {<br>
> }<br>
><br>
> do_install_append_class-nativesdk () {<br>
> - create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} OEPYTHON3HOME='${prefix}' TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1'<br>
> + create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN} TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo' PYTHONNOUSERSITE='1'<br>
> }<br>
><br>
> SSTATE_SCAN_FILES += "Makefile _sysconfigdata.py"<br>
> @@ -177,7 +171,7 @@ py_package_preprocess () {<br>
> -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \<br>
> ${PKGD}/${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}${PYTHON_ABI}*/Makefile \<br>
> ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py \<br>
> - ${PKGD}/${bindir}/python${PYTHON_BINABI}-config<br>
> + ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config<br>
><br>
> # Reformat _sysconfigdata after modifying it so that it remains<br>
> # reproducible<br>
> @@ -196,7 +190,7 @@ py_package_preprocess () {<br>
> -c "from py_compile import compile; compile('$sysconfigfile', optimize=2)"<br>
> cd -<br>
><br>
> - mv ${PKGD}/${bindir}/python${PYTHON_BINABI}-config ${PKGD}/${bindir}/python${PYTHON_BINABI}-config-${MULTILIB_SUFFIX}<br>
> + mv ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}<br>
><br>
> #Remove the unneeded copy of target sysconfig data<br>
> rm -rf ${PKGD}/${libdir}/python-sysconfigdata<br>
> @@ -322,7 +316,7 @@ RPROVIDES_${PN}-venv += "python3-pyvenv"<br>
> # package libpython3<br>
> PACKAGES =+ "libpython3 libpython3-staticdev"<br>
> FILES_libpython3 = "${libdir}/libpython*.so.*"<br>
> -FILES_libpython3-staticdev += "${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_BINABI}-*/libpython${PYTHON_BINABI}.a"<br>
> +FILES_libpython3-staticdev += "${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_MAJMIN}-*/libpython${PYTHON_MAJMIN}.a"<br>
> INSANE_SKIP_${PN}-dev += "dev-elf"<br>
><br>
> # catch all the rest (unsorted)<br>
> @@ -341,3 +335,5 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = " locale-base-tr-tr.iso-8859-9"<br>
> RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk tk-lib', '', d)}"<br>
> RDEPENDS_${PN}-dev = ""<br>
><br>
> +RDEPENDS_${PN}-tests_append_class-target = " bash"<br>
> +RDEPENDS_${PN}-tests_append_class-nativesdk = " bash"<br>
> --<br>
> 2.17.1<br>
><br>
> --<br>
> _______________________________________________<br>
> Openembedded-core mailing list<br>
> <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
> <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>