summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-04-21 19:26:26 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-04-21 19:26:35 +0200
commit09f8e9f297b0ab0451db26d4cc52caee06cfee46 (patch)
tree2a76a81bf0e9a5aa60322214f8217c04d7b92a6b /dev-libs
parentdev-libs/libbson: fix building against >=sphinx-3 (diff)
downloadgentoo-09f8e9f297b0ab0451db26d4cc52caee06cfee46.tar.gz
gentoo-09f8e9f297b0ab0451db26d4cc52caee06cfee46.tar.bz2
gentoo-09f8e9f297b0ab0451db26d4cc52caee06cfee46.zip
dev-libs/mongo-c-driver: fix building against >=sphinx-3
Closes: https://bugs.gentoo.org/716774 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/mongo-c-driver/files/mongo-c-driver-1.16.2-sphinx.patch19
-rw-r--r--dev-libs/mongo-c-driver/mongo-c-driver-1.16.2.ebuild1
2 files changed, 20 insertions, 0 deletions
diff --git a/dev-libs/mongo-c-driver/files/mongo-c-driver-1.16.2-sphinx.patch b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.16.2-sphinx.patch
new file mode 100644
index 000000000000..7a165b61c59a
--- /dev/null
+++ b/dev-libs/mongo-c-driver/files/mongo-c-driver-1.16.2-sphinx.patch
@@ -0,0 +1,19 @@
+https://bugs.gentoo.org/716774
+
+--- a/build/sphinx/taglist.py
++++ b/build/sphinx/taglist.py
+@@ -24,7 +24,12 @@ THE SOFTWARE.
+ """
+
+ from docutils import nodes, utils
+-from sphinx.environment import NoUri
++
++try:
++ from sphinx.environment import NoUri
++except ImportError:
++ from sphinx.errors import NoUri
++
+ try:
+ from sphinx.util.compat import Directive
+ except ImportError:
+
diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.16.2.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.16.2.ebuild
index 66adfafad3a1..e5f55ceb6252 100644
--- a/dev-libs/mongo-c-driver/mongo-c-driver-1.16.2.ebuild
+++ b/dev-libs/mongo-c-driver/mongo-c-driver-1.16.2.ebuild
@@ -41,6 +41,7 @@ PATCHES=(
"${FILESDIR}/${PN}-1.14.0-no-docs.patch"
"${FILESDIR}/${PN}-1.16.2-enable-tests.patch" # enable tests with system libbson
"${FILESDIR}/${PN}-1.16.2-single-doc-job.patch"
+ "${FILESDIR}/${PN}-1.16.2-sphinx.patch"
)
src_prepare() {