summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-14 15:20:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-16 00:03:15 +0100
commit08128ecf6ba165503e08702d51710eb979d2d1f5 (patch)
tree5eab2a67aa2141fc1ba1353ad98659069adac15b /meta/recipes-core/util-linux
parentfaf20cc3804325b13f0e9679507724a904cbd3a0 (diff)
downloadpoky-08128ecf6ba165503e08702d51710eb979d2d1f5.tar.gz
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. (From OE-Core rev: 95e31e4b15573eb1cbeb4ff1d0903c5141b84d54) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux')
-rw-r--r--meta/recipes-core/util-linux/util-linux/no_getrandom.patch21
-rw-r--r--meta/recipes-core/util-linux/util-linux_2.30.bb1
2 files changed, 22 insertions, 0 deletions
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 0000000000..b9fa1cace4
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux/no_getrandom.patch
@@ -0,0 +1,21 @@
1getrandom() is only available in glibc 2.25+ and uninative may relocate
2binaries onto systems that don't have this function. For now, force the
3code to the older codepath until we can come up with a better solution
4for this kind of issue.
5
6Upstream-Status: Inappropriate
7RP
82016/8/15
9
10Index: util-linux-2.30/configure.ac
11===================================================================
12--- util-linux-2.30.orig/configure.ac
13+++ util-linux-2.30/configure.ac
14@@ -399,7 +399,6 @@ AC_CHECK_FUNCS([ \
15 getdtablesize \
16 getexecname \
17 getmntinfo \
18- getrandom \
19 getrlimit \
20 getsgnam \
21 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 6b309b555f..39449d9ac9 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 \
15 file://display_testname_for_subtest.patch \ 15 file://display_testname_for_subtest.patch \
16 file://avoid_parallel_tests.patch \ 16 file://avoid_parallel_tests.patch \
17" 17"
18SRC_URI_append_class-native = " file://no_getrandom.patch"
18SRC_URI[md5sum] = "eaa3429150268027908a1b8ae6ee9a62" 19SRC_URI[md5sum] = "eaa3429150268027908a1b8ae6ee9a62"
19SRC_URI[sha256sum] = "c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d" 20SRC_URI[sha256sum] = "c208a4ff6906cb7f57940aa5bc3a6eed146e50a7cc0a092f52ef2ab65057a08d"
20 21