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 34B67158087 for ; Fri, 14 Jan 2022 18:47:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 292BF2BC009; Fri, 14 Jan 2022 18:47:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 40B852BC009 for ; Fri, 14 Jan 2022 18:47:45 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 750793433CB for ; Fri, 14 Jan 2022 18:47:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 90802D0 for ; Fri, 14 Jan 2022 18:47:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1642186023.bdc76112c33f0cc7606a88be8e3d4c7498b29cc7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/gdb/gdb-10.2-r1.ebuild sys-devel/gdb/gdb-11.1.ebuild sys-devel/gdb/gdb-9999.ebuild X-VCS-Directories: sys-devel/gdb/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bdc76112c33f0cc7606a88be8e3d4c7498b29cc7 X-VCS-Branch: master Date: Fri, 14 Jan 2022 18:47:41 +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: 3edef822-7995-454d-a84c-4e1992f3af96 X-Archives-Hash: 037fb22df02306c502095686ec014011 commit: bdc76112c33f0cc7606a88be8e3d4c7498b29cc7 Author: Adrian Ratiu collabora com> AuthorDate: Fri Jan 14 17:42:24 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jan 14 18:47:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdc76112 sys-devel/gdb: fix GCC/Clang build mixture GDB configure will use a mix of GCC and Clang due to $GCC_FOR_TARGET defaulting to GCC in Clang-configured builds, so set the var to ensure the proper compilers are detected and to avoid mixing them. Before setting the variable (example from ChromiumOS): checking for x86_64-cros-linux-gnu-gcc... x86_64-cros-linux-gnu-gcc After: checking for gcc... (cached) x86_64-cros-linux-gnu-clang Bug: https://bugs.gentoo.org/831202 Signed-off-by: Adrian Ratiu collabora.com> Closes: https://github.com/gentoo/gentoo/pull/23796 Signed-off-by: Sam James gentoo.org> sys-devel/gdb/gdb-10.2-r1.ebuild | 3 +++ sys-devel/gdb/gdb-11.1.ebuild | 3 +++ sys-devel/gdb/gdb-9999.ebuild | 3 +++ 3 files changed, 9 insertions(+) diff --git a/sys-devel/gdb/gdb-10.2-r1.ebuild b/sys-devel/gdb/gdb-10.2-r1.ebuild index 1978ab28268d..19f08197ce03 100644 --- a/sys-devel/gdb/gdb-10.2-r1.ebuild +++ b/sys-devel/gdb/gdb-10.2-r1.ebuild @@ -188,6 +188,9 @@ src_configure() { # source-highlight is detected with pkg-config: bug #716558 export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" + # ensure proper compiler is detected for Clang builds: bug #831202 + export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" + econf "${myconf[@]}" } diff --git a/sys-devel/gdb/gdb-11.1.ebuild b/sys-devel/gdb/gdb-11.1.ebuild index 022f3be33ce7..3933cc2776b8 100644 --- a/sys-devel/gdb/gdb-11.1.ebuild +++ b/sys-devel/gdb/gdb-11.1.ebuild @@ -193,6 +193,9 @@ src_configure() { # source-highlight is detected with pkg-config: bug #716558 export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" + # ensure proper compiler is detected for Clang builds: bug #831202 + export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" + econf "${myconf[@]}" } diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild index 462b5c95a692..1725c16abdac 100644 --- a/sys-devel/gdb/gdb-9999.ebuild +++ b/sys-devel/gdb/gdb-9999.ebuild @@ -192,6 +192,9 @@ src_configure() { # source-highlight is detected with pkg-config: bug #716558 export ac_cv_path_pkg_config_prog_path="$(tc-getPKG_CONFIG)" + # ensure proper compiler is detected for Clang builds: bug #831202 + export GCC_FOR_TARGET="${CC_FOR_TARGET:-$(tc-getCC)}" + econf "${myconf[@]}" }