pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/wine-devel wine-devel: don't crash at runtim...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10ac47d4b510
branches:  trunk
changeset: 352709:10ac47d4b510
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun Sep 18 15:02:43 2016 +0000

description:
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:

 emulators/wine-devel/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 0ac1e72a6d95 -r 10ac47d4b510 emulators/wine-devel/Makefile
--- a/emulators/wine-devel/Makefile     Sun Sep 18 15:01:03 2016 +0000
+++ b/emulators/wine-devel/Makefile     Sun Sep 18 15:02:43 2016 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index