From 228c92021dafa1e76f7d39ecf1af5a0f843940d0 Mon Sep 17 00:00:00 2001 From: cyan Date: Fri, 8 Nov 2024 15:23:04 +0000 Subject: migrate build system --- .../disable-glibc-getrandom-getentropy.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 contrib/depends/patches/sodium/disable-glibc-getrandom-getentropy.patch (limited to 'contrib/depends/patches/sodium/disable-glibc-getrandom-getentropy.patch') 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 0000000..2f07c10 --- /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 + #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 + #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 -- cgit v1.2.3