Thu Aug 5 13:22:30 2021 UTC ()
py-uwsgi: updated to 2.0.19.1

uWSGI 2.0.19.1

Changes

Reverted CGI chunked encoding support
Fixed bug with WSGI responses returning None

uWSGI 2.0.19

Changes

Update travis to xenial
Fix segfault in logsocket plugin
Backport Coverity fixes from master
Fix Python 3.7 warnings
Fix uwsgi.workers() leak in Python plugin
Backport redislog plugin 32-bit build fixes
Fix stack overflow in core/rpc
Fix build with spaces in the path
Add missing initialization for zend_file_handle in php plugin
Build Python 3.7 and 3.8 plugins in CI
Add Trove classifiers for Python 3.7 and 3.8
Graceful shutdown for vassals
Improve yaml parsing with libyaml
Add smart-daemon2 option to notify daemon of master reloading
Do not chroot multiple times when root
Support io.BytesIO with wsgi.file_wrapper
Add websocket continuation frames support
Fix compilation with gevent 1.5.0
Fix PSGI plugin build with gcc 10
Get rid of paste.script dependency in pypy/python plugins
Improve performance for santitizing file descriptors with cgi plugin
Fix offload-threads with honour-range
Fix logging packet size length overflow
Fix possible deadlock in install
Fix parsing of http port for ipv6
Fix impossibility of determining the end of the chunked stream with psgi plugin
Fix parsing of http-socket port for ipv6
Add chunked request decoding to the CGI plugin
Add add max-worker-lifetime-delta to reload workers with a delta


(adam)
diff -r1.47 -r1.48 pkgsrc/www/py-uwsgi/Makefile
diff -r1.36 -r1.37 pkgsrc/www/py-uwsgi/distinfo
diff -r1.7 -r1.8 pkgsrc/www/py-uwsgi/patches/patch-uwsgi.h

cvs diff -r1.47 -r1.48 pkgsrc/www/py-uwsgi/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-uwsgi/Makefile 2020/11/05 09:09:22 1.47
+++ pkgsrc/www/py-uwsgi/Makefile 2021/08/05 13:22:30 1.48
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1# $NetBSD: Makefile,v 1.47 2020/11/05 09:09:22 ryoon Exp $ 1# $NetBSD: Makefile,v 1.48 2021/08/05 13:22:30 adam Exp $
2 2
3DISTNAME= uwsgi-2.0.18 3DISTNAME= uWSGI-2.0.19.1
4PKGREVISION= 4 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
5PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 
6CATEGORIES= www python 5CATEGORIES= www python
7MASTER_SITES= ${MASTER_SITE_PYPI:=u/uWSGI/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=u/uWSGI/}
8DISTFILES= ${DEFAULT_DISTFILES} 
9 7
10MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://uwsgi-docs.readthedocs.io/ 9HOMEPAGE= https://uwsgi-docs.readthedocs.io/
12COMMENT= Feature-rich WSGI server 10COMMENT= Feature-rich WSGI server
13LICENSE= gnu-gpl-v2 # with linking exception 11LICENSE= gnu-gpl-v2 # with linking exception
14 12
 13EXTRACT_DIR= ${WRKSRC}
 14
15USE_TOOLS+= pkg-config 15USE_TOOLS+= pkg-config
16 16
17PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX} 17PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
18EGG_NAME= ${DISTNAME:S/uwsgi/uWSGI/} 18EGG_NAME= ${DISTNAME:S/uwsgi/uWSGI/}
19 19
20.include "options.mk" 20.include "options.mk"
21 21
22INSTALL_ENV+= UWSGI_INCLUDES=${PREFIX}/include 22INSTALL_ENV+= UWSGI_INCLUDES=${PREFIX}/include
23INSTALL_ENV+= UWSGI_PROFILE_OVERRIDE="${UWSGI_DEBUG};${UWSGI_JSON};${UWSGI_PCRE};${UWSGI_SSE};${UWSGI_SSL};${UWSGI_UUID};${UWSGI_XML};${UWSGI_YAML}" 23INSTALL_ENV+= UWSGI_PROFILE_OVERRIDE="${UWSGI_DEBUG};${UWSGI_JSON};${UWSGI_PCRE};${UWSGI_SSE};${UWSGI_SSL};${UWSGI_UUID};${UWSGI_XML};${UWSGI_YAML}"
24INSTALLATION_DIRS+= share/examples/${PYPKGPREFIX}-uwsgi 24INSTALLATION_DIRS+= share/examples/${PYPKGPREFIX}-uwsgi
25 25
26post-install: 26post-install:
27 cd ${DESTDIR}${PREFIX}/bin && ${MV} uwsgi uwsgi-${PYVERSSUFFIX} || ${TRUE} 27 cd ${DESTDIR}${PREFIX}/bin && ${MV} uwsgi uwsgi-${PYVERSSUFFIX} || ${TRUE}

cvs diff -r1.36 -r1.37 pkgsrc/www/py-uwsgi/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-uwsgi/distinfo 2019/05/05 17:55:34 1.36
+++ pkgsrc/www/py-uwsgi/distinfo 2021/08/05 13:22:30 1.37
@@ -1,14 +1,10 @@ @@ -1,14 +1,10 @@
1$NetBSD: distinfo,v 1.36 2019/05/05 17:55:34 wiedi Exp $ 1$NetBSD: distinfo,v 1.37 2021/08/05 13:22:30 adam Exp $
2 2
3SHA1 (8253573a0db1c7d7b9d968d55669e70e40355bed.zip) = 7cf7aca4b0e5e64ebe5bec813f4f48c5b009eac5 3SHA1 (uWSGI-2.0.19.1.tar.gz) = 88d893e67c055a5e2da92dadd53562c114063222
4RMD160 (8253573a0db1c7d7b9d968d55669e70e40355bed.zip) = b213ea821a3c12a6c092615ce02a3dd4bbaff0c6 4RMD160 (uWSGI-2.0.19.1.tar.gz) = cba6b90e8c16c57eb7861e0f48b99e9a8def90a6
5SHA512 (8253573a0db1c7d7b9d968d55669e70e40355bed.zip) = f523d41c5c9a376b98b1e7c59e02b05a7d0aa5ad424add4a7ca1bb565c758c67368d29ee1939f1c8cdea7b55ec05ad9b8d5a293d40866c5936525f45290b17dd 5SHA512 (uWSGI-2.0.19.1.tar.gz) = 5e249f65ed1d39515d1264e76d4de9fe42fc28ea3157a2ea724f36e2ae058380545d834b39dde40554f4ad0f19bb57ef7842d5d1b991884df986c665f4c59149
6Size (8253573a0db1c7d7b9d968d55669e70e40355bed.zip) = 11290 bytes 6Size (uWSGI-2.0.19.1.tar.gz) = 803862 bytes
7SHA1 (uwsgi-2.0.18.tar.gz) = e7e402dd5b5c68a995585284c4529da9a686a0a9 
8RMD160 (uwsgi-2.0.18.tar.gz) = eb30a41097d306678203aa81bf5f4e27c722b8f8 
9SHA512 (uwsgi-2.0.18.tar.gz) = 6561703279bcc4a81311d033810ac066d0f113bab13b0942f3eef86cac29c584a6641b52476840d6895151aee5ed064ae2d03b18932cf7f47e62f4eeed76da61 
10Size (uwsgi-2.0.18.tar.gz) = 801555 bytes 
11SHA1 (patch-base.ini) = 1c5d7693e6c8011e6cc34f5f5d203584c985eb30 7SHA1 (patch-base.ini) = 1c5d7693e6c8011e6cc34f5f5d203584c985eb30
12SHA1 (patch-core_logging.c) = caa986238142d24725df119cbecda1b9e3223d7e 8SHA1 (patch-core_logging.c) = caa986238142d24725df119cbecda1b9e3223d7e
13SHA1 (patch-uwsgi.h) = 42301a49b3a030c60627559750ed140acc91b275 9SHA1 (patch-uwsgi.h) = d563a2193643ff25952b57e01bf190b9b43e7f1e
14SHA1 (patch-uwsgiconfig.py) = aab47457f2fafb0206a53913ef3777700175d020 10SHA1 (patch-uwsgiconfig.py) = aab47457f2fafb0206a53913ef3777700175d020

cvs diff -r1.7 -r1.8 pkgsrc/www/py-uwsgi/patches/patch-uwsgi.h (expand / switch to unified diff)

--- pkgsrc/www/py-uwsgi/patches/patch-uwsgi.h 2019/05/05 17:55:34 1.7
+++ pkgsrc/www/py-uwsgi/patches/patch-uwsgi.h 2021/08/05 13:22:30 1.8
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1$NetBSD: patch-uwsgi.h,v 1.7 2019/05/05 17:55:34 wiedi Exp $ 1$NetBSD: patch-uwsgi.h,v 1.8 2021/08/05 13:22:30 adam Exp $
2 2
3Avoid clash with sys/user.h inclusion in logging.c on DragonFly BSD. 3Avoid clash with sys/user.h inclusion in logging.c on DragonFly BSD.
4Avoid using "sun" which breaks on SunOS 4Avoid using "sun" which breaks on SunOS
5 5
6--- uwsgi.h.orig 2019-02-09 14:48:07.000000000 +0000 6--- uwsgi.h.orig 2020-06-17 09:03:34.000000000 +0000
7+++ uwsgi.h 7+++ uwsgi.h
8@@ -322,6 +322,10 @@ extern int pivot_root(const char *new_ro 8@@ -322,6 +322,10 @@ extern int pivot_root(const char *new_ro
9 #elif defined(__CYGWIN__) 9 #elif defined(__CYGWIN__)
10 #elif defined(__HURD__) 10 #elif defined(__HURD__)
11 #else 11 #else
12+#if defined(__DragonFly__) 12+#if defined(__DragonFly__)
13+/* avoid clash with sys/user.h inclusion in logging.c */ 13+/* avoid clash with sys/user.h inclusion in logging.c */
14+#define _KERNEL_STRUCTURES 14+#define _KERNEL_STRUCTURES
15+#endif /* __DragonFly__ */ 15+#endif /* __DragonFly__ */
16 #include <sys/event.h> 16 #include <sys/event.h>
17 #endif 17 #endif
18  18
19@@ -1629,7 +1633,7 @@ struct wsgi_request { 19@@ -1631,7 +1635,7 @@ struct wsgi_request {
20 union address { 20 union address {
21 struct sockaddr_in sin; 21 struct sockaddr_in sin;
22 struct sockaddr_in6 sin6; 22 struct sockaddr_in6 sin6;
23- struct sockaddr_un sun; 23- struct sockaddr_un sun;
24+ struct sockaddr_un so_sun; 24+ struct sockaddr_un so_sun;
25 } client_addr; 25 } client_addr;
26 }; 
27  26
 27 uint8_t websocket_is_fin;