summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/tor/Makefile3
-rw-r--r--net/tor/hacks.mk17
2 files changed, 19 insertions, 1 deletions
diff --git a/net/tor/Makefile b/net/tor/Makefile
index d155e7ad276..aa08fc89b2f 100644
--- a/net/tor/Makefile
+++ b/net/tor/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.156 2020/09/15 19:12:55 wiz Exp $
+# $NetBSD: Makefile,v 1.157 2020/09/19 18:22:01 leot Exp $
DISTNAME= tor-0.4.4.5
+PKGREVISION= 1
CATEGORIES= net security
MASTER_SITES= https://dist.torproject.org/
diff --git a/net/tor/hacks.mk b/net/tor/hacks.mk
new file mode 100644
index 00000000000..35d3e29ef40
--- /dev/null
+++ b/net/tor/hacks.mk
@@ -0,0 +1,17 @@
+# $NetBSD: hacks.mk,v 1.1 2020/09/19 18:22:01 leot Exp $
+
+.if !defined(TOR_HACKS_MK)
+TOR_HACKS_MK= defined
+
+# [Sat Sep 19 15:51:04 UTC 2020 : leot]
+# On NetBSD/evbarm - and only on netbsd-9 - calling backtrace(3) ends
+# up in a SIGSEGV, documented via PR port-evbarm/55669.
+# To reproduce with Tor, after removing this hack, calling
+# `tor --version' should ends up in the Tor process hanging forever
+# (instead printing the version to the stdout).
+.if !empty(MACHINE_PLATFORM:MNetBSD-9.*-*arm*)
+PKG_HACKS+= disable-backtrace
+CONFIGURE_ENV+= ac_cv_search_backtrace=no
+.endif
+
+.endif # TOR_HACKS_MK