aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tmate/remove-backtrace-musl.patch
diff options
context:
space:
mode:
authorDaniel Isaksen <d@duniel.no>2017-09-27 01:40:37 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-28 10:40:07 +0000
commitae7fb669b2b01c6039e0f8a3990a0f8989813f1f (patch)
tree351c80b3d5d26f4ddafb4579264a681106d042dc /testing/tmate/remove-backtrace-musl.patch
parent1045482631eefea65f4e7198d531949ddb5e5b09 (diff)
downloadaports-ae7fb669b2b01c6039e0f8a3990a0f8989813f1f.tar.bz2
aports-ae7fb669b2b01c6039e0f8a3990a0f8989813f1f.tar.xz
testing/tmate: new aport
Diffstat (limited to 'testing/tmate/remove-backtrace-musl.patch')
-rw-r--r--testing/tmate/remove-backtrace-musl.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/tmate/remove-backtrace-musl.patch b/testing/tmate/remove-backtrace-musl.patch
new file mode 100644
index 0000000000..650634855b
--- /dev/null
+++ b/testing/tmate/remove-backtrace-musl.patch
@@ -0,0 +1,28 @@
+This is a quite ugly hack to make it compile.
+
+TODO: use libunwind instead.
+
+---
+--- a/tmate-debug.c
++++ b/tmate-debug.c
+@@ -60,18 +60,17 @@ void tmate_print_stack_trace(void)
+ char **strings;
+ size_t i;
+
++#if 0
+ size = backtrace (array, 20);
+ strings = backtrace_symbols (array, size);
+
+ tmate_info ("============ %zd stack frames ============", size);
+
+ for (i = 1; i < size; i++) {
+-#if DEBUG
+ if (print_resolved_stack_frame(strings[i]) < 0)
+-#endif
+ tmate_info("%s", strings[i]);
+ }
+-
++#endif
+ free (strings);
+ }
+