From 93b3d42dd5ab7d11dd7766652db9e26236f1f2d7 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 30 Apr 2019 19:26:58 -0700 Subject: [PATCH] uwsgi-cgi: Fix compilation under uClibc-ng execinfo.h is missing. Signed-off-by: Rosen Penev --- net/uwsgi-cgi/Makefile | 2 +- net/uwsgi-cgi/patches/010-uclibc-ng.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 net/uwsgi-cgi/patches/010-uclibc-ng.patch diff --git a/net/uwsgi-cgi/Makefile b/net/uwsgi-cgi/Makefile index f57476eea3..6325391904 100644 --- a/net/uwsgi-cgi/Makefile +++ b/net/uwsgi-cgi/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uwsgi-cgi PKG_VERSION:=2.0.18 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL= \ https://projects.unbit.it/downloads \ diff --git a/net/uwsgi-cgi/patches/010-uclibc-ng.patch b/net/uwsgi-cgi/patches/010-uclibc-ng.patch new file mode 100644 index 0000000000..e967320d95 --- /dev/null +++ b/net/uwsgi-cgi/patches/010-uclibc-ng.patch @@ -0,0 +1,11 @@ +--- a/core/uwsgi.c ++++ b/core/uwsgi.c +@@ -1820,7 +1820,7 @@ void uwsgi_plugins_atexit(void) { + + void uwsgi_backtrace(int depth) { + +-#if defined(__GLIBC__) || (defined(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO) ++#if (!defined(__UCLIBC__) && defined(__GLIBC__)) || (defined(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO) + + #include + -- 2.30.2