From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D1A4715800A for ; Fri, 23 May 2025 18:59:19 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id BCF6E3436A1 for ; Fri, 23 May 2025 18:59:19 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 5356B11047E; Fri, 23 May 2025 18:59:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 4B02611047E for ; Fri, 23 May 2025 18:59:13 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F206E343677 for ; Fri, 23 May 2025 18:59:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9198F275F for ; Fri, 23 May 2025 18:59:11 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1748026744.0cd5afe4bd2b823721c0a7d7a5750fd15b6edf5c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/tests/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/tests/llvm-utils.sh X-VCS-Directories: eclass/tests/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0cd5afe4bd2b823721c0a7d7a5750fd15b6edf5c X-VCS-Branch: master Date: Fri, 23 May 2025 18:59:11 +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: aea23acd-9821-4bd0-87be-2967fc549b64 X-Archives-Hash: 59d06c297379919e73651fafa4166753 commit: 0cd5afe4bd2b823721c0a7d7a5750fd15b6edf5c Author: Michał Górny gentoo org> AuthorDate: Thu May 22 17:42:56 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri May 23 18:59:04 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cd5afe4 eclass/tests/llvm-utils.sh: Fix testing without old clang Signed-off-by: Michał Górny gentoo.org> Part-of: https://github.com/gentoo/gentoo/pull/42214 Signed-off-by: Michał Górny gentoo.org> eclass/tests/llvm-utils.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eclass/tests/llvm-utils.sh b/eclass/tests/llvm-utils.sh index 6fe3da3eda13..4ba767a442f2 100755 --- a/eclass/tests/llvm-utils.sh +++ b/eclass/tests/llvm-utils.sh @@ -81,6 +81,15 @@ test_prepend_path() { tend ${?} } +TMPDIR=$(mktemp -d) +trap 'rm -r "${TMPDIR}"' EXIT + +for x in clang-19 clang-17 clang++-17 x86_64-pc-linux-gnu-clang-17; do + > "${TMPDIR}/${x}" || die +done +chmod +x "${TMPDIR}"/* || die +export PATH=${TMPDIR}:${PATH} + test_fix_clang_version CC clang 19.0.0git78b4e7c5 clang-19 test_fix_clang_version CC clang 17.0.6 clang-17 test_fix_clang_version CXX clang++ 17.0.6 clang++-17