[OE-core] [PATCH] python3-native: Avoid use of getentropy

Khem Raj raj.khem at gmail.com
Mon Aug 14 22:02:02 UTC 2017


On Mon, Aug 14, 2017 at 6:02 AM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> getentropy() is only available in glibc 2.25+ and uninative may relocate binaries
> onto systems that don't have this function. For now, force the code to the older
> codepath until we can come up with a better solution for this kind of issue.
>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
> ---
>  meta/recipes-devtools/python/python3-native_3.5.3.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/python/python3-native_3.5.3.bb b/meta/recipes-devtools/python/python3-native_3.5.3.bb
> index 3467d29..66371aa 100644
> --- a/meta/recipes-devtools/python/python3-native_3.5.3.bb
> +++ b/meta/recipes-devtools/python/python3-native_3.5.3.bb
> @@ -44,7 +44,8 @@ inherit native
>
>  require python-native-${PYTHON_MAJMIN}-manifest.inc
>
> -EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip"
> +# uninative may be used on pre glibc 2.25 systems which don't have getentropy
> +EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip ac_cv_func_getentropy=no"

getentropy is quite non standard function, I think this is better disabled for
portability.

>
>  EXTRA_OEMAKE = '\
>    LIBC="" \
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list