aboutsummaryrefslogtreecommitdiffstats
path: root/main/jack/fix-execinfo.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-12-03 08:51:00 +0000
committerTimo Teräs <timo.teras@iki.fi>2014-12-03 08:51:56 +0000
commit4064771ec6d3533e842d6bb520486811c9fadd87 (patch)
treeb5145fa514d1ec38413536d0ddcbb730705a6d66 /main/jack/fix-execinfo.patch
parentd2009a88199d1a01802783aeeedbc2326440e110 (diff)
downloadaports-4064771ec6d3533e842d6bb520486811c9fadd87.tar.bz2
aports-4064771ec6d3533e842d6bb520486811c9fadd87.tar.xz
main/jack: fix arm build
update execinfo patch to completely remove any attempts to do backtrace(). the code would insisted trying to use backtrace() on arm. imitating backtrace() is generally bad practice security wise. and this also fixes jack to produce core dumps.
Diffstat (limited to 'main/jack/fix-execinfo.patch')
-rw-r--r--main/jack/fix-execinfo.patch32
1 files changed, 22 insertions, 10 deletions
diff --git a/main/jack/fix-execinfo.patch b/main/jack/fix-execinfo.patch
index 170c432774..24218aebfd 100644
--- a/main/jack/fix-execinfo.patch
+++ b/main/jack/fix-execinfo.patch
@@ -1,12 +1,24 @@
---- jack-1.9.9.5.orig/dbus/sigsegv.c
-+++ jack-1.9.9.5/dbus/sigsegv.c
-@@ -27,7 +27,9 @@
- #include <stdio.h>
- #include <signal.h>
- #include <dlfcn.h>
+--- jack-1.9.10.orig/dbus/sigsegv.c
++++ jack-1.9.10/dbus/sigsegv.c
+@@ -11,6 +11,8 @@
+ * Copyright (C) 2005 - 2008 Jaco Kroon
+ */
+
+#ifdef __GLIBC__
- #include <execinfo.h>
++
+ #if defined(HAVE_CONFIG_H)
+ #include "config.h"
+ #endif
+@@ -209,4 +211,12 @@
+ static void __attribute((constructor)) init(void) {
+ setup_sigsegv();
+ }
+#endif
- #include <errno.h>
- #ifndef NO_CPP_DEMANGLE
- char * __cxa_demangle(const char * __mangled_name, char * __output_buffer, size_t * __length, int * __status);
++
++#else
++
++int setup_sigsegv() {
++ return 1;
++}
++
+ #endif