[packages/nginx] Rel 2; fix segfault in ngx_cache_purge due to 1.29.4 changing one of structures

arekm arekm at pld-linux.org
Wed Feb 11 15:16:04 CET 2026


commit 077382525eed79ca48487e1e6ebf6ec21fd774b4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Feb 11 15:15:57 2026 +0100

    Rel 2; fix segfault in ngx_cache_purge due to 1.29.4 changing one of structures

 nginx.spec                         |  6 +++++-
 ngx_cache_purge-nginx-1.29.4.patch | 13 +++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/nginx.spec b/nginx.spec
index 6e6b3ea..d98d339 100644
--- a/nginx.spec
+++ b/nginx.spec
@@ -50,7 +50,7 @@ Summary(pl.UTF-8):	Serwer HTTP i odwrotne proxy o wysokiej wydajności
 # http://nginx.org/en/download.html
 Name:		nginx
 Version:	1.29.5
-Release:	1
+Release:	2
 License:	BSD-like
 Group:		Networking/Daemons/HTTP
 Source0:	https://nginx.org/download/%{name}-%{version}.tar.gz
@@ -77,6 +77,7 @@ Source103:	https://github.com/openresty/headers-more-nginx-module/archive/v%{hea
 Source104:	https://github.com/nginx-modules/ngx_cache_purge/archive/refs/tags/%{http_cache_purge_version}.tar.gz
 # Source104-md5:	e3d43ae95613cd538d2af0ccb0d642c7
 Patch0:		%{name}-no-Werror.patch
+Patch1:		ngx_cache_purge-nginx-1.29.4.patch
 URL:		https://nginx.org/
 BuildRequires:	mailcap
 BuildRequires:	pcre2-8-devel
@@ -319,6 +320,9 @@ mv headers-more-nginx-module-%{headers_more_version} nginx-headers-more-module
 %endif
 
 mv ngx_cache_purge-* ngx_cache_purge
+cd ngx_cache_purge
+%patch -P1 -p1
+cd ..
 
 # build mime.types.conf
 #sh %{SOURCE17} /etc/mime.types
diff --git a/ngx_cache_purge-nginx-1.29.4.patch b/ngx_cache_purge-nginx-1.29.4.patch
new file mode 100644
index 0000000..208780f
--- /dev/null
+++ b/ngx_cache_purge-nginx-1.29.4.patch
@@ -0,0 +1,13 @@
+diff -urN ngx_cache_purge-2.5.5.org/ngx_cache_purge_module.c ngx_cache_purge-2.5.5/ngx_cache_purge_module.c
+--- ngx_cache_purge-2.5.5.org/ngx_cache_purge_module.c	2026-01-06 07:17:16.000000000 +0100
++++ ngx_cache_purge-2.5.5/ngx_cache_purge_module.c	2026-02-11 15:11:12.929674326 +0100
+@@ -528,6 +528,9 @@
+ #  endif /* nginx_version >= 1007008 */
+ 
+     ngx_array_t                   *headers_source;
++#  if (nginx_version >= 1029004)
++    ngx_uint_t                     host_set;
++#  endif /* nginx_version >= 1029004 */
+ #  if (nginx_version < 8040)
+     ngx_array_t                   *headers_names;
+ #  endif /* nginx_version < 8040 */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nginx.git/commitdiff/077382525eed79ca48487e1e6ebf6ec21fd774b4



More information about the pld-cvs-commit mailing list