Bug 296604 - www/nginx: chase devel/mongo-c-driver update
Summary: www/nginx: chase devel/mongo-c-driver update
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-07-08 13:41 UTC by Hiroo Ono
Modified: 2026-08-05 07:59 UTC (History)
2 users (show)

See Also:


Attachments
www/nginx 1.30.3_2,3 patch (4.17 KB, patch)
2026-07-08 13:41 UTC, Hiroo Ono
no flags Details | Diff
www/nginx 1.30.3_2,3 patch (4.22 KB, patch)
2026-07-08 15:31 UTC, Hiroo Ono
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroo Ono 2026-07-08 13:41:40 UTC
Created attachment 272613 [details]
www/nginx 1.30.3_2,3 patch

Need to set GRIDFS option to check
Comment 1 Hiroo Ono 2026-07-08 15:31:13 UTC
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
Comment 2 commit-hook freebsd_committer freebsd_triage 2026-08-04 11:47:54 UTC
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(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-08-05 07:56:07 UTC
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(-)