[oe-commits] [openembedded-core] 09/09: util-linux-native: Avoid use of getrandom

git at git.openembedded.org git at git.openembedded.org
Tue Aug 15 09:19:42 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.

commit dcd00c61b3e4141a5badd66c083480d16b4a183c
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>
---
 .../util-linux/util-linux/no_getrandom.patch        | 21 +++++++++++++++++++++
 meta/recipes-core/util-linux/util-linux_2.30.bb     |  1 +
 2 files changed, 22 insertions(+)

diff --git a/meta/recipes-core/util-linux/util-linux/no_getrandom.patch b/meta/recipes-core/util-linux/util-linux/no_getrandom.patch
new file mode 100644
index 0000000..b9fa1ca
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux/no_getrandom.patch
@@ -0,0 +1,21 @@
+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.
+
+Upstream-Status: Inappropriate
+RP
+2016/8/15
+
+Index: util-linux-2.30/configure.ac
+===================================================================
+--- util-linux-2.30.orig/configure.ac
++++ util-linux-2.30/configure.ac
+@@ -399,7 +399,6 @@ AC_CHECK_FUNCS([ \
+ 	getdtablesize \
+ 	getexecname \
+ 	getmntinfo \
+-	getrandom \
+ 	getrlimit \
+ 	getsgnam \
+ 	inotify_init \
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..39449d9 100644
--- a/meta/recipes-core/util-linux/util-linux_2.30.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.30.bb
@@ -15,6 +15,7 @@ SRC_URI += "file://configure-sbindir.patch \
             file://display_testname_for_subtest.patch \
             file://avoid_parallel_tests.patch \
 "
+SRC_URI_append_class-native = " file://no_getrandom.patch"
 SRC_URI[md5sum] = "eaa3429150268027908a1b8ae6ee9a62"
 SRC_URI[sha256sum] = "c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d"
 

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


More information about the Openembedded-commits mailing list