From: Rosen Penev Date: Wed, 15 May 2024 04:06:36 +0000 (-0700) Subject: uwsgi: fix compilation with GCC14 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=459a8a79fe6ca5fcea190e35a1d7e49bc5a58885;p=openwrt-packages.git uwsgi: fix compilation with GCC14 Wrong pointer type is used. Signed-off-by: Rosen Penev --- diff --git a/net/uwsgi/Makefile b/net/uwsgi/Makefile index b2b54dd23..a5cd06752 100644 --- a/net/uwsgi/Makefile +++ b/net/uwsgi/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uwsgi PKG_VERSION:=2.0.25.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PYPI_NAME:=uWSGI PYPI_SOURCE_NAME:=uwsgi diff --git a/net/uwsgi/patches/040-gcc14.patch b/net/uwsgi/patches/040-gcc14.patch new file mode 100644 index 000000000..68a7ce28c --- /dev/null +++ b/net/uwsgi/patches/040-gcc14.patch @@ -0,0 +1,11 @@ +--- a/core/regexp.c ++++ b/core/regexp.c +@@ -23,7 +23,7 @@ int uwsgi_regexp_build(char *re, uwsgi_p + + #ifdef UWSGI_PCRE2 + int errnbr; +- long unsigned int erroff; ++ size_t erroff; + + *pattern = pcre2_compile((const unsigned char *) re, PCRE2_ZERO_TERMINATED, 0, &errnbr, &erroff, NULL); + #else