uwsgi-cgi: fix compilation on Darwin system 6518/head
authorAnsuel Smith <ansuelsmth@gmail.com>
Wed, 18 Jul 2018 16:26:49 +0000 (18:26 +0200)
committerAnsuel Smith <ansuelsmth@gmail.com>
Wed, 18 Jul 2018 16:45:21 +0000 (18:45 +0200)
Currently the uwsgiconfig python script append some additional compilation flag based on the host system. This fix some problem related with this by hardcoding usgi_os variable to Linux

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
net/uwsgi-cgi/Makefile
net/uwsgi-cgi/patches/004-hard-code-Linux-as-compilation-os.patch [new file with mode: 0644]

index 684cb6c01c286c6780842357ebc00795d51fc4ad..7c991c9ea732def63897a6ba4bdcca5d1eb72ea8 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uwsgi-cgi
 PKG_VERSION:=2.0.17.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE_URL=https://codeload.github.com/unbit/uwsgi/tar.gz/$(PKG_VERSION)?
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
diff --git a/net/uwsgi-cgi/patches/004-hard-code-Linux-as-compilation-os.patch b/net/uwsgi-cgi/patches/004-hard-code-Linux-as-compilation-os.patch
new file mode 100644 (file)
index 0000000..0459ed0
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/uwsgiconfig.py
++++ b/uwsgiconfig.py
+@@ -5,9 +5,9 @@
+ import os
+ import re
+ import time
+-uwsgi_os = os.uname()[0]
+-uwsgi_os_k = re.split('[-+_]', os.uname()[2])[0]
+-uwsgi_os_v = os.uname()[3]
++uwsgi_os = "Linux"
++uwsgi_os_k = "4.4.0"
++uwsgi_os_v = "Linux"
+ uwsgi_cpu = os.uname()[4]
+ import sys