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 886C5158094 for ; Tue, 20 Sep 2022 11:07:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4F74E0AE2; Tue, 20 Sep 2022 11:07:02 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC1F0E0AE2 for ; Tue, 20 Sep 2022 11:07:02 +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 DD98633D3C1 for ; Tue, 20 Sep 2022 11:07:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7F7B65D9 for ; Tue, 20 Sep 2022 11:07:00 +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: <1663671955.7381ca9a9ba676f88dfbf9d0d54b0716b53a576f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm-toolchain-symlinks/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16.ebuild sys-devel/llvm-toolchain-symlinks/metadata.xml X-VCS-Directories: sys-devel/llvm-toolchain-symlinks/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7381ca9a9ba676f88dfbf9d0d54b0716b53a576f X-VCS-Branch: master Date: Tue, 20 Sep 2022 11:07:00 +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: 54df5606-6a20-4ced-8355-5414c6b7f1eb X-Archives-Hash: 3225d7523791a4157e56256f37eb943e commit: 7381ca9a9ba676f88dfbf9d0d54b0716b53a576f Author: Michał Górny gentoo org> AuthorDate: Mon Sep 19 09:11:39 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Sep 20 11:05:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7381ca9a sys-devel/llvm-toolchain-symlinks: New package for binutils-free sys New package that installs generic tool symlinks to LLVM tools, for use on binutils-free systems. Signed-off-by: Michał Górny gentoo.org> .../llvm-toolchain-symlinks-16.ebuild | 43 ++++++++++++++++++++++ sys-devel/llvm-toolchain-symlinks/metadata.xml | 17 +++++++++ 2 files changed, 60 insertions(+) diff --git a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16.ebuild b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16.ebuild new file mode 100644 index 000000000000..117dff32e17b --- /dev/null +++ b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022 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" +SRC_URI="" +S=${WORKDIR} + +LICENSE="public-domain" +SLOT="${PV}" +KEYWORDS="" +PROPERTIES="live" +IUSE="+native-symlinks" + +RDEPEND=" + sys-devel/llvm:${SLOT} +" + +src_install() { + use native-symlinks || return + + local tools=( + addr2line ar dlltool nm objcopy objdump ranlib readelf size + strings strip windres + ) + + local abi t + local dest=/usr/lib/llvm/${SLOT}/bin + dodir "${dest}" + for t in "${tools[@]}"; do + dosym "llvm-${t}" "${dest}/${t}" + done + for abi in $(get_all_abis); do + local abi_chost=$(get_abi_CHOST "${abi}") + for t in "${tools[@]}"; do + dosym "llvm-${t}" "${dest}/${abi_chost}-${t}" + done + done +} diff --git a/sys-devel/llvm-toolchain-symlinks/metadata.xml b/sys-devel/llvm-toolchain-symlinks/metadata.xml new file mode 100644 index 000000000000..c6260bb7fb74 --- /dev/null +++ b/sys-devel/llvm-toolchain-symlinks/metadata.xml @@ -0,0 +1,17 @@ + + + + + llvm@gentoo.org + + + + Install generic tool symlinks like 'objdump' and 'ranlib', + as well as ${CTARGET}-*. These symlinks are installed + into slotted LLVM bindir, so they should not take precedence + over symlinks installed into /usr/bin + by sys-devel/binutils-config but they can be + helpful for binutils-free setups. + + +