Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Apr 2000 00:46:25 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        ports@freebsd.org
Subject:   Python port partially broken for RELENG_5 (with patch attached)
Message-ID:  <38EE5731.AC8DDE7F@altavista.net>

next in thread | raw e-mail | index | archive | help
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 - </dev/null | grep __ELF__`" != "" ]
@@ -14,7 +14,7 @@
  	hp*|HP*)
  	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
 -	FreeBSD/3*) LINKFORSHARED="-Xlinker -export-dynamic";;
-+	FreeBSD/3*|FreeBSD/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
++	FreeBSD/3*|FreeBSD/4*|FreeBSD/5*) LINKFORSHARED="-Xlinker -export-dynamic";;
  	Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
  	# -u libsys_s pulls in all symbols in libsys
  	next/2*|next/3*) LINKFORSHARED="-u libsys_s";;

--------------9A69C7D3D25A475C91ECD0AB--




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38EE5731.AC8DDE7F>