uwsgi: fix compilation with GCC14
authorRosen Penev <rosenp@gmail.com>
Wed, 15 May 2024 04:06:36 +0000 (21:06 -0700)
committerRosen Penev <rosenp@gmail.com>
Wed, 15 May 2024 21:29:07 +0000 (14:29 -0700)
Wrong pointer type is used.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/uwsgi/Makefile
net/uwsgi/patches/040-gcc14.patch [new file with mode: 0644]

index b2b54dd23846fbcce4c8ce2baa72867058fb6511..a5cd067522b9ca324569e5191b0cc72c90a6b8e8 100644 (file)
@@ -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 (file)
index 0000000..68a7ce2
--- /dev/null
@@ -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