summaryrefslogtreecommitdiff
path: root/lang/python21/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-08 18:14:49 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-08 18:14:49 +0000
commit9ef4a2edad609a8b7cdba87587933bd9b4a85c5a (patch)
treec1314d8eeba266f75ce20f52e3d7b9c6ea7cbc6c /lang/python21/patches
parent9d6019b48171ae960ac87493e340e7f6684e9ad5 (diff)
downloadpkgsrc-9ef4a2edad609a8b7cdba87587933bd9b4a85c5a.tar.gz
Add DragonFly support. Use PTHREAD_* variables to find pthread_create
and hope it doesn't break anything.
Diffstat (limited to 'lang/python21/patches')
-rw-r--r--lang/python21/patches/patch-bb4
-rw-r--r--lang/python21/patches/patch-bc4
-rw-r--r--lang/python21/patches/patch-bg57
-rw-r--r--lang/python21/patches/patch-bh31
4 files changed, 92 insertions, 4 deletions
diff --git a/lang/python21/patches/patch-bb b/lang/python21/patches/patch-bb
index 5ed33ad1199..31729b520c8 100644
--- a/lang/python21/patches/patch-bb
+++ b/lang/python21/patches/patch-bb
@@ -1,4 +1,4 @@
-$NetBSD: patch-bb,v 1.3 2005/05/29 11:07:49 minskim Exp $
+$NetBSD: patch-bb,v 1.4 2005/11/08 18:14:49 joerg Exp $
--- Lib/test/test_fcntl.py.orig 2001-04-11 15:58:20.000000000 -0500
+++ Lib/test/test_fcntl.py
@@ -7,7 +7,7 @@ $NetBSD: patch-bb,v 1.3 2005/05/29 11:07:49 minskim Exp $
print 'Status from fnctl with O_NONBLOCK: ', rv
-if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin1',
-+if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', 'Darwin1.2', 'darwin1',
++if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', 'Darwin1.2', 'darwin1','dragonfly1'
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
'bsdos2', 'bsdos3', 'bsdos4',
'openbsd', 'openbsd2'):
diff --git a/lang/python21/patches/patch-bc b/lang/python21/patches/patch-bc
index ab37efc704a..fabdbf37cca 100644
--- a/lang/python21/patches/patch-bc
+++ b/lang/python21/patches/patch-bc
@@ -1,4 +1,4 @@
-$NetBSD: patch-bc,v 1.2 2005/05/29 11:07:49 minskim Exp $
+$NetBSD: patch-bc,v 1.3 2005/11/08 18:14:49 joerg Exp $
--- Lib/posixfile.py.orig 2001-04-10 10:44:33.000000000 -0500
+++ Lib/posixfile.py
@@ -7,7 +7,7 @@ $NetBSD: patch-bc,v 1.2 2005/05/29 11:07:49 minskim Exp $
# additions for AIX by Vladimir.Marangozov@imag.fr
import sys, os
- if sys.platform in ('netbsd1',
-+ if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3',
++ if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3','dragonfly1',
'openbsd2',
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
'bsdos2', 'bsdos3', 'bsdos4'):
diff --git a/lang/python21/patches/patch-bg b/lang/python21/patches/patch-bg
new file mode 100644
index 00000000000..a2eef90243c
--- /dev/null
+++ b/lang/python21/patches/patch-bg
@@ -0,0 +1,57 @@
+$NetBSD: patch-bg,v 1.1 2005/11/08 18:14:49 joerg Exp $
+
+--- configure.orig 2001-12-27 21:55:46.000000000 +0000
++++ configure
+@@ -2966,6 +2966,7 @@ then
+ else
+ LDSHARED="ld -Bshareable"
+ fi;;
++ DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
+ FreeBSD*)
+ if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
+ then
+@@ -3003,7 +3004,7 @@ then
+ Linux*) CCSHARED="-fPIC";;
+ BSD/OS*/4*) CCSHARED="-fpic";;
+ OpenBSD*) CCSHARED="-fpic";;
+- FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
++ FreeBSD*|NetBSD*|DragonFly*) CCSHARED="-fPIC";;
+ UnixWare*)
+ if test "$GCC" = "yes"
+ then CCSHARED="-fPIC"
+@@ -3042,7 +3043,7 @@ then
+ UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";;
+ SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
+ ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
+- FreeBSD*|NetBSD*)
++ FreeBSD*|NetBSD*|DragonFly*)
+ if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
+ then
+ LINKFORSHARED="-Wl,--export-dynamic"
+@@ -3523,14 +3524,14 @@ EOF
+ else
+
+ echo "$ac_t""no" 1>&6
+- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
+-echo "configure:3528: checking for pthread_create in -lpthread" >&5
++ echo $ac_n "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}""... $ac_c" 1>&6
++echo "configure:3528: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}" >&5
+ ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lpthread $LIBS"
++LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 3536 "configure"
+ #include "confdefs.h"
+@@ -3567,7 +3568,7 @@ EOF
+ EOF
+
+ posix_threads=yes
+- LIBS="-lpthread $LIBS"
++ LIBS="${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} $LIBS"
+ LIBOBJS="$LIBOBJS thread.o"
+ else
+ echo "$ac_t""no" 1>&6
diff --git a/lang/python21/patches/patch-bh b/lang/python21/patches/patch-bh
new file mode 100644
index 00000000000..571c75d99b4
--- /dev/null
+++ b/lang/python21/patches/patch-bh
@@ -0,0 +1,31 @@
+$NetBSD: patch-bh,v 1.1 2005/11/08 18:14:49 joerg Exp $
+
+--- Modules/fpectlmodule.c.orig 2005-11-08 17:25:20.000000000 +0000
++++ Modules/fpectlmodule.c
+@@ -68,7 +68,7 @@ extern "C" {
+ #include "Python.h"
+ #include <signal.h>
+
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ # include <ieeefp.h>
+ #endif
+
+@@ -189,7 +189,7 @@ static void fpe_reset(Sigfunc *handler)
+ PyOS_setsig(SIGFPE, handler);
+
+ /*-- FreeBSD ----------------------------------------------------------------*/
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ fpresetsticky(fpgetsticky());
+ fpsetmask(FP_X_INV | FP_X_DZ | FP_X_OFL);
+ PyOS_setsig(SIGFPE, handler);
+@@ -235,7 +235,7 @@ static void fpe_reset(Sigfunc *handler)
+
+ static PyObject *turnoff_sigfpe(PyObject *self,PyObject *args)
+ {
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ fpresetsticky(fpgetsticky());
+ fpsetmask(0);
+ #else