Subject: pkg/17437: USE_PTHREAD doesn't work correctly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <taya@ba2.so-net.ne.jp>
List: netbsd-bugs
Date: 06/30/2002 17:47:25
>Number: 17437
>Category: pkg
>Synopsis: USE_PTHREAD doesn't work correctly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 30 01:48:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Shin'ichiro TAYA
>Release: NetBSD 1.6B
>Organization:
--
Shin'ichiro TAYA <taya@ba2.so-net.ne.jp>
>Environment:
System: NetBSD mmgserv.m2g.org 1.6B NetBSD 1.6B (MMGSERV-I2O) #4: Sat Jun 29 12:58:46 JST 2002 taya@mmgserv.m2g.org:/export/NetBSD/NetBSD-current/src/sys/arch/i386/compile/MMGSERV-I2O i386
Architecture: i386
Machine: i386
>Description:
I've changed the www/mozilla/Makefile as sample in mk/pthread.buildlink.mk.
But PTHREAD_TYPE is set to pth.
This may becase PTHREAD_TYPE is set in other buildlink files.
>How-To-Repeat:
Apply this patch to www/mozilla/Makefile
and see the value of PTHREAD_TYPE shown at pre-configure
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/mozilla/Makefile,v
retrieving revision 1.90
diff -u -r1.90 Makefile
--- Makefile 2002/06/23 02:20:07 1.90
+++ Makefile 2002/06/30 08:24:43
@@ -3,6 +3,7 @@
MOZ_VER= 1.0
DISTNAME= mozilla-source-${MOZ_VER}
PKGNAME= mozilla-${MOZ_VER}
+PKGREVISION= 1
WRKSRC= ${WRKDIR}/mozilla
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_MOZILLA:=mozilla${MOZ_VER}/src/}
@@ -66,11 +67,14 @@
SCRIPTS_ENV+= BINMODE=${BINMODE}
SCRIPTS_ENV+= SETENV=${SETENV}
+USE_PTHREAD= native
.include "../../mk/bsd.prefs.mk"
-
+
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
.if (${OPSYS} == "NetBSD")
CONFIGURE_ARGS+= --without-pthreads
.endif
+.endif
.if ${MACHINE_ARCH} == "m68k"
DBG=
@@ -87,6 +91,7 @@
.endfor
pre-configure:
+ echo ${PTHREAD_TYPE}
(cd ${WRKSRC} && autoconf)
post-build:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: