mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- update to 1.2.4
- import upstream patch to fix build with python 3.2 Approved by: crees
This commit is contained in:
parent
d08b26f7dd
commit
29e9718d88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300871
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= uwsgi
|
||||
PORTVERSION= 1.2.3
|
||||
PORTVERSION= 1.2.4
|
||||
CATEGORIES= www python
|
||||
MASTER_SITES= http://projects.unbit.it/downloads/
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (uwsgi-1.2.3.tar.gz) = 1f9f6047468272708241780597014ed00d93919a384e81b30e65167fb2c2e129
|
||||
SIZE (uwsgi-1.2.3.tar.gz) = 512385
|
||||
SHA256 (uwsgi-1.2.4.tar.gz) = 294306d249300b531bfc7abaa706926d0ed87ccc2e7248afec50b425aef39ebb
|
||||
SIZE (uwsgi-1.2.4.tar.gz) = 514048
|
||||
|
37
www/uwsgi/files/patch-casting.diff
Normal file
37
www/uwsgi/files/patch-casting.diff
Normal file
@ -0,0 +1,37 @@
|
||||
diff -r 85ae8fc31920 -r e7bca57267bc plugins/python/wsgi_subhandler.c
|
||||
--- plugins/python/wsgi_subhandler.c ven lug 13 12:56:03 2012 +0200
|
||||
+++ plugins/python/wsgi_subhandler.c ven lug 13 12:57:18 2012 +0200
|
||||
@@ -51,7 +51,7 @@
|
||||
// if async_post is mapped as a file, directly use it as wsgi.input
|
||||
if (wsgi_req->async_post) {
|
||||
#ifdef PYTHREE
|
||||
- wsgi_req->async_input = PyFile_FromFd(fileno(wsgi_req->async_post), "wsgi_input", "rb", 0, NULL, NULL, NULL, 0);
|
||||
+ wsgi_req->async_input = PyFile_FromFd(fileno((FILE *)wsgi_req->async_post), "wsgi_input", "rb", 0, NULL, NULL, NULL, 0);
|
||||
#else
|
||||
wsgi_req->async_input = PyFile_FromFile(wsgi_req->async_post, "wsgi_input", "r", NULL);
|
||||
#endif
|
||||
diff -r e7bca57267bc -r 08530c952818 plugins/python/pump_subhandler.c
|
||||
--- plugins/python/pump_subhandler.c ven lug 13 12:57:18 2012 +0200
|
||||
+++ plugins/python/pump_subhandler.c ven lug 13 13:21:57 2012 +0200
|
||||
@@ -107,7 +107,7 @@
|
||||
// if async_post is mapped as a file, directly use it as wsgi.input
|
||||
if (wsgi_req->async_post) {
|
||||
#ifdef PYTHREE
|
||||
- wsgi_req->async_input = PyFile_FromFd(fileno(wsgi_req->async_post), "pump_body", "rb", 0, NULL, NULL, NULL, 0);
|
||||
+ wsgi_req->async_input = PyFile_FromFd(fileno((FILE *)wsgi_req->async_post), "pump_body", "rb", 0, NULL, NULL, NULL, 0);
|
||||
#else
|
||||
wsgi_req->async_input = PyFile_FromFile(wsgi_req->async_post, "pump_body", "r", NULL);
|
||||
#endif
|
||||
diff -r e7bca57267bc -r 08530c952818 plugins/python/web3_subhandler.c
|
||||
--- plugins/python/web3_subhandler.c ven lug 13 12:57:18 2012 +0200
|
||||
+++ plugins/python/web3_subhandler.c ven lug 13 13:21:57 2012 +0200
|
||||
@@ -47,7 +47,7 @@
|
||||
// if async_post is mapped as a file, directly use it as wsgi.input
|
||||
if (wsgi_req->async_post) {
|
||||
#ifdef PYTHREE
|
||||
- wsgi_req->async_input = PyFile_FromFd(fileno(wsgi_req->async_post), "web3_input", "rb", 0, NULL, NULL, NULL, 0);
|
||||
+ wsgi_req->async_input = PyFile_FromFd(fileno((FILE *) wsgi_req->async_post), "web3_input", "rb", 0, NULL, NULL, NULL, 0);
|
||||
#else
|
||||
wsgi_req->async_input = PyFile_FromFile(wsgi_req->async_post, "web3_input", "r", NULL);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user