summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-14 14:00:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-06 17:01:12 +0100
commitffb1aa67a49af204f08777a8abcd1ad3ceb4a6c1 (patch)
treef0901c8d73e29f6655e212a3de5bee7d86202ad1 /meta
parentd9b63154aa74f443bd5d8216670428ccb91a6ca5 (diff)
downloadpoky-ffb1aa67a49af204f08777a8abcd1ad3ceb4a6c1.tar.gz
python3-native: Avoid use of getentropy/getrandom
getentropy/random() 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 codepaths until we can come up with a better solution for this kind of issue. (From OE-Core rev: 92bda0024d85ae78345665cc2f9646c9881ed61b) (From OE-Core rev: ee006aac0a52709cf5524aeb17a92b8c5c44be34) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3-native_3.5.2.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-native_3.5.2.bb b/meta/recipes-devtools/python/python3-native_3.5.2.bb
index edcf2244f5..3f4b567278 100644
--- a/meta/recipes-devtools/python/python3-native_3.5.2.bb
+++ b/meta/recipes-devtools/python/python3-native_3.5.2.bb
@@ -43,7 +43,8 @@ inherit native
43 43
44require python-native-${PYTHON_MAJMIN}-manifest.inc 44require python-native-${PYTHON_MAJMIN}-manifest.inc
45 45
46EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip" 46# uninative may be used on pre glibc 2.25 systems which don't have getentropy
47EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip ac_cv_func_getentropy=no"
47 48
48EXTRA_OEMAKE = '\ 49EXTRA_OEMAKE = '\
49 LIBC="" \ 50 LIBC="" \
@@ -58,6 +59,7 @@ PYTHONLSBOPTS = ""
58 59
59do_configure_append() { 60do_configure_append() {
60 autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi 61 autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi
62 sed -i -e 's,#define HAVE_GETRANDOM 1,/\* #undef HAVE_GETRANDOM \*/,' ${B}/pyconfig.h
61} 63}
62 64
63do_install() { 65do_install() {