diff options
Diffstat (limited to 'www-servers/uwsgi/files/uwsgi-0.9.6.6-gentoo-gcc.patch')
-rw-r--r-- | www-servers/uwsgi/files/uwsgi-0.9.6.6-gentoo-gcc.patch | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/www-servers/uwsgi/files/uwsgi-0.9.6.6-gentoo-gcc.patch b/www-servers/uwsgi/files/uwsgi-0.9.6.6-gentoo-gcc.patch index ae196b1f67e9..98298a6b50e1 100644 --- a/www-servers/uwsgi/files/uwsgi-0.9.6.6-gentoo-gcc.patch +++ b/www-servers/uwsgi/files/uwsgi-0.9.6.6-gentoo-gcc.patch @@ -1,13 +1,23 @@ diff --git a/uwsgiconfig.py b/uwsgiconfig.py -index c06882c..2efc46c 100644 +index 5025b51..d817ae1 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py -@@ -84,7 +84,7 @@ def spcall2(cmd): +@@ -75,17 +75,7 @@ def spcall(cmd): else: return None +-def spcall2(cmd): +- p = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE) +- +- if p.wait() == 0: +- if sys.version_info[0] > 2: +- return p.stderr.read().rstrip().decode() +- return p.stderr.read().rstrip() +- else: +- return None +- -gcc_version = str(spcall2("%s -v" % GCC)).split('\n')[-1].split()[2] -+gcc_version = str(spcall2("%s -v" % GCC)).split('\n')[-1].split()[4] ++gcc_version = str(spcall("%s -dumpversion" % GCC)) gcc_major = int(gcc_version.split('.')[0]) gcc_minor = int(gcc_version.split('.')[1]) |