[oe-commits] [openembedded-core] branch master-next updated: util-linux-native: Avoid use of getrandom

git at git.openembedded.org git at git.openembedded.org
Mon Aug 14 21:03:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

The following commit(s) were added to refs/heads/master-next by this push:
     new 7d63fab  util-linux-native: Avoid use of getrandom
7d63fab is described below

commit 7d63fabd020b07aeba00a9cef4eecd44c4248d1f
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon Aug 14 15:20:39 2017 +0100

    util-linux-native: Avoid use of getrandom
    
    getrandom() 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-core/util-linux/util-linux_2.30.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/util-linux/util-linux_2.30.bb b/meta/recipes-core/util-linux/util-linux_2.30.bb
index 6b309b5..794e6d8 100644
--- a/meta/recipes-core/util-linux/util-linux_2.30.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.30.bb
@@ -20,9 +20,11 @@ SRC_URI[sha256sum] = "c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab650
 
 CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=ms"
 
+# uninative may be used on pre glibc 2.25 systems which don't have getrandom
 EXTRA_OECONF_class-native = "${SHARED_EXTRA_OECONF} \
                              --disable-fallocate \
 			     --disable-use-tty-group \
+                             ac_cv_func_getrandom_func=no \
 "
 EXTRA_OECONF_class-nativesdk = "${SHARED_EXTRA_OECONF} \
                                 --disable-fallocate \

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list