diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-07-24 14:30:46 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-07-24 14:34:51 +0200 |
commit | 902c162a7ed7f479e86f126c5a97921c618bf43b (patch) | |
tree | 0441d9e916fd3c836b93356ac0c31ff3d059e8a8 /dev-libs | |
parent | dev-python/canonicaljson: Remove old (diff) | |
download | gentoo-902c162a7ed7f479e86f126c5a97921c618bf43b.tar.gz gentoo-902c162a7ed7f479e86f126c5a97921c618bf43b.tar.bz2 gentoo-902c162a7ed7f479e86f126c5a97921c618bf43b.zip |
dev-libs/mongo-c-driver: Fix support for sphinx-5+
Strip -W flag that turns warnings into errors, in order to permit
building manpages with >=dev-python/sphinx-5. I understand that it was
so hard to do this throughout the last year.
Closes: https://bugs.gentoo.org/892721
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/mongo-c-driver/mongo-c-driver-1.18.0-r1.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.18.0-r1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.18.0-r1.ebuild index 752bb1e91e55..e2bf1455e790 100644 --- a/dev-libs/mongo-c-driver/mongo-c-driver-1.18.0-r1.ebuild +++ b/dev-libs/mongo-c-driver/mongo-c-driver-1.18.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -23,7 +23,6 @@ RESTRICT="x86? ( test ) RDEPEND="app-arch/snappy:= app-arch/zstd:= >=dev-libs/libbson-${PV}[static-libs?] - <dev-python/sphinx-5 sys-libs/zlib:= icu? ( dev-libs/icu:= ) sasl? ( dev-libs/cyrus-sasl:= ) @@ -35,6 +34,9 @@ DEPEND="${RDEPEND} dev-db/mongodb dev-libs/libbson[static-libs] )" +BDEPEND=" + dev-python/sphinx +" PATCHES=( "${FILESDIR}/${PN}-1.14.0-no-docs.patch" @@ -44,6 +46,9 @@ PATCHES=( src_prepare() { cmake_src_prepare + # sphinx's -Werror + sed -i -e 's:-qEW:-qE:' build/cmake/SphinxBuild.cmake || die + # copy private headers for tests since we don't build libbson if use test; then mkdir -p src/libbson/tests/bson || die |