Package: tor
Severity: important
Version: 0.2.0.35-1
Tags: patch
User: [email protected]
Usertags: kfreebsd
Hi,
the current version fails to build on GNU/kFreeBSD.
The tor package tries to use own malloc library which
interacts badly with GNU/kFreeBSD thread implementation.
It leads to deadlock during testsuite.
Please just use system malloc library on GNU/kFreeBSD.
The needed changes to debian/rules are bellow.
Thanks in advance
Petr
--- debian/rules
+++ debian/rules
@@ -18,6 +18,7 @@
# starting with <[email protected]> by Pjotr Kourzanov.
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+export DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
confflags += --build $(DEB_HOST_GNU_TYPE)
else
@@ -61,7 +62,9 @@
endif
# inhibit building with --enable-openbsd-malloc
ifeq (,$(findstring no-enable-openbsd-malloc,$(DEB_BUILD_OPTIONS)))
+ifneq (kfreebsd,$(DEB_HOST_ARCH_OS))
CONF_OPTIONS += --enable-openbsd-malloc
+endif
endif
configure: patch-stamp
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]