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 4A4BE15808A for ; Sat, 19 Jul 2025 11:36:01 +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) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 240F9340D5F for ; Sat, 19 Jul 2025 11:36:01 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 080B711055E; Sat, 19 Jul 2025 11:36: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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 01C1711055E for ; Sat, 19 Jul 2025 11:35:59 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A68E6340D58 for ; Sat, 19 Jul 2025 11:35:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 509B5322E for ; Sat, 19 Jul 2025 11:35:58 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1752924910.885a91ff28725c3f7d3c8a1b198e03340668b252.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/llvm.org.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 885a91ff28725c3f7d3c8a1b198e03340668b252 X-VCS-Branch: master Date: Sat, 19 Jul 2025 11:35: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: 95ebd95a-775c-4d79-80bd-491a77392546 X-Archives-Hash: 222fded407eae141620976a9dd631777 commit: 885a91ff28725c3f7d3c8a1b198e03340668b252 Author: Sam James gentoo org> AuthorDate: Sat Jul 19 08:27:57 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jul 19 11:35:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=885a91ff llvm.org.eclass: extend LLVM_USE_TARGETS Add an additional 'llvm+eq' value which works the same as LLVM_USE_TARGETS=llvm, but with matching use= deps on LLVM_TARGETS. Needed for packages which automagically use available targets via e.g. LLVM's InitializeAllTargets. This sets us on a path to dropping the package.use.force entries for LLVM_TARGETS. Bug: https://bugs.gentoo.org/767700 Bug: https://bugs.gentoo.org/768267 Signed-off-by: Sam James gentoo.org> eclass/llvm.org.eclass | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass index eaec1b8a3a5f..0fec50a95e2b 100644 --- a/eclass/llvm.org.eclass +++ b/eclass/llvm.org.eclass @@ -140,6 +140,10 @@ fi # on matching llvm-core/llvm versions with requested flags will # be added. # +# - llvm+eq - this package automagically uses targets from LLVM by using +# a function like InitializeAllTargets. Same behavior as =llvm, but +# with matching use= deps for targets. +# # Note that you still need to pass enabled targets to the build system, # usually grabbing them from ${LLVM_TARGETS} (via USE_EXPAND). @@ -334,7 +338,7 @@ llvm.org_set_globals() { case ${LLVM_USE_TARGETS:-__unset__} in __unset__) ;; - provide|llvm) + provide|llvm|llvm+eq) IUSE+=" ${ALL_LLVM_TARGET_FLAGS[*]}" REQUIRED_USE+=" || ( ${ALL_LLVM_TARGET_FLAGS[*]} )" ;;& @@ -347,6 +351,15 @@ llvm.org_set_globals() { RDEPEND+=" ${dep}" DEPEND+=" ${dep}" ;; + llvm+eq) + local dep= + for x in "${ALL_LLVM_TARGET_FLAGS[@]}"; do + dep+=" + ${x}? ( ~llvm-core/llvm-${PV}[${x}=] )" + done + RDEPEND+=" ${dep}" + DEPEND+=" ${dep}" + ;; esac # === useful defaults for cmake-based packages ===