Subject: pkg/19967: audio/mp3blaster doesn't build with native threading
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/20/2003 23:19:56
>Number:         19967
>Category:       pkg
>Synopsis:       audio/mp3blaster doesn't build with native threading
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 20 14:21:00 PST 2003
>Release:        NetBSD 1.6M
System: NetBSD 1.6M NetBSD 1.6M (LUCIFER) #8: Mon Jan 20 11:51:21 CET 2003 i386
Architecture: i386
Machine: i386
	mp3blaster doesn't compile with native threading at the moment. It
	is currently being configured with an alternative buffering 
	technique (Written by yours truly) which uses specific pth calls, and
	therefore requires pth (and not native threading). It has not yet
	been ported to pthreads.

	The "standard" threading version works with native threading, but has
	serious performance issues with pth.


	On a NetBSD system with native threading:

	cd audio/mp3blaster; make

	Watch how the configure script enables pth without checking for it
	(this bug has been reported to the original author, and will be 
	 fixed), and watch it try to use pth include files.


    The following patch will only enable the 'newthreads' scheme when
    pth is being used.

---	Mon Jan 20 20:59:16 2003
+++ Makefile	Mon Jan 20 21:00:28 2003
@@ -16,10 +16,14 @@
 CONFIGURE_ARGS+="--with-cxxflags=${CXXFLAGS}" \
 		--with-curses \
-		--enable-newthreads
 .include "../../audio/libvorbis/"
 .include "../../devel/ncurses/"
 .include "../../mk/"
 .include "../../mk/"
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
+   CONFIGURE_ARGS+= --enable-newthreads
 .include "../../mk/"