aboutsummaryrefslogtreecommitdiff
path: root/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch')
-rw-r--r--net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch b/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch
new file mode 100644
index 000000000..169a309f8
--- /dev/null
+++ b/net/uwsgi/patches/003-hard-code-Linux-as-compilation-os.patch
@@ -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 = os.environ['LINUX_UNAME_VERSION']
++uwsgi_os_v = "Linux"
+ uwsgi_cpu = os.uname()[4]
+
+ import sys