RFC: review a patch to lang/python25

Mark Linimon linimon at lonesome.com
Thu Apr 22 01:56:12 UTC 2010


This is to (partially) fix the build on powerpc, which currently turns
out to be a 32-bit arch just like i386 :-)

The patch appears to be pretty trivial.  I've tested it on powerpc but
not yet on i386/amd64.

Thanks.

mcl

Index: Makefile
===================================================================
RCS file: /home/FreeBSD/pcvs/ports/lang/python25/Makefile,v
retrieving revision 1.159
diff -u -r1.159 Makefile
--- Makefile	2 Feb 2010 22:00:24 -0000	1.159
+++ Makefile	4 Apr 2010 05:05:06 -0000
@@ -89,11 +89,6 @@
 CONFIGURE_ARGS+=	--without-pymalloc
 .endif
 
-.if ${ARCH} == i386
-PLIST_SUB+=	X86_ONLY=""
-.else
-PLIST_SUB+=	X86_ONLY="@comment "
-.endif
 .if ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == sparc64 || ${ARCH} == alpha
 PLIST_SUB+=	32BIT_ONLY="@comment "
 .else
Index: pkg-plist
===================================================================
RCS file: /home/FreeBSD/pcvs/ports/lang/python25/pkg-plist,v
retrieving revision 1.75
diff -u -r1.75 pkg-plist
--- pkg-plist	26 Nov 2009 14:04:18 -0000	1.75
+++ pkg-plist	4 Apr 2010 05:05:29 -0000
@@ -674,7 +674,7 @@
 %%32BIT_ONLY%%%%PYTHON_LIBDIR%%/lib-dynload/dl.so
 %%PYTHON_LIBDIR%%/lib-dynload/fcntl.so
 %%PYTHON_LIBDIR%%/lib-dynload/grp.so
-%%X86_ONLY%%%%PYTHON_LIBDIR%%/lib-dynload/imageop.so
+%%32BIT_ONLY%%%%PYTHON_LIBDIR%%/lib-dynload/imageop.so
 %%PYTHON_LIBDIR%%/lib-dynload/itertools.so
 %%PYTHON_LIBDIR%%/lib-dynload/math.so
 %%PYTHON_LIBDIR%%/lib-dynload/mmap.so
@@ -685,7 +685,7 @@
 %%PYTHON_LIBDIR%%/lib-dynload/pyexpat.so
 %%PYTHON_LIBDIR%%/lib-dynload/readline.so
 %%PYTHON_LIBDIR%%/lib-dynload/resource.so
-%%X86_ONLY%%%%PYTHON_LIBDIR%%/lib-dynload/rgbimg.so
+%%32BIT_ONLY%%%%PYTHON_LIBDIR%%/lib-dynload/rgbimg.so
 %%PYTHON_LIBDIR%%/lib-dynload/select.so
 %%PYTHON_LIBDIR%%/lib-dynload/strop.so
 %%PYTHON_LIBDIR%%/lib-dynload/syslog.so


More information about the freebsd-python mailing list