Unbreak on ppc & give it a chance to build on mips*. Set ONLY_FOR_ARCHS
since it has platform-dependent code in slp_platformdetect.h.. breakage reported by ajacoutot@
This commit is contained in:
parent
b0b81ae6b4
commit
206684cb34
@ -1,6 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/07/17 19:24:47 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2012/08/17 21:51:49 landry Exp $
|
||||
|
||||
COMMENT = lightweight in-process concurrent programming
|
||||
# see slp_platformselect.h
|
||||
ONLY_FOR_ARCHS = amd64 arm i386 mips64 mips64el powerpc sparc sparc64
|
||||
|
||||
MODPY_EGG_VERSION = 0.4.0
|
||||
DISTNAME = greenlet-${MODPY_EGG_VERSION}
|
||||
|
21
devel/py-greenlet/patches/patch-slp_platformselect_h
Normal file
21
devel/py-greenlet/patches/patch-slp_platformselect_h
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-slp_platformselect_h,v 1.1 2012/08/17 21:51:49 landry Exp $
|
||||
Give it a chance to build on ppc & mips
|
||||
--- slp_platformselect.h.orig Fri Aug 17 23:44:37 2012
|
||||
+++ slp_platformselect.h Fri Aug 17 23:46:43 2012
|
||||
@@ -18,6 +18,8 @@
|
||||
#include "platform/switch_ppc_macosx.h" /* Apple MacOS X on PowerPC */
|
||||
#elif defined(__GNUC__) && defined(_ARCH_PPC) && defined(_AIX)
|
||||
#include "platform/switch_ppc_aix.h" /* gcc on AIX/PowerPC */
|
||||
+#elif defined(__GNUC__) && defined(__powerpc__)
|
||||
+#include "platform/switch_ppc_unix.h" /* gcc on unix/PowerPC */
|
||||
#elif defined(__GNUC__) && defined(sparc)
|
||||
#include "platform/switch_sparc_sun_gcc.h" /* SunOS sparc with gcc */
|
||||
#elif defined(__SUNPRO_C) && defined(sparc) && defined(sun)
|
||||
@@ -30,6 +32,6 @@
|
||||
#include "platform/switch_s390_unix.h" /* Linux/S390 zSeries (64-bit) */
|
||||
#elif defined(__GNUC__) && defined(__arm__)
|
||||
#include "platform/switch_arm32_gcc.h" /* gcc using arm32 */
|
||||
-#elif defined(__GNUC__) && defined(__mips__) && defined(__linux__)
|
||||
+#elif defined(__GNUC__) && defined(__mips__)
|
||||
#include "platform/switch_mips_unix.h" /* Linux/MIPS */
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user