From 15ef9912f5d3da463c76e29445b90ddb459674f7 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Tue, 4 Aug 2015 16:51:52 +0000 Subject: [PATCH] uwsgi: fix musl locking issue (patch from Alpine) --- srcpkgs/uwsgi/patches/musl-locking-fix.patch | 12 ++++++++++++ srcpkgs/uwsgi/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/uwsgi/patches/musl-locking-fix.patch diff --git a/srcpkgs/uwsgi/patches/musl-locking-fix.patch b/srcpkgs/uwsgi/patches/musl-locking-fix.patch new file mode 100644 index 00000000000..fa6e16fd096 --- /dev/null +++ b/srcpkgs/uwsgi/patches/musl-locking-fix.patch @@ -0,0 +1,12 @@ +--- core/lock.c ++++ core/lock.c +@@ -96,7 +96,9 @@ + #endif + if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT)) { + uwsgi_log("unable to set PTHREAD_PRIO_INHERIT\n"); ++#if 0 + exit(1); ++#endif + } + if (uwsgi_pthread_robust_mutexes_enabled) { + if (pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) { diff --git a/srcpkgs/uwsgi/template b/srcpkgs/uwsgi/template index 3eb3c65b2f8..c1b233aed8c 100644 --- a/srcpkgs/uwsgi/template +++ b/srcpkgs/uwsgi/template @@ -1,7 +1,7 @@ # Template file for 'uwsgi' pkgname=uwsgi version=2.0.11.1 -revision=3 +revision=4 build_style=python-module hostmakedepends="python-devel python-setuptools" makedepends="sqlite-devel python-devel python-setuptools libxml2-devel"