Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836454 - www-servers/nginx-1.12.6-r1[nginx_modules_http_naxsi] fails to build
Summary: www-servers/nginx-1.12.6-r1[nginx_modules_http_naxsi] fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/nbs-system/naxsi/p...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-30 22:37 UTC by Petr Cerny [:hrosik]
Modified: 2022-10-23 20:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
buildlog (www-servers__nginx-1.21.6-r1::gentoo.build.log.xz,5.36 KB, text/x-log)
2022-04-06 21:09 UTC, Petr Cerny [:hrosik]
Details
buildlog (www-servers__nginx-1.21.6-r1::gentoo.build.log.xz,5.36 KB, application/x-xz)
2022-04-06 21:10 UTC, Petr Cerny [:hrosik]
Details
emerge --info (www-servers__nginx-1.21.6-r1::gentoo.emerge-info.txt,7.61 KB, text/plain)
2022-04-06 21:11 UTC, Petr Cerny [:hrosik]
Details
emerge -pqv (www-servers__nginx-1.21.6-r1::gentoo.emerge-pqv.txt,1.15 KB, text/plain)
2022-04-06 21:12 UTC, Petr Cerny [:hrosik]
Details
fix of www-servers/nginx/nginx-1.21.6-r3.ebuild (nginx.patch,7.03 KB, patch)
2022-08-09 07:41 UTC, Zhixu Liu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cerny [:hrosik] 2022-03-30 22:37:22 UTC
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
Comment 1 Jonas Stein gentoo-dev 2022-04-01 22:11:45 UTC
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.
Comment 2 Petr Cerny [:hrosik] 2022-04-06 21:09:05 UTC
Created attachment 769112 [details]
buildlog
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-04-06 21:10:38 UTC
Please include emerge --info too.
Comment 4 Petr Cerny [:hrosik] 2022-04-06 21:10:43 UTC
Created attachment 769115 [details]
buildlog
Comment 5 Petr Cerny [:hrosik] 2022-04-06 21:11:27 UTC
Created attachment 769118 [details]
emerge --info
Comment 6 Petr Cerny [:hrosik] 2022-04-06 21:12:16 UTC
Created attachment 769121 [details]
emerge -pqv
Comment 8 John Tate 2022-06-18 15:50:21 UTC
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.
Comment 9 Zhixu Liu 2022-08-09 07:41:22 UTC
Created attachment 798965 [details, diff]
fix of www-servers/nginx/nginx-1.21.6-r3.ebuild
Comment 10 Zhixu Liu 2022-08-09 07:42:06 UTC
patches come from https://github.com/nbs-system/naxsi/pull/587/files
Comment 11 Larry the Git Cow gentoo-dev 2022-10-23 20:24:06 UTC
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(+)