Date: Tue, 04 Aug 2026 11:47:11 +0000 From: Yusuf Yaman <nxjoseph@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Hiroo Ono <hiroo.ono+freebsd@gmail.com> Subject: git: e472b2f6810d - main - www/freenginx-devel: chase devel/mongo-c-driver update Message-ID: <6a71d13f.1eb4e.7b4927fb@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by nxjoseph: URL: https://cgit.FreeBSD.org/ports/commit/?id=e472b2f6810d0964eb631097f6ca8905c51d5593 commit e472b2f6810d0964eb631097f6ca8905c51d5593 Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com> AuthorDate: 2026-07-09 14:39:06 +0000 Commit: Yusuf Yaman <nxjoseph@FreeBSD.org> CommitDate: 2026-08-04 11:46:49 +0000 www/freenginx-devel: chase devel/mongo-c-driver update PR: 296607 Reported by: Hiroo Ono <hiroo.ono+freebsd@gmail.com> (author) Approved by: Sergey A. Osokin <osa@FreeBSD.org> Approved by: osa, vvd (Mentors, implicit) --- www/freenginx-devel/Makefile | 5 +++-- www/freenginx-devel/Makefile.extmod | 7 +++++-- .../files/extra-patch-nginx-gridfs_config | 14 ++++++++++++++ .../extra-patch-ngnx-gridfs_ngx_http_gridfs_module.c | 20 ++++++++++++++++++++ 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/www/freenginx-devel/Makefile b/www/freenginx-devel/Makefile index f11b27ecd67a..ba5f4aea40be 100644 --- a/www/freenginx-devel/Makefile +++ b/www/freenginx-devel/Makefile @@ -1,7 +1,7 @@ PORTNAME= freenginx PORTVERSION= ${NGINX_VERSION} .include "version.mk" -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= www MASTER_SITES= https://freenginx.org/download/ \ LOCAL/osa @@ -284,7 +284,8 @@ post-patch-FASTDFS-on: ${WRKSRC_fastdfs}/src/config post-patch-GRIDFS-on: - @${REINPLACE_CMD} 's!\/usr!${LOCALBASE}!g' \ + @${REINPLACE_CMD} -e 's!%%LOCALBASE%%!${LOCALBASE}!g' \ + -e 's!%%MONGOC_VERSION%%!${MONGOC_VERSION}!g' \ ${WRKSRC_gridfs}/nginx-gridfs/config post-patch-HTTP_AUTH_KRB5-on: diff --git a/www/freenginx-devel/Makefile.extmod b/www/freenginx-devel/Makefile.extmod index a42625924f42..c4118959c5d1 100644 --- a/www/freenginx-devel/Makefile.extmod +++ b/www/freenginx-devel/Makefile.extmod @@ -70,9 +70,12 @@ FORMINPUT_IMPLIES= DEVEL_KIT FORMINPUT_VARS= DSO_EXTMODS+=forminput GRIDFS_GH_TUPLE= nieoding:nginx-gridfs:059bdc3:gridfs -GRIDFS_LIB_DEPENDS= libbson-1.0.so:devel/libbson \ - libmongoc-1.0.so:devel/mongo-c-driver +GRIDFS_LIB_DEPENDS= libbson2.so:devel/libbson \ + libmongoc2.so:devel/mongo-c-driver GRIDFS_VARS= DSO_EXTMODS+=gridfs GRIDFS_SUBDIR=/nginx-gridfs +MONGOC_VERSION!= cd ${.CURDIR}/../../devel/mongo-c-driver; make -V DISTVERSION +GRIDFS_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-nginx-gridfs_config \ + ${PATCHDIR}/extra-patch-ngnx-gridfs_ngx_http_gridfs_module.c HEADERS_MORE_GH_TUPLE= openresty:headers-more-nginx-module:v0.39:headers_more HEADERS_MORE_VARS= DSO_EXTMODS+=headers_more diff --git a/www/freenginx-devel/files/extra-patch-nginx-gridfs_config b/www/freenginx-devel/files/extra-patch-nginx-gridfs_config new file mode 100644 index 000000000000..01c37fda60b1 --- /dev/null +++ b/www/freenginx-devel/files/extra-patch-nginx-gridfs_config @@ -0,0 +1,14 @@ +--- ../nginx-gridfs-059bdc3/nginx-gridfs/config.orig 2026-07-07 12:40:20.001344000 +0000 ++++ ../nginx-gridfs-059bdc3/nginx-gridfs/config 2026-07-07 12:41:06.850920000 +0000 +@@ -1,7 +1,7 @@ + ngx_module_type=HTTP + ngx_module_name=ngx_http_gridfs_module +-ngx_module_incs="/usr/include/libmongoc-1.0 /usr/include/libbson-1.0" +-ngx_module_libs="-lmongoc-1.0 -lbson-1.0" ++ngx_module_incs="%%LOCALBASE%%/include/mongoc-%%MONGOC_VERSION%% %%LOCALBASE%%/include/bson-%%MONGOC_VERSION%%" ++ngx_module_libs="-lmongoc2 -lbson2" + ngx_module_srcs="$ngx_addon_dir/ngx_http_gridfs_module.c" + . auto/module +-ngx_addon_name=$ngx_module_name +\ No newline at end of file ++ngx_addon_name=$ngx_module_name diff --git a/www/freenginx-devel/files/extra-patch-ngnx-gridfs_ngx_http_gridfs_module.c b/www/freenginx-devel/files/extra-patch-ngnx-gridfs_ngx_http_gridfs_module.c new file mode 100644 index 000000000000..765dd2b067ff --- /dev/null +++ b/www/freenginx-devel/files/extra-patch-ngnx-gridfs_ngx_http_gridfs_module.c @@ -0,0 +1,20 @@ +--- ../nginx-gridfs-059bdc3/nginx-gridfs/ngx_http_gridfs_module.c.orig 2018-01-20 07:53:32.000000000 +0000 ++++ ../nginx-gridfs-059bdc3/nginx-gridfs/ngx_http_gridfs_module.c 2026-07-07 14:27:08.501699000 +0000 +@@ -1,7 +1,7 @@ + #include <ngx_config.h> + #include <ngx_core.h> + #include <ngx_http.h> +-#include <mongoc.h> ++#include <mongoc/mongoc.h> + #include <signal.h> + #include <stdio.h> + +@@ -361,7 +361,7 @@ + bson_init(&filter); + bson_oid_init_from_string(&oid, (const char*)value); + bson_append_oid(&filter, "_id", -1, &oid); +- gfile = mongoc_gridfs_find_one(gridfs, &filter, &error); ++ gfile = mongoc_gridfs_find_one_with_opts(gridfs, &filter, NULL, &error); + + bson_destroy (&filter); +home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a71d13f.1eb4e.7b4927fb>
