Created attachment 272613 [details] www/nginx 1.30.3_2,3 patch Need to set GRIDFS option to check
Created attachment 272627 [details] www/nginx 1.30.3_2,3 patch Updated the patch according to the following comment: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296607#c1
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2fc4e25bbaae7b55ced7bbe99f9ac401b8890b7b commit 2fc4e25bbaae7b55ced7bbe99f9ac401b8890b7b Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com> AuthorDate: 2026-07-08 15:06:35 +0000 Commit: Yusuf Yaman <nxjoseph@FreeBSD.org> CommitDate: 2026-08-04 11:46:48 +0000 www/nginx: chase devel/mongo-c-driver update PR: 296604 Reported by: Hiroo Ono <hiroo.ono+freebsd@gmail.com> (author) Approved by: Jochen Neumeister <joneum@FreeBSD.org> (maintainer timeout, 3+ weeks) Approved by: osa, vvd (Mentors, implicit) www/nginx/Makefile | 3 ++- www/nginx/Makefile.extmod | 7 +++++-- .../files/extra-patch-nginx-gridfs_config (new) | 14 ++++++++++++++ ...-patch-ngnx-gridfs_ngx_http_gridfs_module.c (new) | 20 ++++++++++++++++++++ 4 files changed, 41 insertions(+), 3 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8c2ac84b701610ea2c269aeb8f06ead8eae48cb2 commit 8c2ac84b701610ea2c269aeb8f06ead8eae48cb2 Author: Jochen Neumeister <joneum@FreeBSD.org> AuthorDate: 2026-08-05 07:54:11 +0000 Commit: Jochen Neumeister <joneum@FreeBSD.org> CommitDate: 2026-08-05 07:54:11 +0000 www/{nginx,nginx-devel,freenginx}: 3rd-pary modules managemeht Fix build and loading of the 3rd party gridfs module after the devel/mongo-c-driver 2.x update. The module config now obtains include and linker flags from pkg-config instead of deriving them from the ports tree's DISTVERSION. The previous approach ran a recursive make into devel/mongo-c-driver on every make invocation, even with GRIDFS unset, and derived the libbson include path from the mongo-c-driver version although devel/libbson is a separate port with its own DISTVERSION. Both directories happen to carry the same version today, so the mismatch was not visible yet. While here, add the missing assert.h include. The module calls assert() without declaring it, which left an unresolvable symbol "assert" in the shared object -- libc only exports __assert. Since nginx dlopen()s modules with RTLD_NOW, load_module refused to load the module at runtime. Also correct a typo in one of the patch file names. PR: 296604, 296605, 296606 Sponsored by: Netzkommune GmbH www/freenginx/Makefile | 7 +------ www/freenginx/Makefile.extmod | 4 ++-- www/freenginx/files/extra-patch-nginx-gridfs_config | 4 ++-- ..._module.c => extra-patch-nginx-gridfs_ngx_http_gridfs_module.c} | 3 ++- www/nginx-devel/Makefile | 7 +------ www/nginx-devel/Makefile.extmod | 4 ++-- www/nginx-devel/files/extra-patch-nginx-gridfs_config | 4 ++-- ..._module.c => extra-patch-nginx-gridfs_ngx_http_gridfs_module.c} | 3 ++- www/nginx/Makefile | 7 +------ www/nginx/Makefile.extmod | 4 ++-- www/nginx/files/extra-patch-nginx-gridfs_config | 4 ++-- ..._module.c => extra-patch-nginx-gridfs_ngx_http_gridfs_module.c} | 3 ++- 12 files changed, 21 insertions(+), 33 deletions(-)