aboutsummaryrefslogtreecommitdiffstats
path: root/main/cryptsetup/disable-all-symbols-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/cryptsetup/disable-all-symbols-test.patch')
-rw-r--r--main/cryptsetup/disable-all-symbols-test.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/cryptsetup/disable-all-symbols-test.patch b/main/cryptsetup/disable-all-symbols-test.patch
new file mode 100644
index 00000000000..fd4fb007eaa
--- /dev/null
+++ b/main/cryptsetup/disable-all-symbols-test.patch
@@ -0,0 +1,35 @@
+The all-symbol-test.c file requires dlvsym which is a GNU extension and
+presently not available on musl libc. This patch essentially makes
+check_all_symbols a no-op, thereby disabling it without requiring
+rebuilding the automake Makefiles.
+
+diff -upr cryptsetup-2.4.0.orig/tests/all-symbols-test.c cryptsetup-2.4.0/tests/all-symbols-test.c
+--- cryptsetup-2.4.0.orig/tests/all-symbols-test.c 2021-08-18 19:40:14.751188763 +0200
++++ cryptsetup-2.4.0/tests/all-symbols-test.c 2021-08-18 19:42:29.727938025 +0200
+@@ -70,6 +70,7 @@ static void test_logf(int level, const c
+
+ static int check_all_symbols(void *h)
+ {
++#ifdef __GLIBC__
+ void *sym;
+ char *err;
+ unsigned scount = 0;
+@@ -98,15 +99,15 @@ do { \
+ scount++; \
+ } while (0);
+
+-#include "test-symbols-list.h"
+-#undef CHECK_SYMBOL
+-
+ if (!scount) {
+ log_err("test-symbols-list.h file is probably empty.");
+ return 1;
+ }
+
+ log_std("Performed %u symbol checks in total\n.", scount);
++#include "test-symbols-list.h"
++#undef CHECK_SYMBOL
++#endif
+
+ return 0;
+ }