www-servers/nginx: add patch for http_security from upstream

see 7d37ace743

Closes: https://bugs.gentoo.org/933598
Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38343
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Z. Liu
2024-08-30 17:19:56 +08:00
committed by Sam James
parent f08cde6b18
commit e98d8ef557
3 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
From 7d37ace7431ea9704faa98f29876bcd72ef4b1ff Mon Sep 17 00:00:00 2001
From: Ervin Hegedus <airween@gmail.com>
Date: Tue, 23 Apr 2024 21:42:02 +0200
Subject: [PATCH] fix: Added missing header for conftest
---
config | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/config b/config
index c6e7467..3bf06a8 100644
--- a/config
+++ b/config
@@ -10,7 +10,8 @@
ngx_feature_name=
ngx_feature_run=no
-ngx_feature_incs="#include <modsecurity/modsecurity.h>"
+ngx_feature_incs="#include <modsecurity/modsecurity.h>
+#include <stdio.h>"
ngx_feature_libs="-lmodsecurity"
ngx_feature_test='printf("hello");'
ngx_modsecurity_opt_I=
--
2.26.2

View File

@@ -459,6 +459,12 @@ src_prepare() {
cd "${S}" || die
fi
if use nginx_modules_http_security ; then
cd "${HTTP_SECURITY_MODULE_WD}" || die
eapply "${FILESDIR}/http_security-nginx-1.26.2.patch"
cd "${S}" || die
fi
find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die
# We have config protection, don't rename etc files
sed -i 's:.default::' auto/install || die

View File

@@ -459,6 +459,12 @@ src_prepare() {
cd "${S}" || die
fi
if use nginx_modules_http_security ; then
cd "${HTTP_SECURITY_MODULE_WD}" || die
eapply "${FILESDIR}/http_security-nginx-1.26.2.patch"
cd "${S}" || die
fi
find auto/ -type f -print0 | xargs -0 sed -i 's:\&\& make:\&\& \\$(MAKE):' || die
# We have config protection, don't rename etc files
sed -i 's:.default::' auto/install || die