commit: 902c162a7ed7f479e86f126c5a97921c618bf43b Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Jul 24 12:30:46 2023 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Jul 24 12:34:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=902c162a
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 <AT> gentoo.org> dev-libs/mongo-c-driver/mongo-c-driver-1.18.0-r1.ebuild | 9 +++++++-- 1 file 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