summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authortsarna <tsarna@pkgsrc.org>1998-12-16 22:44:07 +0000
committertsarna <tsarna@pkgsrc.org>1998-12-16 22:44:07 +0000
commit50c7a58ff4f737c5b704217442b1abf9854cec4c (patch)
treedb965fda306d9aa3babb02a391d70bcfb22a25c6 /lang/python
parentd29e27fb4faca234f3fe394163507fd18d6d89bb (diff)
downloadpkgsrc-50c7a58ff4f737c5b704217442b1abf9854cec4c.tar.gz
Finish ELF support
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/Makefile6
-rw-r--r--lang/python/patches/patch-bb15
2 files changed, 17 insertions, 4 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile
index 1a66f7dc7f3..9e97e690ad1 100644
--- a/lang/python/Makefile
+++ b/lang/python/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 1998/09/28 19:40:14 tsarna Exp $
+# $NetBSD: Makefile,v 1.13 1998/12/16 22:44:07 tsarna Exp $
#
DISTNAME= pyth151
@@ -23,14 +23,12 @@ PATCHFILES= freeze.1.txt _tkinter.1.txt configure.1.txt \
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://www.python.org/
-NOT_FOR_ARCHS= alpha # sigh
-
WRKSRC= ${WRKDIR}/Python-1.5.1
GNU_CONFIGURE= yes
MAKE_FLAGS+= 'OPT=${CFLAGS}'
# Handle the module setup file:
-# - disable some modules on 64 bit platforms
+# - disable a few broken modules on 64 bit platforms (nothing important)
# - handle machines with no dynamic loader
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
diff --git a/lang/python/patches/patch-bb b/lang/python/patches/patch-bb
new file mode 100644
index 00000000000..d41c35edf75
--- /dev/null
+++ b/lang/python/patches/patch-bb
@@ -0,0 +1,15 @@
+$NetBSD: patch-bb,v 1.1 1998/12/16 22:44:07 tsarna Exp $
+
+NetBSD ELF platform support
+
+--- Python/importdl.c.orig Wed Dec 16 15:09:49 1998
++++ Python/importdl.c Wed Dec 16 15:11:20 1998
+@@ -211,7 +211,7 @@
+ extern char *Py_GetProgramName();
+
+ #ifndef FUNCNAME_PATTERN
+-#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__BORLANDC__)
++#if defined(__hp9000s300) || (defined(__NetBSD__) && !defined(__ELF__)) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__BORLANDC__)
+ #define FUNCNAME_PATTERN "_init%.200s"
+ #else
+ #define FUNCNAME_PATTERN "init%.200s"