summaryrefslogtreecommitdiff
path: root/lang/python15
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1998-01-07 08:32:54 +0000
committerThomas Gellekum <tg@FreeBSD.org>1998-01-07 08:32:54 +0000
commitdccefb8a4b9bb644e2da8824b59d548ff80fe881 (patch)
treeca80dc7a97f77cf12bf4cfd7806fd17449f91b5d /lang/python15
parentUpgrade to 1.0b9b. (diff)
Make python work with threads again. Looks like our libc_r implements
an older draft of the pthread standard.
Notes
Notes: svn path=/head/; revision=9285
Diffstat (limited to 'lang/python15')
-rw-r--r--lang/python15/Makefile7
-rw-r--r--lang/python15/files/patch-ab11
2 files changed, 14 insertions, 4 deletions
diff --git a/lang/python15/Makefile b/lang/python15/Makefile
index ebccd69dda9a..265572375abd 100644
--- a/lang/python15/Makefile
+++ b/lang/python15/Makefile
@@ -3,7 +3,7 @@
# Date created: 08 August 1995
# Whom: jkh
#
-# $Id: Makefile,v 1.18 1997/11/24 15:12:43 tg Exp $
+# $Id: Makefile,v 1.19 1998/01/06 08:02:48 tg Exp $
#
DISTNAME= python1.5
@@ -43,10 +43,9 @@ SETUP_LOCAL= Setup.tk
# to 'yes', and you must have the FreeBSD threading c library (libc_r)
# installed. See 'man 3 pthread' for details on libc_r.
#
-# This is now turned off by default because it doesn't work
-# with our libc_r.
+# This option is enabled by default.
#
-WITH_THREADS?= no
+WITH_THREADS?= yes
.if exists(/usr/lib/libc_r.a) && defined(WITH_THREADS) && ${WITH_THREADS} == yes
CONFIGURE_ARGS+= --with-thread
.endif
diff --git a/lang/python15/files/patch-ab b/lang/python15/files/patch-ab
new file mode 100644
index 000000000000..13737981fa0a
--- /dev/null
+++ b/lang/python15/files/patch-ab
@@ -0,0 +1,11 @@
+--- Python/thread_pthread.h.orig Tue Jun 3 00:25:45 1997
++++ Python/thread_pthread.h Tue Jan 6 19:20:08 1998
+@@ -66,7 +66,7 @@
+ # define PY_PTHREAD_D7
+ # endif
+
+-#elif defined(__DGUX)
++#elif defined(__DGUX) || defined(__FreeBSD__)
+ # define PY_PTHREAD_D6
+
+ #else /* Default case */