diff options
author | leot <leot@pkgsrc.org> | 2020-09-19 18:22:01 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2020-09-19 18:22:01 +0000 |
commit | 8157cc1b2137c0bf11845cf80bd01aef57688ee6 (patch) | |
tree | e5d453407b8c643a994383af2a32007195fc4ffa /net/tor | |
parent | 09f04ed653652bb9534fb7a44da71aea823128e8 (diff) | |
download | pkgsrc-8157cc1b2137c0bf11845cf80bd01aef57688ee6.tar.gz |
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 (limited to 'net/tor')
-rw-r--r-- | net/tor/Makefile | 3 | ||||
-rw-r--r-- | net/tor/hacks.mk | 17 |
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 |