pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/tor tor: disable backtrace(3) support on netbsd-9 ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/089f74931f71
branches: trunk
changeset: 439415:089f74931f71
user: leot <leot%pkgsrc.org@localhost>
date: Sat Sep 19 18:22:01 2020 +0000
description:
tor: disable backtrace(3) support on netbsd-9 evbarm
backtrace(3) does not work on netbsd-9 ending up in a SIGSEGV and tor
process hanging forever (a simple way to reproduce without configuring
tor is just invoking tor via `tor --version').
Workaround for PR port-evbarm/55669.
PKGREVISION++
diffstat:
net/tor/Makefile | 3 ++-
net/tor/hacks.mk | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 089c2b74ffc2 -r 089f74931f71 net/tor/Makefile
--- a/net/tor/Makefile Sat Sep 19 17:26:33 2020 +0000
+++ b/net/tor/Makefile Sat Sep 19 18:22:01 2020 +0000
@@ -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 -r 089c2b74ffc2 -r 089f74931f71 net/tor/hacks.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/tor/hacks.mk Sat Sep 19 18:22:01 2020 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index