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 B872C1382C5 for ; Fri, 22 May 2020 10:39:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9234E08A2; Fri, 22 May 2020 10:39:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 B0AE8E08A2 for ; Fri, 22 May 2020 10:39:28 +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 5846C34EFEE for ; Fri, 22 May 2020 10:39:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5EEFE23E for ; Fri, 22 May 2020 10:39:24 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1590143947.d0c8542b2ea3b6234c50e78c0067713202f4eb18.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: gcc-config X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: d0c8542b2ea3b6234c50e78c0067713202f4eb18 X-VCS-Branch: master Date: Fri, 22 May 2020 10:39:24 +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: ae29b325-9197-4d88-9cf7-9c2944a608f5 X-Archives-Hash: 47ca327bdcf27f35f49cf0259129bd06 commit: d0c8542b2ea3b6234c50e78c0067713202f4eb18 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri May 22 10:39:07 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri May 22 10:39:07 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=d0c8542b gcc-config: add facts around tool names Signed-off-by: Sergei Trofimovich gentoo.org> gcc-config | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gcc-config b/gcc-config index 95d2632..87f466c 100755 --- a/gcc-config +++ b/gcc-config @@ -235,6 +235,29 @@ update_wrappers() { # for new functionality (like a version bump). local x CTARGET=$1 + # Facts on gcc's private binary dir contents: + # + # Native directory looks like: + # /usr/x86_64-pc-linux-gnu/gcc-bin/11.0.0 + # Contents looks like: + # - 'foo' ('gcc', 'c++', 'gcc-ar', 'lto-dump') + # - 'foo-${v}' (go-11, gofmt-11) + # - ${CTARGET}-foo (${CTARGET}-gcc + # + # Not each 'foo' has it's ${CTARGET}-foo match. + # Examples are: + # - lto-dump, gcov-dump, gcov-tool (no ${CTARGET}-lto-dump equvalent) + # - go-${MAJOR}, gofmt-${MAJOR} (no ${CTARGET}-go-${MAJOR} equivalent) + # - ${CTARGET}-gcc-11.0.0 (no gcc-11.0.0 equivalent) + # TODO: is it a gcc or toolchain.eclass bug? + # + # Cross directory looks liks: + # /usr/x86_64-pc-linux-gnu/ia64-unknown-linux-gnu/gcc-bin/10.1.0 + # Contents look like: + # - ${CTARGET}-foo (${CTARGET}-gcc + # + # Every tool is prefixed. + # Use the old dir to see what we wrapped up previously. local old_wrappers=( $( [[ -n ${OLD_GCC_PATH} ]] || exit 1