aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/patches
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-03-20 15:42:52 +0000
committerxiphon <xiphon@protonmail.com>2020-03-20 17:42:51 +0000
commit323a9e3a8d7a869b7931c74e180fd7bf38d12569 (patch)
treeb4e430c962019b9a98b034b2590f4524044caaba /contrib/depends/patches
parentMerge pull request #6383 (diff)
downloadmonero-323a9e3a8d7a869b7931c74e180fd7bf38d12569.tar.xz
depends: libsodium disable getrandom()/getentropy() (glibc < 2.25)
Diffstat (limited to 'contrib/depends/patches')
-rw-r--r--contrib/depends/patches/sodium/disable-glibc-getrandom-getentropy.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/depends/patches/sodium/disable-glibc-getrandom-getentropy.patch b/contrib/depends/patches/sodium/disable-glibc-getrandom-getentropy.patch
new file mode 100644
index 000000000..2f07c1057
--- /dev/null
+++ b/contrib/depends/patches/sodium/disable-glibc-getrandom-getentropy.patch
@@ -0,0 +1,25 @@
+diff --git a/configure.ac b/configure.ac
+index 9e2de27c..0fa85c2d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -807,6 +807,10 @@ AS_IF([test "x$EMSCRIPTEN" = "x"],[
+ # include <sys/random.h>
+ #endif
+ ]], [[
++#ifdef __linux__
++# error getrandom() is currently disabled on Linux to support glibc < 2.25
++#endif
++
+ unsigned char buf;
+ (void) getrandom((void *) &buf, 1U, 0U);
+ ]])],
+@@ -825,6 +829,9 @@ unsigned char buf;
+ # include <sys/random.h>
+ #endif
+ ]], [[
++#ifdef __linux__
++# error getentropy() is currently disabled on Linux to support glibc < 2.25
++#endif
+ #ifdef __APPLE__
+ # error getentropy() is currently disabled on Apple operating systems
+ #endif