summaryrefslogtreecommitdiff
path: root/emulators/wine-devel
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2016-09-18 15:02:43 +0000
committermaya <maya@pkgsrc.org>2016-09-18 15:02:43 +0000
commite5e4462b8debbc3a8ce244a73af53cbb581408fa (patch)
treefd0ee6f4fcde238785dc5e65676987c477e33906 /emulators/wine-devel
parente57917edab117dd3db6c913f70a109b4c5fc72a0 (diff)
downloadpkgsrc-e5e4462b8debbc3a8ce244a73af53cbb581408fa.tar.gz
wine-devel: don't crash at runtime when multithreaded programs
try to use networking code under NetBSD. netbsd won't let you manipulate _res in a multithreaded program and instead calls abort(). avoid the code that does this for now. it's possible that it broke the ability to resolve domains and I didn't see this yet - but I'm able to use network programs now. bump PKGREVISION
Diffstat (limited to 'emulators/wine-devel')
-rw-r--r--emulators/wine-devel/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/emulators/wine-devel/Makefile b/emulators/wine-devel/Makefile
index 82c2780b870..eb541cd498a 100644
--- a/emulators/wine-devel/Makefile
+++ b/emulators/wine-devel/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.59 2016/09/17 19:32:37 maya Exp $
+# $NetBSD: Makefile,v 1.60 2016/09/18 15:02:43 maya Exp $
DISTNAME= wine-1.9.18
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= emulators
MASTER_SITES= http://ibiblio.org/pub/linux/system/emulators/wine/ \
${MASTER_SITE_SOURCEFORGE:=wine/}
@@ -54,7 +54,13 @@ PLIST_SRC= PLIST.wine32
NOT_PAX_MPROTECT_SAFE+= bin/wine
#PLIST.wine32= yes
.endif
+# Avoid using gethostbyname_r in netbsd, it's not
+# linux-like
CONFIGURE_ARGS.NetBSD+= wine_cv_linux_gethostbyname_r_6=no
+# NetBSD doesn't allow manipulation of _res by
+# multithreaded programs. avoid its use, networking
+# still works fine.
+CONFIGURE_ARGS.NetBSD+= ac_cv_header_resolv_h=no
.if !empty(MACHINE_ARCH:Mx86_64)
CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib
NOT_PAX_MPROTECT_SAFE+= bin/wine64