From 87a879edf7cc5580682634d9eeda0343f12f0219 Mon Sep 17 00:00:00 2001
From: Eivind Uggedal <eivind@uggedal.com>
Date: Thu, 6 Aug 2015 07:00:12 +0000
Subject: [PATCH] uwsgi: disable python3 plugin on cross musl

---
 srcpkgs/uwsgi/template | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template
index 4f59ce197fc..9a795e97075 100644
--- a/srcpkgs/uwsgi/template
+++ b/srcpkgs/uwsgi/template
@@ -13,8 +13,9 @@ checksum=75a7d3138cfa9cd81a760c2f8a43f3d80961edc8e4f27043dc1412206c926287
 
 _libdir=usr/lib/uwsgi
 
+subpackages="uwsgi-python uwsgi-python3.4"
 case "$XBPS_TARGET_MACHINE" in
-	armv[67]l-musl) broken="http://build.voidlinux.eu/builders/armv7l-musl_builder/builds/2741/steps/shell_3/logs/stdio";;
+	armv[67]l-musl) subpackages="uwsgi-python"
 esac
 
 pre_configure() {
@@ -45,8 +46,12 @@ do_build() {
 		_ldflags="$LDFLAGS -L${XBPS_CROSS_BASE}/lib/python3.4m
 			-L${XBPS_CROSS_BASE}/usr/lib"
 	fi
-	CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3.4 uwsgiconfig.py \
-		--plugin plugins/python core python3
+	case "$subpackages" in
+		*uwsgi-python3.4*)
+			CFLAGS="$_cflags" LDFLAGS="$_ldflags" python3.4 uwsgiconfig.py \
+				--plugin plugins/python core python3
+			;;
+	esac
 }
 
 do_install() {