git: 8509a36ab7df - main - devel/mongo-c-driver: Fix build with sphinx 9.0.4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 26 Jun 2026 17:26:00 UTC
The branch main has been updated by makc:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8509a36ab7dfcb5411be25b54e1b395d78bcfa05
commit 8509a36ab7dfcb5411be25b54e1b395d78bcfa05
Author: Hiroo Ono <hiroo.ono+freebsd@gmail.com>
AuthorDate: 2026-06-26 17:23:11 +0000
Commit: Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-06-26 17:23:11 +0000
devel/mongo-c-driver: Fix build with sphinx 9.0.4
PR: 284845
---
.../files/patch-build_sphinx_mongoc__common.py | 25 ++++++++++++++++++++++
devel/mongo-c-driver/pkg-plist | 10 ++++-----
2 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/devel/mongo-c-driver/files/patch-build_sphinx_mongoc__common.py b/devel/mongo-c-driver/files/patch-build_sphinx_mongoc__common.py
new file mode 100644
index 000000000000..8fb833601579
--- /dev/null
+++ b/devel/mongo-c-driver/files/patch-build_sphinx_mongoc__common.py
@@ -0,0 +1,25 @@
+--- build/sphinx/mongoc_common.py.orig 2026-02-03 15:13:43 UTC
++++ build/sphinx/mongoc_common.py
+@@ -146,17 +146,17 @@ def generate_html_redirs(app: Sphinx, page: str, templ
+ redirect_file = out_index_html.parent.parent / f"{slug}.html"
+ # HACK: handle_page() is not properly reentrant. Save and restore state for
+ # this page while we generate our redirects page:
+- prev_scripts = builder.script_files[:]
+- prev_css = builder.css_files[:]
++ prev_scripts = builder.globalcontext['script_files'][:]
++ prev_css = builder.globalcontext['css_files'][:]
+ builder.handle_page(
+ f"redirect-for-{page}",
+ {"target": page, "writing-redirect": 1},
+ str(Path(__file__).parent.resolve() / "redirect.t.html"),
+- str(redirect_file),
++ outfilename=str(redirect_file),
+ )
+ # Restore prior state:
+- builder.script_files[:] = prev_scripts
+- builder.css_files[:] = prev_css
++ builder.globalcontext['script_files'][:] = prev_scripts
++ builder.globalcontext['css_files'][:] = prev_css
+ sphinx_log.debug("Wrote redirect: %r -> %r", path, page)
+
+ def mongoc_common_setup(app: Sphinx):
diff --git a/devel/mongo-c-driver/pkg-plist b/devel/mongo-c-driver/pkg-plist
index 4066cee6e1bf..599eb8dcbee5 100644
--- a/devel/mongo-c-driver/pkg-plist
+++ b/devel/mongo-c-driver/pkg-plist
@@ -71,15 +71,14 @@ lib/libmongoc-static-1.0.a
libdata/pkgconfig/libmongoc-1.0.pc
%%SSL%%libdata/pkgconfig/libmongoc-ssl-1.0.pc
libdata/pkgconfig/libmongoc-static-1.0.pc
-%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/_sphinx_javascript_frameworks_compat.js
+%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/base-stemmer.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/basic.css
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/debug.css
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/design-tabs.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/doctools.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/documentation_options.js
+%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/english-stemmer.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/file.png
-%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/jquery-3.6.0.js
-%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/jquery.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/language_data.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/minus.png
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/plus.png
@@ -91,14 +90,12 @@ libdata/pkgconfig/libmongoc-static-1.0.pc
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/searchtools.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/skeleton.css
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/sphinx_highlight.js
-%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/sphinx-design.4cbf315f70debaebd550c87a6162cf0f.min.css
+%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/sphinx-design.min.css
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/styles/furo-extensions.css
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/styles/furo-extensions.css.map
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/styles/furo.css
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/styles/furo.css.map
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/styles.css
-%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/underscore-1.13.1.js
-%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/_static/underscore.js
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/api/index.html
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/api.html
%%PORTDOCS%%%%DOCSDIR%%/mongo-c-driver/html/application-performance-monitoring/index.html
@@ -2489,5 +2486,6 @@ libdata/pkgconfig/libmongoc-static-1.0.pc
%%DATADIR%%/NEWS
%%DATADIR%%/README.rst
%%DATADIR%%/THIRD_PARTY_NOTICES
+%%PORTDOCS%%@dir %%DOCSDIR%%/mongo-c-driver/html/_sources
%%PORTDOCS%%@dir %%DOCSDIR%%/mongo-c-driver/html/_sphinx_design_static
%%PORTDOCS%%@dir %%DOCSDIR%%/mongo-c-driver/html/index