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 3E989139360 for ; Sat, 14 Aug 2021 01:43:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FB53E0959; Sat, 14 Aug 2021 01:43:09 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 714AAE0959 for ; Sat, 14 Aug 2021 01:43:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 69799342AEB for ; Sat, 14 Aug 2021 01:43:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 236E07B2 for ; Sat, 14 Aug 2021 01:43:07 +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: <1628905378.d0bced7586bcab1a00a8db11baae895bd4f0a646.sam@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: ebuild-writing/functions/src_compile/building/ X-VCS-Repository: proj/devmanual X-VCS-Files: ebuild-writing/functions/src_compile/building/text.xml X-VCS-Directories: ebuild-writing/functions/src_compile/building/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d0bced7586bcab1a00a8db11baae895bd4f0a646 X-VCS-Branch: master Date: Sat, 14 Aug 2021 01:43:07 +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: 220e1a9b-b3fd-4dcc-b2f4-42e77e1c78ed X-Archives-Hash: 507d4b161035fb89bd15249763c835fe commit: d0bced7586bcab1a00a8db11baae895bd4f0a646 Author: Sam James gentoo org> AuthorDate: Sun Aug 1 02:28:43 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Aug 14 01:42:58 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=d0bced75 ebuild-writing/functions/src_compile/building: don't call CC directly Bug: https://bugs.gentoo.org/243502 Bug: https://bugs.gentoo.org/726034 Signed-off-by: Sam James gentoo.org> Closes: https://github.com/gentoo/devmanual/pull/243 Signed-off-by: Sam James gentoo.org> ebuild-writing/functions/src_compile/building/text.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ebuild-writing/functions/src_compile/building/text.xml b/ebuild-writing/functions/src_compile/building/text.xml index f78c482..e1887ab 100644 --- a/ebuild-writing/functions/src_compile/building/text.xml +++ b/ebuild-writing/functions/src_compile/building/text.xml @@ -39,6 +39,15 @@ Other similar functions are available these are documented in man toolchain-funcs.eclass.

+

+Note that packages should always respect the user's CC preference +and must not rely on convenience symlinks such as /usr/bin/cc +or /usr/bin/gcc. A tracker +bug exists to document such issues. Additional documentation exists on the + +wiki. +

+ It is not correct to use the ${CC} variable for this purpose.