1 |
commit: a473a7a0611264f648e8a6a7518c4616c6c153fc |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 22 11:12:59 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 22 11:21:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a473a7a0 |
7 |
|
8 |
sys-devel/llvm: Switch to patchsets |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-devel/llvm/Manifest | 5 ++ |
13 |
...linking-llvm-cfi-verify-to-duplicate-libs.patch | 48 ------------------- |
14 |
...vm-Disable-linking-llvm-exegesis-to-dylib.patch | 29 ------------ |
15 |
...88371-guard-find_library-tensorflow_c_api.patch | 55 ---------------------- |
16 |
...-Clean-up-exported-values-update-for-shar.patch | 34 ------------- |
17 |
sys-devel/llvm/llvm-10.0.1.ebuild | 11 +---- |
18 |
sys-devel/llvm/llvm-11.0.0.ebuild | 11 +---- |
19 |
sys-devel/llvm/llvm-11.0.1.ebuild | 5 +- |
20 |
sys-devel/llvm/llvm-11.1.0.ebuild | 5 +- |
21 |
sys-devel/llvm/llvm-12.0.0.9999.ebuild | 5 +- |
22 |
sys-devel/llvm/llvm-12.0.0.ebuild | 5 +- |
23 |
sys-devel/llvm/llvm-13.0.0.9999.ebuild | 5 +- |
24 |
12 files changed, 12 insertions(+), 206 deletions(-) |
25 |
|
26 |
diff --git a/sys-devel/llvm/Manifest b/sys-devel/llvm/Manifest |
27 |
index f9641d1ff9e..57eb19d6fa7 100644 |
28 |
--- a/sys-devel/llvm/Manifest |
29 |
+++ b/sys-devel/llvm/Manifest |
30 |
@@ -3,6 +3,11 @@ DIST llvm-11.0.0-manpages.tar.bz2 179592 BLAKE2B d03dff5e7426f4c648d6112dee0fa7a |
31 |
DIST llvm-11.0.1-manpages.tar.bz2 180888 BLAKE2B 9d70e83704d77aa5007cc8eb8e667fbb1f4dd3a8df607d0bbf4f3f5049ac04263e6e01bf8da0d212f456a49c90b853485746af68f0a1e2b5f3b704914bd45aaf SHA512 c67df394dd1a94ae632ce55ff1b1aa4cc4aa8b59b17521cd91932c1b44efe90f29e84233a0ebe882d39f54a5b28edf4ef40769e7ecc1a5f1021d64c5f99e33ad |
32 |
DIST llvm-11.1.0-manpages.tar.bz2 191571 BLAKE2B d6f8e1390dd3e6e8bbcd66c0079ef89f2ff3479743499c36ab32f8bc8281631a96113df9a87f6284058365950f4df3c75dacfcc11920fc5ea7ef0233ba842b77 SHA512 2543e519f51cc7ecb51a732c658ec5d35c5225e30a677f24ead75e81fb1ab793a030e79f21d0b702a2cf6ab6da1a2cba839b49a98e1b0a36384e98076ed5c4b1 |
33 |
DIST llvm-12.0.0-manpages.tar.bz2 191228 BLAKE2B 60cc736de2512b9368d55cc8c73e8b537c0fb8f0cb923b0c5c9e5866785013df93efc6cb448c91b7635e856a8d663278a3ba40620a2e4c05c006b6fc5b482b4e SHA512 4a4f55da8da0cb7d4d9281b13168864a3c0b10000b3e750b22b93d9b4f68a2d9a2e1da10c94d27081a0bce9694fa55a9d5e723676f9066393dc8001382d1d6da |
34 |
+DIST llvm-gentoo-patchset-10.0.1-1.tar.xz 8320 BLAKE2B 1b7ea7669586e08fece0efcf02b392feed4b7f3e6e9cdd10ab7dcc30082cae5bb1daa6d3314a7b0329c4d70f3c736d0c57ed408c838601dc737d558d2a0a0f26 SHA512 75898a8d719657177bbf587d848be8e53135c09e50603660c19edab00f80b6c2f29e7b6fda2bef381b38df6e24a690d694029a38c525763408322573275fc9f0 |
35 |
+DIST llvm-gentoo-patchset-11.0.0-1.tar.xz 6100 BLAKE2B 6f8fc9b7daa703f04b1283caaeb3665d4bec56ff80b1c5db35917c578fdd92617222bd2d2b83020144b8abdeaa261142b68aa3dee24350133f6721e41a167b78 SHA512 debdd92e6aa3133f474dfbd79f267e76d9d979e4e5d464c8d4343c6e6816b46376ca8080a9ee916152861907af9d0645ce71cf3582ef3dc31ec4ca3410fde9f6 |
36 |
+DIST llvm-gentoo-patchset-11.1.0-1.tar.xz 4032 BLAKE2B e69138a422e315b31a3d9c11faa4ae1ddf1bf9092cee2db0de4d2adef81fd802973488293aab48b764402b51996893b17ca03249ef4620848a576d1f6cdb9698 SHA512 e1c5504dab6c5db9fdf4addfeb12316f22d0258717ba551a9b7b3ba37919491fb6011ac5cca1e793b7509d5c1c186bc6bc4213f7d6155d190612492b216f979b |
37 |
+DIST llvm-gentoo-patchset-12.0.0-1.tar.xz 6364 BLAKE2B bcf96dad8300cdc3e1f416cb90935ae3b1359efc5687118b5a9bbee25de7087a266250f50c6f2abd18f4efeeec19354f59513c8fdd1d61c2cfc8cc2f0115e514 SHA512 76201e169f71a8d568365ffeafcfd37138e74b0536826f47eb6ce89c2280586f10426917e851f99bfb20477cd828cc40daa8cb7a62959981620fbd81e1b22ee1 |
38 |
+DIST llvm-gentoo-patchset-9999-1.tar.xz 4032 BLAKE2B b9413484dafed8ae0c68c2c164b45fd07bb8d5d0898f03abe118fd2120ffcb1fb6c949de9649a97c2e8105f24b9d131a725c67c0a502ca4d4d192c1a0d65f49d SHA512 e64449eeaf756c5bd945109937b84ba4bd8a015222bd792d39cf3947871e87571a4ca57814790e51544cb05ad4c2d1f044e818e4caaac7c2e2a02cb1aa290fcc |
39 |
DIST llvmorg-10.0.1.tar.gz 120880730 BLAKE2B 30f19f56c4d1f6abcda5fec76256219d1e3c8a6ff1a1f152f94bfe362c07884339fe571ff7fe903ed3b3deb150b2fa868c387887a0dea2930dc08b81db71a5b1 SHA512 48078fff9293a87f1a973f3348f79506f04c3da774295f5eb67d74dd2d1aa94f0973f8ced3f4ab9e8339902071f82c603b43d5608ad7227046c4da769c5d2151 |
40 |
DIST llvmorg-11.0.0.tar.gz 122743665 BLAKE2B 3f95570240789fd68ddb747df817f5c6cdc9da40911bbe9ee3531c15ada9165e5002b1c2f778cf8735858485ea05a8754e3d3a5f4b15bdd6cb33d64a14692984 SHA512 b6d38871ccce0e086e27d35e42887618d68e57d8274735c59e3eabc42dee352412489296293f8d5169fe0044936345915ee7da61ebdc64ec10f7737f6ecd90f2 |
41 |
DIST llvmorg-11.0.1.tar.gz 122790338 BLAKE2B 0130996b4a8c4d9f757136fd7fb318068c9bfdc565060dec0d4336480c4ab66c4ae3185a7fdb05f13cf9ee8fd4123b09df938881b75d6e5d3689595114b7e32a SHA512 f5e6ef0b3111aae08a89cd01adb2ff4abfa9ef779c68b9190421d0447efd25c2cc00e5aae9f4764805f5fa31434866043d1510ae7389817e28ae53a5442e2fdf |
42 |
|
43 |
diff --git a/sys-devel/llvm/files/10.0.1/0001-llvm-Avoid-linking-llvm-cfi-verify-to-duplicate-libs.patch b/sys-devel/llvm/files/10.0.1/0001-llvm-Avoid-linking-llvm-cfi-verify-to-duplicate-libs.patch |
44 |
deleted file mode 100644 |
45 |
index 445cb6de2c3..00000000000 |
46 |
--- a/sys-devel/llvm/files/10.0.1/0001-llvm-Avoid-linking-llvm-cfi-verify-to-duplicate-libs.patch |
47 |
+++ /dev/null |
48 |
@@ -1,48 +0,0 @@ |
49 |
-From bc3be897be6994da7f52ba1b5735aa81150084a4 Mon Sep 17 00:00:00 2001 |
50 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
51 |
-Date: Tue, 16 Jun 2020 12:16:52 +0200 |
52 |
-Subject: [PATCH 1/4] [llvm] Avoid linking llvm-cfi-verify to duplicate libs |
53 |
- |
54 |
-Fix the CMake rules for LLVMCFIVerify library not to pull duplicate |
55 |
-LLVM .a libraries when linking to the dylib. This prevents problems |
56 |
-due to duplicate symbols and apparently fixes mingw32. |
57 |
- |
58 |
-This is an alternative approach to D44650 that just forces .a libraries |
59 |
-instead. However, there doesn't seem to be any reason to do that. |
60 |
---- |
61 |
- llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt | 20 +++++++++++-------- |
62 |
- 1 file changed, 12 insertions(+), 8 deletions(-) |
63 |
- |
64 |
-diff --git a/llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt b/llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt |
65 |
-index 82ca42e624a..41d55ed9321 100644 |
66 |
---- a/llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt |
67 |
-+++ b/llvm/tools/llvm-cfi-verify/lib/CMakeLists.txt |
68 |
-@@ -7,13 +7,17 @@ add_library(LLVMCFIVerify |
69 |
- ) |
70 |
- |
71 |
- llvm_update_compile_flags(LLVMCFIVerify) |
72 |
--llvm_map_components_to_libnames(libs |
73 |
-- DebugInfoDWARF |
74 |
-- MC |
75 |
-- MCParser |
76 |
-- Object |
77 |
-- Support |
78 |
-- Symbolize |
79 |
-- ) |
80 |
-+if (LLVM_LINK_LLVM_DYLIB) |
81 |
-+ set(libs LLVM) |
82 |
-+else() |
83 |
-+ llvm_map_components_to_libnames(libs |
84 |
-+ DebugInfoDWARF |
85 |
-+ MC |
86 |
-+ MCParser |
87 |
-+ Object |
88 |
-+ Support |
89 |
-+ Symbolize |
90 |
-+ ) |
91 |
-+endif() |
92 |
- target_link_libraries(LLVMCFIVerify ${libs}) |
93 |
- set_target_properties(LLVMCFIVerify PROPERTIES FOLDER "Libraries") |
94 |
--- |
95 |
-2.27.0 |
96 |
- |
97 |
|
98 |
diff --git a/sys-devel/llvm/files/10.0.1/0002-llvm-Disable-linking-llvm-exegesis-to-dylib.patch b/sys-devel/llvm/files/10.0.1/0002-llvm-Disable-linking-llvm-exegesis-to-dylib.patch |
99 |
deleted file mode 100644 |
100 |
index 24786905c4d..00000000000 |
101 |
--- a/sys-devel/llvm/files/10.0.1/0002-llvm-Disable-linking-llvm-exegesis-to-dylib.patch |
102 |
+++ /dev/null |
103 |
@@ -1,29 +0,0 @@ |
104 |
-From 07b6fdcde1ed64043244965b97788a2b12af4d6d Mon Sep 17 00:00:00 2001 |
105 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
106 |
-Date: Tue, 16 Jun 2020 12:31:36 +0200 |
107 |
-Subject: [PATCH 2/4] [llvm] Disable linking llvm-exegesis to dylib |
108 |
- |
109 |
-Force linking llvm-exegesis to static LLVM libraries instead of dylib |
110 |
-to prevent duplicate symbols due to linking both. Ideally, we'd want |
111 |
-to link to the dylib only here but the target sub-libraries use hidden |
112 |
-symbols from LLVM target libraries and therefore linking the dylib |
113 |
-fails. |
114 |
---- |
115 |
- llvm/tools/llvm-exegesis/CMakeLists.txt | 1 + |
116 |
- 1 file changed, 1 insertion(+) |
117 |
- |
118 |
-diff --git a/llvm/tools/llvm-exegesis/CMakeLists.txt b/llvm/tools/llvm-exegesis/CMakeLists.txt |
119 |
-index a59e1b74024..0575f2a06bb 100644 |
120 |
---- a/llvm/tools/llvm-exegesis/CMakeLists.txt |
121 |
-+++ b/llvm/tools/llvm-exegesis/CMakeLists.txt |
122 |
-@@ -5,6 +5,7 @@ set(LLVM_LINK_COMPONENTS |
123 |
- ) |
124 |
- |
125 |
- add_llvm_tool(llvm-exegesis |
126 |
-+ DISABLE_LLVM_LINK_LLVM_DYLIB |
127 |
- llvm-exegesis.cpp |
128 |
- ) |
129 |
- |
130 |
--- |
131 |
-2.27.0 |
132 |
- |
133 |
|
134 |
diff --git a/sys-devel/llvm/files/11.0.0/0001-backport-D88371-guard-find_library-tensorflow_c_api.patch b/sys-devel/llvm/files/11.0.0/0001-backport-D88371-guard-find_library-tensorflow_c_api.patch |
135 |
deleted file mode 100644 |
136 |
index 73959afb267..00000000000 |
137 |
--- a/sys-devel/llvm/files/11.0.0/0001-backport-D88371-guard-find_library-tensorflow_c_api.patch |
138 |
+++ /dev/null |
139 |
@@ -1,55 +0,0 @@ |
140 |
-From 8dcb88f7705fb3927938dd9bd103efcabafcefb0 Mon Sep 17 00:00:00 2001 |
141 |
-From: Georgy Yakovlev <gyakovlev@g.o> |
142 |
-Date: Tue, 27 Oct 2020 18:20:56 -0700 |
143 |
-Subject: [PATCH] backport D88371, guard `find_library(tensorflow_c_api ...)` |
144 |
- |
145 |
-Differential Revision: https://reviews.llvm.org/D88371 |
146 |
-Signed-off-by: Georgy Yakovlev <gyakovlev@g.o> |
147 |
---- |
148 |
- llvm/CMakeLists.txt | 15 +++++++-------- |
149 |
- 1 file changed, 7 insertions(+), 8 deletions(-) |
150 |
- |
151 |
-diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt |
152 |
-index 1f137f0..4112def 100644 |
153 |
---- a/llvm/CMakeLists.txt |
154 |
-+++ b/llvm/CMakeLists.txt |
155 |
-@@ -832,6 +832,11 @@ configure_file( |
156 |
- ${LLVM_INCLUDE_DIR}/llvm/Config/Targets.def |
157 |
- ) |
158 |
- |
159 |
-+# They are not referenced. See set_output_directory(). |
160 |
-+set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/bin ) |
161 |
-+set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} ) |
162 |
-+set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} ) |
163 |
-+ |
164 |
- # For up-to-date instructions for installing the Tensorflow dependency, refer to |
165 |
- # the bot setup script: https://github.com/google/ml-compiler-opt/blob/master/buildbot/buildbot_init.sh |
166 |
- # In this case, the latest C API library is available for download from |
167 |
-@@ -840,9 +845,9 @@ configure_file( |
168 |
- # LLVM_HAVE_TF_API, through llvm-config.h, so that a user of the LLVM library may |
169 |
- # also leverage the dependency. |
170 |
- set(TENSORFLOW_C_LIB_PATH "" CACHE PATH "Path to TensorFlow C library install") |
171 |
--find_library(tensorflow_c_api tensorflow PATHS ${TENSORFLOW_C_LIB_PATH}/lib) |
172 |
- |
173 |
--if (tensorflow_c_api) |
174 |
-+if (TENSORFLOW_C_LIB_PATH) |
175 |
-+ find_library(tensorflow_c_api tensorflow PATHS ${TENSORFLOW_C_LIB_PATH}/lib NO_DEFAULT_PATH REQUIRED) |
176 |
- set(LLVM_HAVE_TF_API "ON" CACHE BOOL "Full Tensorflow API available") |
177 |
- include_directories(${TENSORFLOW_C_LIB_PATH}/include) |
178 |
- endif() |
179 |
-@@ -877,12 +882,6 @@ add_custom_target(srpm |
180 |
- COMMAND rpmbuild -bs --define '_topdir ${LLVM_SRPM_DIR}' ${LLVM_SRPM_BINARY_SPECFILE}) |
181 |
- set_target_properties(srpm PROPERTIES FOLDER "Misc") |
182 |
- |
183 |
-- |
184 |
--# They are not referenced. See set_output_directory(). |
185 |
--set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/bin ) |
186 |
--set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} ) |
187 |
--set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LLVM_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX} ) |
188 |
-- |
189 |
- if(APPLE AND DARWIN_LTO_LIBRARY) |
190 |
- set(CMAKE_EXE_LINKER_FLAGS |
191 |
- "${CMAKE_EXE_LINKER_FLAGS} -Wl,-lto_library -Wl,${DARWIN_LTO_LIBRARY}") |
192 |
--- |
193 |
-2.26.2 |
194 |
- |
195 |
|
196 |
diff --git a/sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch b/sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
197 |
deleted file mode 100644 |
198 |
index cf52314ce75..00000000000 |
199 |
--- a/sys-devel/llvm/files/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
200 |
+++ /dev/null |
201 |
@@ -1,34 +0,0 @@ |
202 |
-From 628b899be14a6bab4b32dbd53aabd447dcc16cb7 Mon Sep 17 00:00:00 2001 |
203 |
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
204 |
-Date: Sat, 20 Aug 2016 23:47:41 +0200 |
205 |
-Subject: [PATCH] llvm-config: Clean up exported values, update for shared |
206 |
- linking |
207 |
- |
208 |
-Gentoo-specific fixup for llvm-config, including: |
209 |
-- making --src-root return invalid path (/dev/null). |
210 |
- |
211 |
-Thanks to Steven Newbury for the initial patch. |
212 |
- |
213 |
-Bug: https://bugs.gentoo.org/565358 |
214 |
-Bug: https://bugs.gentoo.org/501684 |
215 |
- |
216 |
-diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp |
217 |
-index d780094861c..c61c72ff48c 100644 |
218 |
---- a/tools/llvm-config/llvm-config.cpp |
219 |
-+++ b/tools/llvm-config/llvm-config.cpp |
220 |
-@@ -549,7 +550,11 @@ int main(int argc, char **argv) { |
221 |
- } else if (Arg == "--obj-root") { |
222 |
- OS << ActivePrefix << '\n'; |
223 |
- } else if (Arg == "--src-root") { |
224 |
-- OS << LLVM_SRC_ROOT << '\n'; |
225 |
-+ if (IsInDevelopmentTree) { |
226 |
-+ OS << LLVM_SRC_ROOT << '\n'; |
227 |
-+ } else { |
228 |
-+ OS << "/dev/null\n"; |
229 |
-+ } |
230 |
- } else if (Arg == "--ignore-libllvm") { |
231 |
- LinkDyLib = false; |
232 |
- LinkMode = BuiltSharedLibs ? LinkModeShared : LinkModeAuto; |
233 |
--- |
234 |
-2.11.0 |
235 |
- |
236 |
|
237 |
diff --git a/sys-devel/llvm/llvm-10.0.1.ebuild b/sys-devel/llvm/llvm-10.0.1.ebuild |
238 |
index cd9bb97a261..390045cc96e 100644 |
239 |
--- a/sys-devel/llvm/llvm-10.0.1.ebuild |
240 |
+++ b/sys-devel/llvm/llvm-10.0.1.ebuild |
241 |
@@ -11,6 +11,7 @@ DESCRIPTION="Low Level Virtual Machine" |
242 |
HOMEPAGE="https://llvm.org/" |
243 |
LLVM_COMPONENTS=( llvm ) |
244 |
LLVM_MANPAGES=pregenerated |
245 |
+LLVM_PATCHSET=10.0.1-1 |
246 |
llvm.org_set_globals |
247 |
|
248 |
# Those are in lib/Targets, without explicit CMakeLists.txt mention |
249 |
@@ -67,12 +68,6 @@ RDEPEND="${RDEPEND} |
250 |
PDEPEND="sys-devel/llvm-common |
251 |
gold? ( >=sys-devel/llvmgold-${SLOT} )" |
252 |
|
253 |
-PATCHES=( |
254 |
- # Fix linking to dylib and .a libs simultaneously |
255 |
- "${FILESDIR}"/10.0.1/0001-llvm-Avoid-linking-llvm-cfi-verify-to-duplicate-libs.patch |
256 |
- "${FILESDIR}"/10.0.1/0002-llvm-Disable-linking-llvm-exegesis-to-dylib.patch |
257 |
-) |
258 |
- |
259 |
python_check_deps() { |
260 |
use doc || return 0 |
261 |
|
262 |
@@ -141,10 +136,6 @@ check_distribution_components() { |
263 |
} |
264 |
|
265 |
src_prepare() { |
266 |
- # Fix llvm-config for shared linking and sane flags |
267 |
- # https://bugs.gentoo.org/show_bug.cgi?id=565358 |
268 |
- eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
269 |
- |
270 |
# disable use of SDK on OSX, bug #568758 |
271 |
sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die |
272 |
|
273 |
|
274 |
diff --git a/sys-devel/llvm/llvm-11.0.0.ebuild b/sys-devel/llvm/llvm-11.0.0.ebuild |
275 |
index f22b711d4e9..2206aa4141f 100644 |
276 |
--- a/sys-devel/llvm/llvm-11.0.0.ebuild |
277 |
+++ b/sys-devel/llvm/llvm-11.0.0.ebuild |
278 |
@@ -11,6 +11,7 @@ DESCRIPTION="Low Level Virtual Machine" |
279 |
HOMEPAGE="https://llvm.org/" |
280 |
LLVM_COMPONENTS=( llvm ) |
281 |
LLVM_MANPAGES=pregenerated |
282 |
+LLVM_PATCHSET=11.0.0-1 |
283 |
llvm.org_set_globals |
284 |
|
285 |
# Those are in lib/Targets, without explicit CMakeLists.txt mention |
286 |
@@ -68,12 +69,6 @@ RDEPEND="${RDEPEND} |
287 |
PDEPEND="sys-devel/llvm-common |
288 |
gold? ( >=sys-devel/llvmgold-${SLOT} )" |
289 |
|
290 |
-PATCHES=( |
291 |
- # backport tensorflow finding fix (avoids broken automagic dep) |
292 |
- # https://bugs.gentoo.org/748444 |
293 |
- "${FILESDIR}"/11.0.0/0001-backport-D88371-guard-find_library-tensorflow_c_api.patch |
294 |
-) |
295 |
- |
296 |
python_check_deps() { |
297 |
use doc || return 0 |
298 |
|
299 |
@@ -174,10 +169,6 @@ check_distribution_components() { |
300 |
} |
301 |
|
302 |
src_prepare() { |
303 |
- # Fix llvm-config for shared linking and sane flags |
304 |
- # https://bugs.gentoo.org/show_bug.cgi?id=565358 |
305 |
- eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
306 |
- |
307 |
# disable use of SDK on OSX, bug #568758 |
308 |
sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die |
309 |
|
310 |
|
311 |
diff --git a/sys-devel/llvm/llvm-11.0.1.ebuild b/sys-devel/llvm/llvm-11.0.1.ebuild |
312 |
index ca05d9a5a55..a85dbb33df5 100644 |
313 |
--- a/sys-devel/llvm/llvm-11.0.1.ebuild |
314 |
+++ b/sys-devel/llvm/llvm-11.0.1.ebuild |
315 |
@@ -67,6 +67,7 @@ PDEPEND="sys-devel/llvm-common |
316 |
|
317 |
LLVM_COMPONENTS=( llvm ) |
318 |
LLVM_MANPAGES=pregenerated |
319 |
+LLVM_PATCHSET=11.1.0-1 |
320 |
llvm.org_set_globals |
321 |
|
322 |
python_check_deps() { |
323 |
@@ -169,10 +170,6 @@ check_distribution_components() { |
324 |
} |
325 |
|
326 |
src_prepare() { |
327 |
- # Fix llvm-config for shared linking and sane flags |
328 |
- # https://bugs.gentoo.org/show_bug.cgi?id=565358 |
329 |
- eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
330 |
- |
331 |
# disable use of SDK on OSX, bug #568758 |
332 |
sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die |
333 |
|
334 |
|
335 |
diff --git a/sys-devel/llvm/llvm-11.1.0.ebuild b/sys-devel/llvm/llvm-11.1.0.ebuild |
336 |
index ca05d9a5a55..a85dbb33df5 100644 |
337 |
--- a/sys-devel/llvm/llvm-11.1.0.ebuild |
338 |
+++ b/sys-devel/llvm/llvm-11.1.0.ebuild |
339 |
@@ -67,6 +67,7 @@ PDEPEND="sys-devel/llvm-common |
340 |
|
341 |
LLVM_COMPONENTS=( llvm ) |
342 |
LLVM_MANPAGES=pregenerated |
343 |
+LLVM_PATCHSET=11.1.0-1 |
344 |
llvm.org_set_globals |
345 |
|
346 |
python_check_deps() { |
347 |
@@ -169,10 +170,6 @@ check_distribution_components() { |
348 |
} |
349 |
|
350 |
src_prepare() { |
351 |
- # Fix llvm-config for shared linking and sane flags |
352 |
- # https://bugs.gentoo.org/show_bug.cgi?id=565358 |
353 |
- eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
354 |
- |
355 |
# disable use of SDK on OSX, bug #568758 |
356 |
sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die |
357 |
|
358 |
|
359 |
diff --git a/sys-devel/llvm/llvm-12.0.0.9999.ebuild b/sys-devel/llvm/llvm-12.0.0.9999.ebuild |
360 |
index b5396d6a154..09568c1ceda 100644 |
361 |
--- a/sys-devel/llvm/llvm-12.0.0.9999.ebuild |
362 |
+++ b/sys-devel/llvm/llvm-12.0.0.9999.ebuild |
363 |
@@ -67,6 +67,7 @@ PDEPEND="sys-devel/llvm-common |
364 |
|
365 |
LLVM_COMPONENTS=( llvm ) |
366 |
LLVM_MANPAGES=build |
367 |
+LLVM_PATCHSET=9999-1 |
368 |
llvm.org_set_globals |
369 |
|
370 |
python_check_deps() { |
371 |
@@ -169,10 +170,6 @@ check_distribution_components() { |
372 |
} |
373 |
|
374 |
src_prepare() { |
375 |
- # Fix llvm-config for shared linking and sane flags |
376 |
- # https://bugs.gentoo.org/show_bug.cgi?id=565358 |
377 |
- eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
378 |
- |
379 |
# disable use of SDK on OSX, bug #568758 |
380 |
sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die |
381 |
|
382 |
|
383 |
diff --git a/sys-devel/llvm/llvm-12.0.0.ebuild b/sys-devel/llvm/llvm-12.0.0.ebuild |
384 |
index e6498e6d32c..b7e391d58dc 100644 |
385 |
--- a/sys-devel/llvm/llvm-12.0.0.ebuild |
386 |
+++ b/sys-devel/llvm/llvm-12.0.0.ebuild |
387 |
@@ -67,6 +67,7 @@ PDEPEND="sys-devel/llvm-common |
388 |
|
389 |
LLVM_COMPONENTS=( llvm ) |
390 |
LLVM_MANPAGES=pregenerated |
391 |
+LLVM_PATCHSET=12.0.0-1 |
392 |
llvm.org_set_globals |
393 |
|
394 |
python_check_deps() { |
395 |
@@ -169,10 +170,6 @@ check_distribution_components() { |
396 |
} |
397 |
|
398 |
src_prepare() { |
399 |
- # Fix llvm-config for shared linking and sane flags |
400 |
- # https://bugs.gentoo.org/show_bug.cgi?id=565358 |
401 |
- eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
402 |
- |
403 |
# Disable LBR tests that are broken on non-Intel CPUs |
404 |
# https://bugs.llvm.org/show_bug.cgi?id=48918 |
405 |
rm -r test/tools/llvm-exegesis/X86/lbr || die |
406 |
|
407 |
diff --git a/sys-devel/llvm/llvm-13.0.0.9999.ebuild b/sys-devel/llvm/llvm-13.0.0.9999.ebuild |
408 |
index b5396d6a154..09568c1ceda 100644 |
409 |
--- a/sys-devel/llvm/llvm-13.0.0.9999.ebuild |
410 |
+++ b/sys-devel/llvm/llvm-13.0.0.9999.ebuild |
411 |
@@ -67,6 +67,7 @@ PDEPEND="sys-devel/llvm-common |
412 |
|
413 |
LLVM_COMPONENTS=( llvm ) |
414 |
LLVM_MANPAGES=build |
415 |
+LLVM_PATCHSET=9999-1 |
416 |
llvm.org_set_globals |
417 |
|
418 |
python_check_deps() { |
419 |
@@ -169,10 +170,6 @@ check_distribution_components() { |
420 |
} |
421 |
|
422 |
src_prepare() { |
423 |
- # Fix llvm-config for shared linking and sane flags |
424 |
- # https://bugs.gentoo.org/show_bug.cgi?id=565358 |
425 |
- eapply "${FILESDIR}"/9999/0007-llvm-config-Clean-up-exported-values-update-for-shar.patch |
426 |
- |
427 |
# disable use of SDK on OSX, bug #568758 |
428 |
sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die |