From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A57FF158170 for ; Wed, 17 Jul 2024 13:27:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BBB112BC1FF; Wed, 17 Jul 2024 13:27:16 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A59692BC1FF for ; Wed, 17 Jul 2024 13:27:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E51A0342FB6 for ; Wed, 17 Jul 2024 13:27:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2EF891603 for ; Wed, 17 Jul 2024 13:27:14 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1721222765.d5603fb21d4c3303aa29e3b1641d9349ec21628c.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/c-ares/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-dns/c-ares/c-ares-1.32.2.ebuild X-VCS-Directories: net-dns/c-ares/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: d5603fb21d4c3303aa29e3b1641d9349ec21628c X-VCS-Branch: master Date: Wed, 17 Jul 2024 13:27:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f0dc6448-611a-4fd7-9723-d29efc7154a9 X-Archives-Hash: 11ab4455ec691f17558a74ab0f46725a commit: d5603fb21d4c3303aa29e3b1641d9349ec21628c Author: Fabian Groffen gentoo org> AuthorDate: Wed Jul 17 13:24:03 2024 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Wed Jul 17 13:26:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5603fb2 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 gentoo.org> net-dns/c-ares/c-ares-1.32.2.ebuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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