public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm-toolchain-symlinks/
Date: Thu, 13 Oct 2022 15:41:17 +0000 (UTC)	[thread overview]
Message-ID: <1665675671.5ec6220049870a8d8f097823a8e682b8fa1df823.mgorny@gentoo> (raw)

commit:     5ec6220049870a8d8f097823a8e682b8fa1df823
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 13 15:31:16 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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 @@
 		<email>llvm@gentoo.org</email>
 	</maintainer>
 	<use>
+		<flag name="multilib-symlinks">
+			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.
+		</flag>
 		<flag name="native-symlinks">
 			Install generic tool symlinks like 'objdump' and 'ranlib',
 			as well as ${CTARGET}-*. These symlinks are installed


             reply	other threads:[~2022-10-13 15:41 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13 15:41 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-04 19:40 [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm-toolchain-symlinks/ Michał Górny
2024-10-04 19:40 Michał Górny
2024-09-06 16:01 Arthur Zamarin
2024-07-23 19:18 Michał Górny
2024-07-23 14:11 Sam James
2024-07-23 14:07 Michał Górny
2024-07-23 13:58 Sam James
2024-07-23 13:58 Sam James
2024-07-23 13:36 Sam James
2024-07-23 13:36 Sam James
2024-07-23 12:25 Sam James
2024-03-23 16:23 Sam James
2024-03-23 16:23 Sam James
2024-03-06 17:03 Michał Górny
2024-01-28  8:57 Sam James
2024-01-24  6:33 Michał Górny
2024-01-13 11:30 Joonas Niilola
2024-01-12  9:24 Sam James
2023-12-22 16:43 Michał Górny
2023-10-19 15:13 Michał Górny
2023-09-19 19:47 Michał Górny
2023-08-26 20:00 Mike Gilbert
2023-08-02 16:11 Sam James
2023-08-02 16:11 Sam James
2023-08-02 16:11 Sam James
2023-07-25 16:11 Michał Górny
2023-07-14 15:52 Arthur Zamarin
2023-06-17 23:22 Sam James
2023-06-13 18:28 Arthur Zamarin
2023-01-25  8:12 Michał Górny
2022-12-06  6:18 WANG Xuerui
2022-11-27 12:55 WANG Xuerui
2022-11-20  0:23 Sam James
2022-11-05 11:33 Joonas Niilola
2022-11-02 13:50 Agostino Sarubbo
2022-10-29  7:22 Agostino Sarubbo
2022-10-26 19:21 Arthur Zamarin
2022-10-26 17:10 Arthur Zamarin
2022-10-25 10:15 Arthur Zamarin
2022-09-20 16:55 Michał Górny
2022-09-20 11:17 Michał Górny
2022-09-20 11:07 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1665675671.5ec6220049870a8d8f097823a8e682b8fa1df823.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox