The NAXSI plugin seems to be broken, emerging www-servers/nginx-1.12.6-r1[nginx_modules_http_naxsi] ends with the following error: .../tmpfs/portage/www-servers/nginx-1.21.6-r1/work/naxsi-0.56/naxsi_src/naxsi_runtime.c: In function 'ngx_http_process_basic_rule_buffer': .../portage/www-servers/nginx-1.21.6-r1/work/naxsi-0.56/naxsi_src/naxsi_runtime.c:189:44: error: invalid use of incomplete typedef 'ngx_regex_t' {aka 'struct pcre2_real_code_8'} .../portage/www-servers/nginx-1.21.6-r1/work/naxsi-0.56/naxsi_src/naxsi_runtime.c: In function 'ngx_http_dummy_pcre_wrapper': .../portage/www-servers/nginx-1.21.6-r1/work/naxsi-0.56/naxsi_src/naxsi_runtime.c:406:30: error: invalid use of incomplete typedef 'ngx_regex_t' {aka 'struct pcre2_real_code_8'} make[1]: *** [objs/Makefile:1838: objs/addon/naxsi_src/naxsi_runtime.o] Error 1
Thank you for the report. We need to have all information at hand before ticket assignment. This includes * the complete build.log as attachment and * a paste of the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Created attachment 769112 [details] buildlog
Please include emerge --info too.
Created attachment 769115 [details] buildlog
Created attachment 769118 [details] emerge --info
Created attachment 769121 [details] emerge -pqv
looks like upstream issue with naxsi https://github.com/nbs-system/naxsi/issues/580 https://github.com/nginx/nginx/commit/d5f1f169bc71d32b96960266d54e189c69af00ba
It's certainly broken, I found this patch that Arch is using to fix the problem... https://github.com/archlinux/svntogit-community/blob/packages/nginx-mod-naxsi/trunk/587-pcre2.patch This could be used to fix the ebuild.
Created attachment 798965 [details, diff] fix of www-servers/nginx/nginx-1.21.6-r3.ebuild
patches come from https://github.com/nbs-system/naxsi/pull/587/files
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd0e508ff6bd477682cf8c156a23248808744e6d commit fd0e508ff6bd477682cf8c156a23248808744e6d Author: Tomáš Mózes <hydrapolic@gmail.com> AuthorDate: 2022-10-22 06:34:16 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2022-10-23 20:23:00 +0000 www-servers/nginx: various improvements - update nginx modules - change naxsi upstream as previous fails to build and is considered obsolete - use mime types from app-misc/mime-types by default Closes: https://bugs.gentoo.org/762964 Closes: https://bugs.gentoo.org/836454 Closes: https://bugs.gentoo.org/850571 Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/27887 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> www-servers/nginx/Manifest | 6 + www-servers/nginx/files/nginx.conf-r3 | 70 ++ www-servers/nginx/nginx-1.23.2-r1.ebuild | 1066 ++++++++++++++++++++++++++++++ 3 files changed, 1142 insertions(+)