From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 16 04:30:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88AD8106566C for ; Wed, 16 Feb 2011 04:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6256E8FC12 for ; Wed, 16 Feb 2011 04:30:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1G4UBRK019843 for ; Wed, 16 Feb 2011 04:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1G4UBLk019839; Wed, 16 Feb 2011 04:30:11 GMT (envelope-from gnats) Resent-Date: Wed, 16 Feb 2011 04:30:11 GMT Resent-Message-Id: <201102160430.p1G4UBLk019839@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Justin Hibbits Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 096AD106564A for ; Wed, 16 Feb 2011 04:22:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D33998FC08 for ; Wed, 16 Feb 2011 04:22:05 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p1G4M58M092230 for ; Wed, 16 Feb 2011 04:22:05 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p1G4M5Qa092229; Wed, 16 Feb 2011 04:22:05 GMT (envelope-from nobody) Message-Id: <201102160422.p1G4M5Qa092229@red.freebsd.org> Date: Wed, 16 Feb 2011 04:22:05 GMT From: Justin Hibbits To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/154818: Add ctype module for Python build on PPC X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 04:30:11 -0000 >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 @@ -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: