1 |
commit: 9bd888b197bae54fa4b5d6033768f2438180b314 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 1 04:07:49 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 1 04:36:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bd888b1 |
7 |
|
8 |
dev-lang/rust: re-add cblas patch |
9 |
|
10 |
Since some systems have stale cblas.h symlink rust's bundled |
11 |
llvm finds cblas.h and tries to link unconditionally. Fix it. |
12 |
|
13 |
This reverts commit 0e00cd7cc089acdd3114b4aafc34fc921aabe058. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/676278 |
16 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
17 |
|
18 |
.../1.32.0-fix-configure-of-bundled-llvm.patch | 32 ++++++++++++++++++++++ |
19 |
dev-lang/rust/rust-1.32.0.ebuild | 1 + |
20 |
2 files changed, 33 insertions(+) |
21 |
|
22 |
diff --git a/dev-lang/rust/files/1.32.0-fix-configure-of-bundled-llvm.patch b/dev-lang/rust/files/1.32.0-fix-configure-of-bundled-llvm.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..eaeab87774e |
25 |
--- /dev/null |
26 |
+++ b/dev-lang/rust/files/1.32.0-fix-configure-of-bundled-llvm.patch |
27 |
@@ -0,0 +1,32 @@ |
28 |
+Revert "[CMake] Unconditionally add .h and .td files to target sources" |
29 |
+ |
30 |
+This reverts commit https://github.com/llvm-mirror/llvm/commit/6fb010f388bb2cb2f00fe039123092308ac4865d. |
31 |
+ |
32 |
+Bug: https://bugs.gentoo.org/675752#c7 |
33 |
+--- a/src/llvm/cmake/modules/LLVMProcessSources.cmake |
34 |
++++ b/src/llvm/cmake/modules/LLVMProcessSources.cmake |
35 |
+@@ -52,15 +52,16 @@ function(llvm_process_sources OUT_VAR) |
36 |
+ cmake_parse_arguments(ARG "" "" "ADDITIONAL_HEADERS;ADDITIONAL_HEADER_DIRS" ${ARGN}) |
37 |
+ set(sources ${ARG_UNPARSED_ARGUMENTS}) |
38 |
+ llvm_check_source_file_list( ${sources} ) |
39 |
+- |
40 |
+- # This adds .td and .h files to the Visual Studio solution: |
41 |
+- add_td_sources(sources) |
42 |
+- find_all_header_files(hdrs "${ARG_ADDITIONAL_HEADER_DIRS}") |
43 |
+- if (hdrs) |
44 |
+- set_source_files_properties(${hdrs} PROPERTIES HEADER_FILE_ONLY ON) |
45 |
++ if( LLVM_ENABLE_IDE ) |
46 |
++ # This adds .td and .h files to the Visual Studio solution: |
47 |
++ add_td_sources(sources) |
48 |
++ find_all_header_files(hdrs "${ARG_ADDITIONAL_HEADER_DIRS}") |
49 |
++ if (hdrs) |
50 |
++ set_source_files_properties(${hdrs} PROPERTIES HEADER_FILE_ONLY ON) |
51 |
++ endif() |
52 |
++ set_source_files_properties(${ARG_ADDITIONAL_HEADERS} PROPERTIES HEADER_FILE_ONLY ON) |
53 |
++ list(APPEND sources ${ARG_ADDITIONAL_HEADERS} ${hdrs}) |
54 |
+ endif() |
55 |
+- set_source_files_properties(${ARG_ADDITIONAL_HEADERS} PROPERTIES HEADER_FILE_ONLY ON) |
56 |
+- list(APPEND sources ${ARG_ADDITIONAL_HEADERS} ${hdrs}) |
57 |
+ |
58 |
+ set( ${OUT_VAR} ${sources} PARENT_SCOPE ) |
59 |
+ endfunction(llvm_process_sources) |
60 |
|
61 |
diff --git a/dev-lang/rust/rust-1.32.0.ebuild b/dev-lang/rust/rust-1.32.0.ebuild |
62 |
index ea00024950f..bc2a6106b8a 100644 |
63 |
--- a/dev-lang/rust/rust-1.32.0.ebuild |
64 |
+++ b/dev-lang/rust/rust-1.32.0.ebuild |
65 |
@@ -63,6 +63,7 @@ S="${WORKDIR}/${MY_P}-src" |
66 |
|
67 |
PATCHES=( |
68 |
"${FILESDIR}"/1.30.1-clippy-sysroot.patch |
69 |
+ "${FILESDIR}"/1.32.0-fix-configure-of-bundled-llvm.patch |
70 |
"${FILESDIR}"/1.32.0-system-llvm-7-SIGSEGV.patch |
71 |
) |