Subject: pkg/17878: xmms-1.2.7 broken with pth-threads
To: None <gnats-bugs@gnats.netbsd.org>
From: None <torppa@cute.fi>
List: netbsd-bugs
Date: 08/08/2002 11:56:10
>Number:         17878
>Category:       pkg
>Synopsis:       xmms-1.2.7 broken with pth
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 08 01:57:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jarkko Torppa
>Release:        NetBSD 1.6_BETA5 / xmms-1.2.7 package
>Organization:
	
>Environment:
System: NetBSD keppi 1.6_BETA5 NetBSD 1.6_BETA5 (KEPPI) #4: Tue Jul 30 10:38:16 EEST 2002 root@keppi:/usr/src/sys/arch/i386/compile/KEPPI i386
Architecture: i386
Machine: i386
>Description:
when starting xmms it get's stuck after drawing it's window
>How-To-Repeat:
build with pth and try to run.
>Fix:

needs _POSIX_THREAD_SYSCALL_SOFT defined or real threads

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/xmms/Makefile,v
retrieving revision 1.29
diff -u -r1.29 Makefile
--- Makefile    2002/08/01 06:40:51     1.29
+++ Makefile    2002/08/08 08:42:40
@@ -20,6 +20,14 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+PTHREAD_OPTS+=  require
+.include "../../mk/pthread.buildlink.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
+CPPFLAGS+=-D_POSIX_THREAD_SYSCALL_SOFT=1
+.endif
+
+
 .if (${OPSYS} == NetBSD)
 CONFIGURE_ARGS+=       --with-dev-dsp=/dev/sound
 CPPFLAGS+=             -DHAVE_NANOSLEEP=1

>Release-Note:
>Audit-Trail:
>Unformatted: