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: Sat, 06 Nov 2021 16:52:08
Message-Id: 1636217511.58a15c0dc8d47e96b69c98b8025be25f3c4022b5.mgorny@gentoo
1 commit: 58a15c0dc8d47e96b69c98b8025be25f3c4022b5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 6 15:01:51 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 6 16:51:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58a15c0d
7
8 sys-devel/llvm: Rename USE={gold → binutils-plugin}
9
10 The plugin is now used by other binutils tools, and gold is no longer
11 really relevant these days.
12
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 sys-devel/llvm/llvm-13.0.0.9999.ebuild | 18 +++++++++---------
16 sys-devel/llvm/llvm-14.0.0.9999.ebuild | 18 +++++++++---------
17 sys-devel/llvm/metadata.xml | 3 ++-
18 3 files changed, 20 insertions(+), 19 deletions(-)
19
20 diff --git a/sys-devel/llvm/llvm-13.0.0.9999.ebuild b/sys-devel/llvm/llvm-13.0.0.9999.ebuild
21 index a602eb65d6c..f0bbf680562 100644
22 --- a/sys-devel/llvm/llvm-13.0.0.9999.ebuild
23 +++ b/sys-devel/llvm/llvm-13.0.0.9999.ebuild
24 @@ -19,14 +19,14 @@ HOMEPAGE="https://llvm.org/"
25 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA BSD public-domain rc"
26 SLOT="$(ver_cut 1)"
27 KEYWORDS=""
28 -IUSE="debug doc exegesis +gold libedit +libffi ncurses test xar xml z3
29 - kernel_Darwin"
30 +IUSE="+binutils-plugin debug doc exegesis libedit +libffi ncurses test xar xml
31 + z3 kernel_Darwin"
32 RESTRICT="!test? ( test )"
33
34 RDEPEND="
35 sys-libs/zlib:0=[${MULTILIB_USEDEP}]
36 + binutils-plugin? ( >=sys-devel/binutils-2.31.1-r4:*[plugins] )
37 exegesis? ( dev-libs/libpfm:= )
38 - gold? ( >=sys-devel/binutils-2.31.1-r4:*[plugins] )
39 libedit? ( dev-libs/libedit:0=[${MULTILIB_USEDEP}] )
40 libffi? ( >=dev-libs/libffi-3.0.13-r1:0=[${MULTILIB_USEDEP}] )
41 ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )
42 @@ -34,7 +34,7 @@ RDEPEND="
43 xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
44 z3? ( >=sci-mathematics/z3-4.7.1:0=[${MULTILIB_USEDEP}] )"
45 DEPEND="${RDEPEND}
46 - gold? ( sys-libs/binutils-libs )"
47 + binutils-plugin? ( sys-libs/binutils-libs )"
48 BDEPEND="
49 dev-lang/perl
50 >=dev-util/cmake-3.16
51 @@ -54,7 +54,7 @@ BDEPEND="
52 RDEPEND="${RDEPEND}
53 !sys-devel/llvm:0"
54 PDEPEND="sys-devel/llvm-common
55 - gold? ( >=sys-devel/llvmgold-${SLOT} )"
56 + binutils-plugin? ( >=sys-devel/llvmgold-${SLOT} )"
57
58 LLVM_COMPONENTS=( llvm )
59 LLVM_MANPAGES=build
60 @@ -111,7 +111,7 @@ check_distribution_components() {
61
62 case ${l} in
63 # shared libs
64 - LLVM|LLVMgold)
65 + LLVM|LLVMbinutils-plugin)
66 ;;
67 # TableGen lib + deps
68 LLVMDemangle|LLVMSupport|LLVMTableGen)
69 @@ -308,8 +308,8 @@ get_distribution_components() {
70 docs-llvm-html
71 )
72
73 - use gold && out+=(
74 - LLVMgold
75 + use binutils-plugin && out+=(
76 + LLVMbinutils-plugin
77 )
78 fi
79
80 @@ -405,7 +405,7 @@ multilib_src_configure() {
81 -DLLVM_ENABLE_DOXYGEN=OFF
82 -DLLVM_INSTALL_UTILS=ON
83 )
84 - use gold && mycmakeargs+=(
85 + use binutils-plugin && mycmakeargs+=(
86 -DLLVM_BINUTILS_INCDIR="${EPREFIX}"/usr/include
87 )
88 fi
89
90 diff --git a/sys-devel/llvm/llvm-14.0.0.9999.ebuild b/sys-devel/llvm/llvm-14.0.0.9999.ebuild
91 index a602eb65d6c..f0bbf680562 100644
92 --- a/sys-devel/llvm/llvm-14.0.0.9999.ebuild
93 +++ b/sys-devel/llvm/llvm-14.0.0.9999.ebuild
94 @@ -19,14 +19,14 @@ HOMEPAGE="https://llvm.org/"
95 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA BSD public-domain rc"
96 SLOT="$(ver_cut 1)"
97 KEYWORDS=""
98 -IUSE="debug doc exegesis +gold libedit +libffi ncurses test xar xml z3
99 - kernel_Darwin"
100 +IUSE="+binutils-plugin debug doc exegesis libedit +libffi ncurses test xar xml
101 + z3 kernel_Darwin"
102 RESTRICT="!test? ( test )"
103
104 RDEPEND="
105 sys-libs/zlib:0=[${MULTILIB_USEDEP}]
106 + binutils-plugin? ( >=sys-devel/binutils-2.31.1-r4:*[plugins] )
107 exegesis? ( dev-libs/libpfm:= )
108 - gold? ( >=sys-devel/binutils-2.31.1-r4:*[plugins] )
109 libedit? ( dev-libs/libedit:0=[${MULTILIB_USEDEP}] )
110 libffi? ( >=dev-libs/libffi-3.0.13-r1:0=[${MULTILIB_USEDEP}] )
111 ncurses? ( >=sys-libs/ncurses-5.9-r3:0=[${MULTILIB_USEDEP}] )
112 @@ -34,7 +34,7 @@ RDEPEND="
113 xml? ( dev-libs/libxml2:2=[${MULTILIB_USEDEP}] )
114 z3? ( >=sci-mathematics/z3-4.7.1:0=[${MULTILIB_USEDEP}] )"
115 DEPEND="${RDEPEND}
116 - gold? ( sys-libs/binutils-libs )"
117 + binutils-plugin? ( sys-libs/binutils-libs )"
118 BDEPEND="
119 dev-lang/perl
120 >=dev-util/cmake-3.16
121 @@ -54,7 +54,7 @@ BDEPEND="
122 RDEPEND="${RDEPEND}
123 !sys-devel/llvm:0"
124 PDEPEND="sys-devel/llvm-common
125 - gold? ( >=sys-devel/llvmgold-${SLOT} )"
126 + binutils-plugin? ( >=sys-devel/llvmgold-${SLOT} )"
127
128 LLVM_COMPONENTS=( llvm )
129 LLVM_MANPAGES=build
130 @@ -111,7 +111,7 @@ check_distribution_components() {
131
132 case ${l} in
133 # shared libs
134 - LLVM|LLVMgold)
135 + LLVM|LLVMbinutils-plugin)
136 ;;
137 # TableGen lib + deps
138 LLVMDemangle|LLVMSupport|LLVMTableGen)
139 @@ -308,8 +308,8 @@ get_distribution_components() {
140 docs-llvm-html
141 )
142
143 - use gold && out+=(
144 - LLVMgold
145 + use binutils-plugin && out+=(
146 + LLVMbinutils-plugin
147 )
148 fi
149
150 @@ -405,7 +405,7 @@ multilib_src_configure() {
151 -DLLVM_ENABLE_DOXYGEN=OFF
152 -DLLVM_INSTALL_UTILS=ON
153 )
154 - use gold && mycmakeargs+=(
155 + use binutils-plugin && mycmakeargs+=(
156 -DLLVM_BINUTILS_INCDIR="${EPREFIX}"/usr/include
157 )
158 fi
159
160 diff --git a/sys-devel/llvm/metadata.xml b/sys-devel/llvm/metadata.xml
161 index b08267bacf7..c10c45dd8f2 100644
162 --- a/sys-devel/llvm/metadata.xml
163 +++ b/sys-devel/llvm/metadata.xml
164 @@ -10,10 +10,11 @@
165 3. A compiler infrastructure - LLVM is also a collection of source code that implements the language and compilation strategy. The primary components of the LLVM infrastructure are a GCC-based C and C++ front-end, a link-time optimization framework with a growing set of global and interprocedural analyses and transformations, static back-ends for many popular (and some obscure) architectures, a back-end which emits portable C code, and a Just-In-Time compilers for several architectures.
166 4. LLVM does not imply things that you would expect from a high-level virtual machine. It does not require garbage collection or run-time code generation (In fact, LLVM makes a great static compiler!). Note that optional LLVM components can be used to build high-level virtual machines and other systems that need these services.</longdescription>
167 <use>
168 + <flag name="binutils-plugin">Build the binutils plugin</flag>
169 <flag name="doc">Build and install the HTML documentation and regenerate the man pages</flag>
170 <flag name="exegesis">Enable performance counter support for llvm-exegesis tool
171 that can be used to measure host machine instruction characteristics</flag>
172 - <flag name="gold">Build the gold linker plugin</flag>
173 + <flag name="gold">Build the binutils plugin</flag>
174 <flag name="ncurses">Support querying terminal properties using ncurses' terminfo</flag>
175 <flag name="xar">Support dumping LLVM bitcode sections in Mach-O files
176 (uses <pkg>app-arch/xar</pkg>)</flag>