pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/tcl Disable threads usage by tcl on NetBSD-1.6* (...
details: https://anonhg.NetBSD.org/pkgsrc/rev/692e698bc87c
branches: trunk
changeset: 480684:692e698bc87c
user: he <he%pkgsrc.org@localhost>
date: Sun Sep 19 19:51:04 2004 +0000
description:
Disable threads usage by tcl on NetBSD-1.6* (tested) and NetBSD-1.5*
(by extension). Evidence suggests there is (at best) a bad interaction
between pth and the thread memory allocator inside tcl, as witnessed by
the tcl-scotty's package failure to install if threads is enabled on
1.6.2_STABLE/i386. Interestingly, the version with native threads on
2.0_BETA/alpha works just nicely.
diffstat:
lang/tcl/Makefile | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r 3ecf5baa463b -r 692e698bc87c lang/tcl/Makefile
--- a/lang/tcl/Makefile Sun Sep 19 17:38:34 2004 +0000
+++ b/lang/tcl/Makefile Sun Sep 19 19:51:04 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/06/22 18:34:09 drochner Exp $
+# $NetBSD: Makefile,v 1.36 2004/09/19 19:51:04 he Exp $
#
DISTNAME= tcl8.4.6-src
@@ -29,13 +29,20 @@
# install to avoid overwriting existing manpages in ${PREFIX}/man.
#
CONFIGURE_ARGS+= --mandir=${WRKDIR}/man
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+.if empty(OS_VERSION:M1.[56].*)
CONFIGURE_ARGS+= --enable-threads
+.else
+CONFIGURE_ARGS+= --disable-threads
+.endif
+.endif
# Add ${VIEWBASE}/lib/tcl to the list of locations for Tcl packages.
CONFIGURE_ENV+= TCL_PACKAGE_PATH="${VIEWBASE}/lib/tcl"
-.include "../../mk/bsd.prefs.mk"
-
# NetBSD-1.5.x-m68k platforms apparently have a compiler optimization bug
# tickled by the Tcl code that manifests in code generation problems.
#
@@ -43,7 +50,11 @@
CONFIGURE_ENV+= COMPILER_OPTIMIZATION_BUG=YES
.endif
+.if ${OPSYS} == "NetBSD"
+.if empty(OS_VERSION:M1.[56].*)
.include "../../mk/pthread.buildlink3.mk"
+.endif
+.endif
# Modify mkLinks script to remove the short-filename manpage if it was
# linked to a longer filename.
Home |
Main Index |
Thread Index |
Old Index