Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/llvm/
Date: Tue, 21 Sep 2021 08:20:14
Message-Id: 1632210859.f5af0b6799f05f41abe2fd89814ba29a56d1f78c.mgorny@gentoo
1 commit: f5af0b6799f05f41abe2fd89814ba29a56d1f78c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 21 06:51:07 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 21 07:54:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5af0b67
7
8 sys-devel/llvm: Forward port target changes to 13.0.0_rc3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-devel/llvm/llvm-13.0.0_rc3.ebuild | 22 ++++++----------------
13 1 file changed, 6 insertions(+), 16 deletions(-)
14
15 diff --git a/sys-devel/llvm/llvm-13.0.0_rc3.ebuild b/sys-devel/llvm/llvm-13.0.0_rc3.ebuild
16 index 56d24237427..6eaee99b46f 100644
17 --- a/sys-devel/llvm/llvm-13.0.0_rc3.ebuild
18 +++ b/sys-devel/llvm/llvm-13.0.0_rc3.ebuild
19 @@ -10,14 +10,6 @@ inherit cmake llvm.org multilib-minimal pax-utils python-any-r1 \
20 DESCRIPTION="Low Level Virtual Machine"
21 HOMEPAGE="https://llvm.org/"
22
23 -# Those are in lib/Targets, without explicit CMakeLists.txt mention
24 -ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC CSKY M68k VE )
25 -# Keep in sync with CMakeLists.txt
26 -ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai Mips MSP430
27 - NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore
28 - "${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" )
29 -ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
30 -
31 # Additional licenses:
32 # 1. OpenBSD regex: Henry Spencer's license ('rc' in Gentoo) + BSD.
33 # 2. xxhash: BSD.
34 @@ -28,8 +20,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA BSD public-domain rc"
35 SLOT="$(ver_cut 1)"
36 KEYWORDS=""
37 IUSE="debug doc exegesis gold libedit +libffi ncurses test xar xml z3
38 - kernel_Darwin ${ALL_LLVM_TARGETS[*]}"
39 -REQUIRED_USE="|| ( ${ALL_LLVM_TARGETS[*]} )"
40 + kernel_Darwin"
41 RESTRICT="!test? ( test )"
42
43 RDEPEND="
44 @@ -68,6 +59,7 @@ PDEPEND="sys-devel/llvm-common
45 LLVM_COMPONENTS=( llvm )
46 LLVM_MANPAGES=build
47 LLVM_PATCHSET=13.0.0-rc3
48 +LLVM_USE_TARGETS=provide
49 llvm.org_set_globals
50
51 python_check_deps() {
52 @@ -92,8 +84,6 @@ check_live_ebuild() {
53 for i in "${all_targets[@]}"; do
54 has "${i}" "${prod_targets[@]}" || exp_targets+=( "${i}" )
55 done
56 - # reorder
57 - all_targets=( "${prod_targets[@]}" "${exp_targets[@]}" )
58
59 if [[ ${exp_targets[*]} != ${ALL_LLVM_EXPERIMENTAL_TARGETS[*]} ]]; then
60 eqawarn "ALL_LLVM_EXPERIMENTAL_TARGETS is outdated!"
61 @@ -102,10 +92,10 @@ check_live_ebuild() {
62 eqawarn
63 fi
64
65 - if [[ ${all_targets[*]} != ${ALL_LLVM_TARGETS[*]#llvm_targets_} ]]; then
66 - eqawarn "ALL_LLVM_TARGETS is outdated!"
67 - eqawarn " Have: ${ALL_LLVM_TARGETS[*]#llvm_targets_}"
68 - eqawarn "Expected: ${all_targets[*]}"
69 + if [[ ${prod_targets[*]} != ${ALL_LLVM_PRODUCTION_TARGETS[*]} ]]; then
70 + eqawarn "ALL_LLVM_PRODUCTION_TARGETS is outdated!"
71 + eqawarn " Have: ${ALL_LLVM_PRODUCTION_TARGETS[*]}"
72 + eqawarn "Expected: ${prod_targets[*]}"
73 fi
74 }