diff options
author | Rosen Penev <rosenp@gmail.com> | 2022-04-29 18:41:45 -0700 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2022-05-15 16:32:40 +0200 |
commit | 28cec438071c6a5ce90ed4606df7cbe6ad8a100c (patch) | |
tree | aa75aebe9476cd17c90e64f7f53b0fa3c3675569 /package/utils/util-linux/patches/210-use-urandom.patch | |
parent | d93aae1d675caf47fbec684d12e39fb4090527d5 (diff) | |
download | upstream-28cec438071c6a5ce90ed4606df7cbe6ad8a100c.tar.gz upstream-28cec438071c6a5ce90ed4606df7cbe6ad8a100c.tar.bz2 upstream-28cec438071c6a5ce90ed4606df7cbe6ad8a100c.zip |
util-linux: use meson to build
Compiles faster, is PIC by default, and does not have pkgconfig files
with wrong paths.
Add various fixes to it as it seems cross compilation was never tested.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'package/utils/util-linux/patches/210-use-urandom.patch')
-rw-r--r-- | package/utils/util-linux/patches/210-use-urandom.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/utils/util-linux/patches/210-use-urandom.patch b/package/utils/util-linux/patches/210-use-urandom.patch new file mode 100644 index 0000000000..5817209885 --- /dev/null +++ b/package/utils/util-linux/patches/210-use-urandom.patch @@ -0,0 +1,14 @@ +--- a/lib/randutils.c ++++ b/lib/randutils.c +@@ -26,6 +26,11 @@ + #define THREAD_LOCAL static + #endif + ++/* force /dev/urandom to avoid hanging on early boot */ ++#undef HAVE_GETRANDOM ++#undef SYS_getrandom ++#undef __NR_getrandom ++ + #ifdef HAVE_GETRANDOM + # include <sys/random.h> + #elif defined (__linux__) |