Sat Sep 19 18:22:01 2020 UTC ()
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++


(leot)
diff -r1.156 -r1.157 pkgsrc/net/tor/Makefile
diff -r0 -r1.1 pkgsrc/net/tor/hacks.mk

cvs diff -r1.156 -r1.157 pkgsrc/net/tor/Makefile (expand / switch to unified diff)

--- pkgsrc/net/tor/Makefile 2020/09/15 19:12:55 1.156
+++ pkgsrc/net/tor/Makefile 2020/09/19 18:22:01 1.157
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: Makefile,v 1.156 2020/09/15 19:12:55 wiz Exp $ 1# $NetBSD: Makefile,v 1.157 2020/09/19 18:22:01 leot Exp $
2 2
3DISTNAME= tor-0.4.4.5 3DISTNAME= tor-0.4.4.5
 4PKGREVISION= 1
4CATEGORIES= net security 5CATEGORIES= net security
5MASTER_SITES= https://dist.torproject.org/ 6MASTER_SITES= https://dist.torproject.org/
6 7
7MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
8HOMEPAGE= https://www.torproject.org/ 9HOMEPAGE= https://www.torproject.org/
9COMMENT= Anonymizing overlay network for TCP 10COMMENT= Anonymizing overlay network for TCP
10LICENSE= modified-bsd 11LICENSE= modified-bsd
11 12
12USE_LANGUAGES= c99 13USE_LANGUAGES= c99
13USE_PKGLOCALEDIR= yes 14USE_PKGLOCALEDIR= yes
14USE_TOOLS+= perl:test pkg-config 15USE_TOOLS+= perl:test pkg-config
15# There are multiple reports of failure to build with BSD make, due to 16# There are multiple reports of failure to build with BSD make, due to
16# an apparent lack of firing the rule to create micro-revision.i. 17# an apparent lack of firing the rule to create micro-revision.i.

File Added: pkgsrc/net/tor/hacks.mk
# $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