ports/154818: Add ctype module for Python build on PPC

Justin Hibbits chmeeedalf at gmail.com
Wed Feb 16 04:30:11 UTC 2011


>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:



More information about the freebsd-ports-bugs mailing list