summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-07-17 15:24:03 +0200
committerFabian Groffen <grobian@gentoo.org>2024-07-17 15:26:05 +0200
commitd5603fb21d4c3303aa29e3b1641d9349ec21628c (patch)
tree91519aecb78b7962cbba427b6dbaf77fcf12c22c /net-dns
parentdev-ruby/rouge: Stabilize 4.2.1 amd64, #936205 (diff)
downloadgentoo-d5603fb21d4c3303aa29e3b1641d9349ec21628c.tar.gz
gentoo-d5603fb21d4c3303aa29e3b1641d9349ec21628c.tar.bz2
gentoo-d5603fb21d4c3303aa29e3b1641d9349ec21628c.zip
net-dns/c-ares-1.32.2: fix for Darwin
macOS system headers are a bit messy nowadays, provide workaround for missing bool definition and disable non-Prefix system integration Closes: https://bugs.gentoo.org/935818 Closes: https://bugs.gentoo.org/932809 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/c-ares/c-ares-1.32.2.ebuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-dns/c-ares/c-ares-1.32.2.ebuild b/net-dns/c-ares/c-ares-1.32.2.ebuild
index d6ad901bd330..64e6e1c4f5b7 100644
--- a/net-dns/c-ares/c-ares-1.32.2.ebuild
+++ b/net-dns/c-ares/c-ares-1.32.2.ebuild
@@ -48,6 +48,20 @@ A__QA_CONFIG_IMPL_DECL_SKIP=(
ConvertInterfaceLuidToNameA
)
+src_prepare() {
+ default
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ # warnings are default, but enable -std=c90 which doesn't define
+ # 'bool' which is a type used/assumed in macOS system headers
+ sed -i -e 's/-std=c90/& -Dbool=int/' configure{.ac,} || die
+ # sysconfig integration requires deep framework compatibility
+ # and is not really desired in Prefix
+ sed -i -e 's/__APPLE__/__DISABLED__/' \
+ src/lib/ares_sysconfig_mac.c || die
+ fi
+}
+
multilib_src_configure() {
local myeconfargs=(
--enable-symbol-hiding