diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-14 14:00:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-06 16:54:37 +0100 |
commit | f8dd325b859d8a69d4f8d632a909724832dd558c (patch) | |
tree | 974ac3e839b03eacd3a3558ce833a04834ce476a /meta/recipes-devtools | |
parent | d47a5f1a15e6071f0c7dd781039d907d94b3947d (diff) | |
download | poky-f8dd325b859d8a69d4f8d632a909724832dd558c.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: 2dc6ee0c520442418fa14cf3fe12b059209e9ab7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/python/python3-native_3.5.2.bb | 4 |
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 594f15c7c6..f32f05ccad 100644 --- a/meta/recipes-devtools/python/python3-native_3.5.2.bb +++ b/meta/recipes-devtools/python/python3-native_3.5.2.bb | |||
@@ -65,7 +65,8 @@ RPROVIDES += " \ | |||
65 | python3-unittest-native \ | 65 | python3-unittest-native \ |
66 | " | 66 | " |
67 | 67 | ||
68 | EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip" | 68 | # uninative may be used on pre glibc 2.25 systems which don't have getentropy |
69 | EXTRA_OECONF_append = " --bindir=${bindir}/${PN} --without-ensurepip ac_cv_func_getentropy=no" | ||
69 | 70 | ||
70 | EXTRA_OEMAKE = '\ | 71 | EXTRA_OEMAKE = '\ |
71 | LIBC="" \ | 72 | LIBC="" \ |
@@ -80,6 +81,7 @@ PYTHONLSBOPTS = "" | |||
80 | 81 | ||
81 | do_configure_append() { | 82 | do_configure_append() { |
82 | autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi | 83 | autoreconf --verbose --install --force --exclude=autopoint ../Python-${PV}/Modules/_ctypes/libffi |
84 | sed -i -e 's,#define HAVE_GETRANDOM 1,/\* #undef HAVE_GETRANDOM \*/,' ${B}/pyconfig.h | ||
83 | } | 85 | } |
84 | 86 | ||
85 | do_install() { | 87 | do_install() { |