net-dns/c-ares: workaround new gtest

Bug: https://github.com/c-ares/c-ares/issues/993
Closes: https://bugs.gentoo.org/957945
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-06-16 03:22:47 +01:00
parent 98d51d8455
commit a163f56847
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 14 additions and 6 deletions

View File

@ -5,7 +5,7 @@ EAPI=8
# Both Daniel and Brad are listed as possible signers on the homepage
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
inherit edo multilib-minimal verify-sig
inherit edo flag-o-matic multilib-minimal verify-sig
DESCRIPTION="C library that resolves names asynchronously"
HOMEPAGE="https://c-ares.org/"
@ -22,9 +22,8 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390
IUSE="static-libs test"
RESTRICT="!test? ( test )"
# <gtest-1.17.0: bug #957945
BDEPEND="
test? ( <dev-cpp/gtest-1.17.0 )
test? ( dev-cpp/gtest )
verify-sig? ( sec-keys/openpgp-keys-bradhouse )
"
@ -65,6 +64,11 @@ src_prepare() {
fi
}
src_configure() {
use test && append-cxxflags -std=gnu++17
multilib-minimal_src_configure
}
multilib_src_configure() {
local myeconfargs=(
--enable-symbol-hiding

View File

@ -5,7 +5,7 @@ EAPI=8
# Both Daniel and Brad are listed as possible signers on the homepage
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/bradhouse.asc
inherit edo multilib-minimal verify-sig
inherit edo flag-o-matic multilib-minimal verify-sig
DESCRIPTION="C library that resolves names asynchronously"
HOMEPAGE="https://c-ares.org/"
@ -22,9 +22,8 @@ KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390
IUSE="static-libs test"
RESTRICT="!test? ( test )"
# <gtest-1.17.0: bug #957945
BDEPEND="
test? ( <dev-cpp/gtest-1.17.0 )
test? ( dev-cpp/gtest )
verify-sig? ( sec-keys/openpgp-keys-bradhouse )
"
@ -65,6 +64,11 @@ src_prepare() {
fi
}
src_configure() {
use test && append-cxxflags -std=gnu++17
multilib-minimal_src_configure
}
multilib_src_configure() {
local myeconfargs=(
--enable-symbol-hiding