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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8B286138359 for ; Mon, 23 Nov 2020 20:55:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B131EE081B; Mon, 23 Nov 2020 20:55:46 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8F4FBE081B for ; Mon, 23 Nov 2020 20:55:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3755833BDE4 for ; Mon, 23 Nov 2020 20:55:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 77BB93B7 for ; Mon, 23 Nov 2020 20:55:43 +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: <1606164933.1705044f972d682f24cc6dd80707f844f2e32f16.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: sys-devel/gcc/gcc-10.1.0-r1.ebuild X-VCS-Directories: sys-devel/gcc/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 1705044f972d682f24cc6dd80707f844f2e32f16 X-VCS-Branch: master Date: Mon, 23 Nov 2020 20:55:43 +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: 5539c934-2a9b-4e05-a1e8-c2da8bf8539d X-Archives-Hash: 9c60b9e0d7be2d1d8617c15a14eb074b commit: 1705044f972d682f24cc6dd80707f844f2e32f16 Author: Fabian Groffen gentoo org> AuthorDate: Mon Nov 23 20:55:33 2020 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon Nov 23 20:55:33 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=1705044f sys-devel/gcc-10.1.0-r1: add fixincludes addition for darwin Package-Manager: Portage-3.0.10-prefix, Repoman-3.0.2 RepoMan-Options: --force Signed-off-by: Fabian Groffen gentoo.org> sys-devel/gcc/gcc-10.1.0-r1.ebuild | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/sys-devel/gcc/gcc-10.1.0-r1.ebuild b/sys-devel/gcc/gcc-10.1.0-r1.ebuild index 6709c606d0..4acd295e38 100644 --- a/sys-devel/gcc/gcc-10.1.0-r1.ebuild +++ b/sys-devel/gcc/gcc-10.1.0-r1.ebuild @@ -12,7 +12,9 @@ KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solar RDEPEND="" BDEPEND=" kernel_linux? ( ${CATEGORY}/binutils ) - kernel_Darwin? || ( ${CATEGORY}/binutils-apple ${CATEGORY}/native-cctools ) + kernel_Darwin? ( + || ( ${CATEGORY}/binutils-apple ${CATEGORY}/native-cctools ) + ) kernel_AIX? ( ${CATEGORY}/native-cctools )" src_prepare() { @@ -43,6 +45,21 @@ src_prepare() { libgcc/config/t-slibgcc-darwin || die fi + # for Darwin, allow compilation of anything using Authorization + # Framework (e.g. gnutls) + cat >> fixincludes/inclhack.def <<- EOF + /* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93082 */ + fix = { + hackname = darwin_authorization; + mach = "*-*-darwin*"; + files = Frameworks/Security.framework/Headers/Authorization.h; + select = "static const size_t kAuthorizationExternalFormLength = 32;\n"; + c_fix = format; + c_fix_arg = "enum { kAuthorizationExternalFormLength = 32 };\n"; + test_text = "static const size_t kAuthorizationExternalFormLength = 32;\n"; + }; + EOF + eapply_user }