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 8DB9D158086 for ; Fri, 7 Jan 2022 13:08:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A14C12BC010; Fri, 7 Jan 2022 13:08:32 +0000 (UTC) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E0EA92BC002 for ; Fri, 7 Jan 2022 13:08:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1641560903; bh=PgsPYeDtL8fBoUsWHh/lAc/KPxHMFSgQkki5RVXw/TA=; h=From:To:Cc:Subject:Date:From; b=k21j+b7bgWVfoD/7Nq7vCUI2+WL1uIOoAY9M53NNBjoop4C/4cr3IS7Y5TosfPKQ1 B0LviQzzz4awX3ZI1PJZXT7hoe6Q5qC/QiyZrkk2dxvJzKn9DQzgiTCWgMEyy+I0In L2kMMfOhXe7NmbUwoL7ReK43K2SA0EanP16LevWS8M40V0g2twqUZi+OnAlwFqlKR4 teGF43X1NzNuCe8fO1hE2CEE+yRvpnZSzCb6R1+B/TBJKtqhLTUh4b7MwHBgC9NCwC evHOC3mKF9drMPGgtb6g1uRi3Fb0noEsfEFhJeNc/boxj0GVkpi1EFMifmzIfieOiE 7yc8S4h7C0Ynw== From: Adrian Ratiu To: gentoo-dev@lists.gentoo.org Cc: vapier@chromium.org, Lars Wendler , Sam James Subject: [gentoo-dev] [PATCH] media-libs/freetype: fix GCC usage during configure Date: Fri, 7 Jan 2022 15:08:13 +0200 Message-Id: <20220107130813.1655260-1-adrian.ratiu@collabora.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 110b37b7-f6cf-4cf4-8568-ae5c39efab01 X-Archives-Hash: 87e66a89a99cb7b84c08d446e30c9593 If $CC_BUILD is not set, configure defaults to GCC for some of its tests causing clang builds to use a mixture of the two compilers instead of using just clang consistently. Here is an example before and after setting CC_BUILD (this is actually from ChromiumOS where this was first detected). before: checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc checking for suffix of native executables... after: checking for x86_64-pc-linux-gnu-gcc... x86_64-cros-linux-gnu-clang checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-cros-linux-gnu-clang checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-cros-linux-gnu-clang checking for suffix of native executables... Signed-off-by: Adrian Ratiu --- media-libs/freetype/freetype-2.11.0-r1.ebuild | 2 ++ media-libs/freetype/freetype-2.11.0-r2.ebuild | 2 ++ media-libs/freetype/freetype-2.11.1.ebuild | 2 ++ media-libs/freetype/freetype-9999.ebuild | 2 ++ 4 files changed, 8 insertions(+) diff --git a/media-libs/freetype/freetype-2.11.0-r1.ebuild b/media-libs/freetype/freetype-2.11.0-r1.ebuild index b4e9e81a703..c9d88a7e108 100644 --- a/media-libs/freetype/freetype-2.11.0-r1.ebuild +++ b/media-libs/freetype/freetype-2.11.0-r1.ebuild @@ -203,6 +203,8 @@ multilib_src_configure() { *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; esac + export CC_BUILD="$(tc-getBUILD_CC)" + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" } diff --git a/media-libs/freetype/freetype-2.11.0-r2.ebuild b/media-libs/freetype/freetype-2.11.0-r2.ebuild index 658322e92af..27f4cfde1ab 100644 --- a/media-libs/freetype/freetype-2.11.0-r2.ebuild +++ b/media-libs/freetype/freetype-2.11.0-r2.ebuild @@ -204,6 +204,8 @@ multilib_src_configure() { *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; esac + export CC_BUILD="$(tc-getBUILD_CC)" + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" } diff --git a/media-libs/freetype/freetype-2.11.1.ebuild b/media-libs/freetype/freetype-2.11.1.ebuild index d0c71e729b9..7e891890302 100644 --- a/media-libs/freetype/freetype-2.11.1.ebuild +++ b/media-libs/freetype/freetype-2.11.1.ebuild @@ -195,6 +195,8 @@ multilib_src_configure() { *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; esac + export CC_BUILD="$(tc-getBUILD_CC)" + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" } diff --git a/media-libs/freetype/freetype-9999.ebuild b/media-libs/freetype/freetype-9999.ebuild index d0c71e729b9..7e891890302 100644 --- a/media-libs/freetype/freetype-9999.ebuild +++ b/media-libs/freetype/freetype-9999.ebuild @@ -195,6 +195,8 @@ multilib_src_configure() { *) myeconfargs+=( ac_cv_prog_RC= ac_cv_prog_ac_ct_RC= ) ;; esac + export CC_BUILD="$(tc-getBUILD_CC)" + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" } -- 2.34.1