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 EBBF9158020 for ; Thu, 13 Oct 2022 15:41:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D61DFE08A0; Thu, 13 Oct 2022 15:41:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C04B2E08A0 for ; Thu, 13 Oct 2022 15:41:19 +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 E53C7340D4C for ; Thu, 13 Oct 2022 15:41:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 04D8A5F1 for ; Thu, 13 Oct 2022 15:41:17 +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: <1665675671.5ec6220049870a8d8f097823a8e682b8fa1df823.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-14-r1.ebuild sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15-r1.ebuild sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15.ebuild sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16-r1.ebuild 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: 5ec6220049870a8d8f097823a8e682b8fa1df823 X-VCS-Branch: master Date: Thu, 13 Oct 2022 15:41:17 +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: 81657a0f-f66e-4b68-8fa7-5ff3384251b1 X-Archives-Hash: 5283d2efded48b8aae15dcc2dc427e08 commit: 5ec6220049870a8d8f097823a8e682b8fa1df823 Author: Michał Górny gentoo org> AuthorDate: Thu Oct 13 15:31:16 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Oct 13 15:41:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ec62200 sys-devel/llvm-toolchain-symlinks: Do not multilib by default Bug: https://bugs.gentoo.org/876901 Signed-off-by: Michał Górny gentoo.org> ...ks-14.ebuild => llvm-toolchain-symlinks-14-r1.ebuild} | 16 +++++++++++----- ...ks-15.ebuild => llvm-toolchain-symlinks-15-r1.ebuild} | 16 +++++++++++----- ...ks-16.ebuild => llvm-toolchain-symlinks-16-r1.ebuild} | 16 +++++++++++----- sys-devel/llvm-toolchain-symlinks/metadata.xml | 5 +++++ 4 files changed, 38 insertions(+), 15 deletions(-) diff --git a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14-r1.ebuild similarity index 71% rename from sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild rename to sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14-r1.ebuild index 9cc42ef77e31..8d59c568c625 100644 --- a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14.ebuild +++ b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-14-r1.ebuild @@ -13,7 +13,7 @@ S=${WORKDIR} LICENSE="public-domain" SLOT="${PV}" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" -IUSE="+native-symlinks" +IUSE="multilib-symlinks +native-symlinks" RDEPEND=" sys-devel/llvm:${SLOT} @@ -26,17 +26,23 @@ src_install() { addr2line ar dlltool nm objcopy objdump ranlib readelf size strings strip windres ) + 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 abi t + local chost 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 chost in "${chosts[@]}"; do for t in "${tools[@]}"; do - dosym "llvm-${t}" "${dest}/${abi_chost}-${t}" + dosym "llvm-${t}" "${dest}/${chost}-${t}" done done } diff --git a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15.ebuild b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15-r1.ebuild similarity index 71% rename from sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15.ebuild rename to sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15-r1.ebuild index 9cc42ef77e31..8d59c568c625 100644 --- a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15.ebuild +++ b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-15-r1.ebuild @@ -13,7 +13,7 @@ S=${WORKDIR} LICENSE="public-domain" SLOT="${PV}" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" -IUSE="+native-symlinks" +IUSE="multilib-symlinks +native-symlinks" RDEPEND=" sys-devel/llvm:${SLOT} @@ -26,17 +26,23 @@ src_install() { addr2line ar dlltool nm objcopy objdump ranlib readelf size strings strip windres ) + 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 abi t + local chost 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 chost in "${chosts[@]}"; do for t in "${tools[@]}"; do - dosym "llvm-${t}" "${dest}/${abi_chost}-${t}" + dosym "llvm-${t}" "${dest}/${chost}-${t}" done done } diff --git a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16.ebuild b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16-r1.ebuild similarity index 70% rename from sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16.ebuild rename to sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16-r1.ebuild index 117dff32e17b..10c6367152de 100644 --- a/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16.ebuild +++ b/sys-devel/llvm-toolchain-symlinks/llvm-toolchain-symlinks-16-r1.ebuild @@ -14,7 +14,7 @@ LICENSE="public-domain" SLOT="${PV}" KEYWORDS="" PROPERTIES="live" -IUSE="+native-symlinks" +IUSE="multilib-symlinks +native-symlinks" RDEPEND=" sys-devel/llvm:${SLOT} @@ -27,17 +27,23 @@ src_install() { addr2line ar dlltool nm objcopy objdump ranlib readelf size strings strip windres ) + 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 abi t + local chost 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 chost in "${chosts[@]}"; do for t in "${tools[@]}"; do - dosym "llvm-${t}" "${dest}/${abi_chost}-${t}" + dosym "llvm-${t}" "${dest}/${chost}-${t}" done done } diff --git a/sys-devel/llvm-toolchain-symlinks/metadata.xml b/sys-devel/llvm-toolchain-symlinks/metadata.xml index c6260bb7fb74..d62775dfc3a3 100644 --- a/sys-devel/llvm-toolchain-symlinks/metadata.xml +++ b/sys-devel/llvm-toolchain-symlinks/metadata.xml @@ -5,6 +5,11 @@ llvm@gentoo.org + + Install symlinks for all ABI CHOSTs. Note that this can + result in gcc being overrode for native builds, as well + as conflict with crossdev if used for the same targets. + Install generic tool symlinks like 'objdump' and 'ranlib', as well as ${CTARGET}-*. These symlinks are installed