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 5DC9E1580E0 for ; Sat, 01 Feb 2025 08:06:05 +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 48379343194 for ; Sat, 01 Feb 2025 08:06:05 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 68589110472; Sat, 01 Feb 2025 08:06:00 +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 bobolink.gentoo.org (Postfix) with ESMTPS id 55C8D11046F for ; Sat, 01 Feb 2025 08:06:00 +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 0F457343068 for ; Sat, 01 Feb 2025 08:06:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 70DC82082 for ; Sat, 01 Feb 2025 08:05:58 +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: <1738397137.766cb241f185bf1e35a505bbe685ad6b02ff55b8.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: llvm-core/llvm-toolchain-symlinks/ X-VCS-Repository: repo/gentoo X-VCS-Files: llvm-core/llvm-toolchain-symlinks/llvm-toolchain-symlinks-21.ebuild X-VCS-Directories: llvm-core/llvm-toolchain-symlinks/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 766cb241f185bf1e35a505bbe685ad6b02ff55b8 X-VCS-Branch: master Date: Sat, 01 Feb 2025 08:05:58 +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: 96f94cb7-d798-4740-9ce7-2d360127f68a X-Archives-Hash: 84947fbb1ce1158119927109b9a0df3b commit: 766cb241f185bf1e35a505bbe685ad6b02ff55b8 Author: Michał Górny gentoo org> AuthorDate: Sat Feb 1 07:59:06 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Feb 1 08:05:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766cb241 llvm-core/llvm-toolchain-symlinks: main is now 21* Signed-off-by: Michał Górny gentoo.org> .../llvm-toolchain-symlinks-21.ebuild | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/llvm-core/llvm-toolchain-symlinks/llvm-toolchain-symlinks-21.ebuild b/llvm-core/llvm-toolchain-symlinks/llvm-toolchain-symlinks-21.ebuild new file mode 100644 index 000000000000..d0685cb7ad8d --- /dev/null +++ b/llvm-core/llvm-toolchain-symlinks/llvm-toolchain-symlinks-21.ebuild @@ -0,0 +1,48 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib + +DESCRIPTION="Symlinks to use LLVM on binutils-free system" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:LLVM" +S=${WORKDIR} + +LICENSE="public-domain" +SLOT="${PV}" +IUSE="multilib-symlinks +native-symlinks" + +RDEPEND=" + llvm-core/llvm:${SLOT} +" + +src_install() { + use native-symlinks || return + + local tools=( + addr2line ar dlltool nm objcopy objdump ranlib readelf size + strings strip windres + # https://bugs.gentoo.org/936068 + cxxfilt:c++filt + ) + local chosts=( "${CHOST}" ) + if use multilib-symlinks; then + local abi + for abi in $(get_all_abis); do + chosts+=( "$(get_abi_CHOST "${abi}")" ) + done + fi + + local chost t + local dest=/usr/lib/llvm/${SLOT}/bin + dodir "${dest}" + for t in "${tools[@]}"; do + dosym "llvm-${t%:*}" "${dest}/${t#*:}" + done + for chost in "${chosts[@]}"; do + for t in "${tools[@]}"; do + dosym "llvm-${t%:*}" "${dest}/${chost}-${t#*:}" + done + done +}