Date: Wed, 16 Feb 2011 04:22:05 GMT From: Justin Hibbits <chmeeedalf@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/154818: Add ctype module for Python build on PPC Message-ID: <201102160422.p1G4M5Qa092229@red.freebsd.org> Resent-Message-ID: <201102160430.p1G4UBLk019839@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154818 >Category: ports >Synopsis: Add ctype module for Python build on PPC >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 16 04:30:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Justin Hibbits >Release: 9-CURRENT >Organization: >Environment: >Description: lang/python26 doesn't build _ctype module on PowerPC because the libffi included is too old and broken. The attached patch builds the port with devel/libffi optionally. A similar patch can probably be applied to python27, I don't know which libffi it comes with. >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ur python26/Makefile /var/cache/portshaker/ports/lang/python26/Makefile --- python26/Makefile 2011-02-15 22:46:52.000000000 -0500 +++ /var/cache/portshaker/ports/lang/python26/Makefile 2010-09-12 05:07:43.000000000 -0400 @@ -54,8 +54,7 @@ UCS4 "Use UCS4 for unicode support" on \ PYMALLOC "Use python's internal malloc" on \ IPV6 "Enable IPv6 support" on \ - FPECTL "Enable floating point exception handling" off \ - SYS_LIBFFI "Use libffi from ports rather than internal" off + FPECTL "Enable floating point exception handling" off .include <bsd.port.pre.mk> @@ -146,11 +145,6 @@ CONFIGURE_ARGS+= --with-fpectl .endif -.if defined(WITH_SYS_LIBFFI) -LIB_DEPENDS+= ffi:${PORTSDIR}/devel/libffi -CONFIGURE_ARGS+= --with-system-ffi -.endif - pre-patch: ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \ ${PATCH_WRKSRC}/Lib/plat-freebsd9 diff -ur python26/files/patch-Modules-_ctypes-libffi-configure /var/cache/portshaker/ports/lang/python26/files/patch-Modules-_ctypes-libffi-configure --- python26/files/patch-Modules-_ctypes-libffi-configure 2011-02-15 22:58:06.000000000 -0500 +++ /var/cache/portshaker/ports/lang/python26/files/patch-Modules-_ctypes-libffi-configure 2010-09-12 05:07:44.000000000 -0400 @@ -5,7 +5,7 @@ ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ -+powerpc-*freebsd*|amd64-*-freebsd*|x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ ++amd64-*-freebsd*|x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext Only in python26: work >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102160422.p1G4M5Qa092229>