From owner-freebsd-ports Fri Apr 7 15:21:25 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ipt2.iptelecom.net.ua (ipt2.iptelecom.net.ua [212.9.224.2]) by hub.freebsd.org (Postfix) with ESMTP id 3961837C1EC for ; Fri, 7 Apr 2000 15:21:16 -0700 (PDT) (envelope-from sobomax@altavista.net) Received: from altavista.net (dialup2-47.iptelecom.net.ua [212.9.226.111]) by ipt2.iptelecom.net.ua (8.9.3/8.9.3) with ESMTP id BAA02765 for ; Sat, 8 Apr 2000 01:26:18 +0300 (EEST) Message-ID: <38EE5731.AC8DDE7F@altavista.net> Date: Sat, 08 Apr 2000 00:46:25 +0300 From: Maxim Sobolev Organization: Home, sweet home X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: ports@freebsd.org Subject: Python port partially broken for RELENG_5 (with patch attached) Content-Type: multipart/mixed; boundary="------------9A69C7D3D25A475C91ECD0AB" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------9A69C7D3D25A475C91ECD0AB Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit Hi, I've just did a fresh build of the Python and discovered that now some modules (curses for example) are refusing to load, complaining about undefined symbol _Py_Something. I studied this problem and found that the port was not fully prepared to deal with the F's version bump. With this message I'm attaching small patch which should fix this problem. I've verified that it works by rebuilding python with this patch applied. -Maxim --------------9A69C7D3D25A475C91ECD0AB Content-Type: text/plain; charset=x-user-defined; name="python.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="python.diff" diff -ruN /usr/ports/lang/python/patches/patch-ab python/patches/patch-ab --- /usr/ports/lang/python/patches/patch-ab Sat Oct 30 01:56:51 1999 +++ python/patches/patch-ab Sat Apr 8 00:07:40 2000 @@ -5,7 +5,7 @@ Linux*) LDSHARED="gcc -shared";; dgux*) LDSHARED="ld -G";; - FreeBSD*/3*) LDSHARED="gcc -shared";; -+ FreeBSD*/3*|FreeBSD*/4*) LDSHARED='gcc -shared ${LDFLAGS}';; ++ FreeBSD*/3*|FreeBSD*/4*|FreeBSD*/5*) LDSHARED='gcc -shared ${LDFLAGS}';; FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; NetBSD*) if [ "`$CC -dM -E -