summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2012-05-15 06:45:08 +0000
committerTiziano Müller <dev-zero@gentoo.org>2012-05-15 06:45:08 +0000
commit3ea167472ad1d95d5a23b4257bd6713743dbae04 (patch)
tree486f318d45a243b70abe7827ca6a7746e7c3919e /www-servers/uwsgi/files/1.2.3-pyerl.patch
parentBackport upstream patch to fix bug #415601 by Baptiste Wicht. (diff)
downloadhistorical-3ea167472ad1d95d5a23b4257bd6713743dbae04.tar.gz
historical-3ea167472ad1d95d5a23b4257bd6713743dbae04.tar.bz2
historical-3ea167472ad1d95d5a23b4257bd6713743dbae04.zip
Version bump (bug #415127), in collaboration with Ultrabug: no magic deps anymore, added support for perl, ruby, lua, erlang, php and general cgi.
Package-Manager: portage-2.1.10.56/cvs/Linux x86_64
Diffstat (limited to 'www-servers/uwsgi/files/1.2.3-pyerl.patch')
-rw-r--r--www-servers/uwsgi/files/1.2.3-pyerl.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/www-servers/uwsgi/files/1.2.3-pyerl.patch b/www-servers/uwsgi/files/1.2.3-pyerl.patch
new file mode 100644
index 000000000000..1d4794d8f6e1
--- /dev/null
+++ b/www-servers/uwsgi/files/1.2.3-pyerl.patch
@@ -0,0 +1,31 @@
+diff --git a/plugins/pyerl/pyerl.c b/plugins/pyerl/pyerl.c
+index a335f03..aee98e2 100644
+--- a/plugins/pyerl/pyerl.c
++++ b/plugins/pyerl/pyerl.c
+@@ -537,7 +537,7 @@ void pyerl_init() {
+ }
+
+ struct uwsgi_plugin pyerl_plugin = {
+-
++ .name = "pyerl",
+ .post_init = pyerl_init,
+ };
+
+diff --git a/plugins/pyerl/uwsgiplugin.py b/plugins/pyerl/uwsgiplugin.py
+index 161d722..ae9c68d 100644
+--- a/plugins/pyerl/uwsgiplugin.py
++++ b/plugins/pyerl/uwsgiplugin.py
+@@ -1,7 +1,12 @@
+ from distutils import sysconfig
++import os
+
+ NAME='pyerl'
+-CFLAGS = ['-I' + sysconfig.get_python_inc(), '-I' + sysconfig.get_python_inc(plat_specific=True)]
++
++ERLANGPATH = os.environ.get('UWSGICONFIG_ERLANGPATH', 'erl')
++includedir = os.popen(ERLANGPATH + " -noshell -noinput -eval \"io:format('~s~n', [code:lib_dir(erl_interface, include)])\" -s erlang halt").read().rstrip()
++
++CFLAGS = ['-I' + sysconfig.get_python_inc(), '-I' + sysconfig.get_python_inc(plat_specific=True), '-I' + includedir ]
+ LDFLAGS = []
+ LIBS = []
+