From 206684cb3484a8ef93f68ba011bffd82f14edfee Mon Sep 17 00:00:00 2001 From: landry Date: Fri, 17 Aug 2012 21:51:49 +0000 Subject: [PATCH] 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@ --- devel/py-greenlet/Makefile | 4 +++- .../patches/patch-slp_platformselect_h | 21 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 devel/py-greenlet/patches/patch-slp_platformselect_h diff --git a/devel/py-greenlet/Makefile b/devel/py-greenlet/Makefile index 0af2d7d2189..431c37f737e 100644 --- a/devel/py-greenlet/Makefile +++ b/devel/py-greenlet/Makefile @@ -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} diff --git a/devel/py-greenlet/patches/patch-slp_platformselect_h b/devel/py-greenlet/patches/patch-slp_platformselect_h new file mode 100644 index 00000000000..8e482e0ca0a --- /dev/null +++ b/devel/py-greenlet/patches/patch-slp_platformselect_h @@ -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