[OE-core] [PATCH] python3: set PYTHONHOME for nativesdk

Ming Liu liu.ming50 at gmail.com
Fri Oct 12 11:37:02 UTC 2018


Hi, Richard:

> I think its this which is causing breakage:
>
>
https://autobuilder.yoctoproject.org/typhoon/#/builders/20/builds/106/steps/7/logs/step3b
>
>
https://autobuilder.yoctoproject.org/typhoon/#/builders/20/builds/106/steps/7/logs/step2b
>
>
https://autobuilder.yoctoproject.org/typhoon/#/builders/20/builds/106/steps/7/logs/step1b

Are you sure about this? This patch creates a nativesdk python3 wrapper
which supposes to run on SDK machine, it should not impact native sysroot
binaries, and I could not reproduce the error with the patch applied on my
local machine. (Ubuntu-16.04)

//Ming Liu


<liu.ming50 at gmail.com> 於 2018年10月11日 週四 下午4:16寫道:

> From: Cheuk Wing Leung <cwleung at kth.se>
>
> commit c5629268b0f8ae0a425c98337d13e8dc83107e13:
> [
>     python: set PYTHONHOME for nativesdk
>
>     This ensures that the nativesdk python functions correctly without
> needing to
>     set PYTHONHOME in the sdk environment setup script.
> ]
>
> it's also needed for python3.
>
> Signed-off-by: Cheuk Wing Leung <cwleung at kth.se>
> Signed-off-by: Ming Liu <liu.ming50 at gmail.com>
> ---
>  meta/recipes-devtools/python/python3_3.5.6.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/python/python3_3.5.6.bb
> b/meta/recipes-devtools/python/python3_3.5.6.bb
> index e179658..c481aad 100644
> --- a/meta/recipes-devtools/python/python3_3.5.6.bb
> +++ b/meta/recipes-devtools/python/python3_3.5.6.bb
> @@ -179,7 +179,7 @@ do_install() {
>  }
>
>  do_install_append_class-nativesdk () {
> -       create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN}
> TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo'
> PYTHONNOUSERSITE='1'
> +       create_wrapper ${D}${bindir}/python${PYTHON_MAJMIN}
> PYTHONHOME='${prefix}'
> TERMINFO_DIRS='${sysconfdir}/terminfo:/etc/terminfo:/usr/share/terminfo:/usr/share/misc/terminfo:/lib/terminfo'
> PYTHONNOUSERSITE='1'
>  }
>
>  SSTATE_SCAN_FILES += "Makefile"
> --
> 2.7.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20181012/f26d99d0/attachment-0002.html>


More information about the Openembedded-core mailing list