From fa36c6665260ac1b96c292df91d3c0dda3f5c71b Mon Sep 17 00:00:00 2001 From: idriskalp Date: Tue, 7 Jan 2020 17:56:20 +0300 Subject: [PATCH] rust 1.40.0 --- ...dditional-headers-only-if-they-exist.patch | 41 +++++++++++++++++++ programming/language/rust/pspec.xml | 11 ++++- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 programming/language/rust/files/0001-llvm-cmake-Add-additional-headers-only-if-they-exist.patch diff --git a/programming/language/rust/files/0001-llvm-cmake-Add-additional-headers-only-if-they-exist.patch b/programming/language/rust/files/0001-llvm-cmake-Add-additional-headers-only-if-they-exist.patch new file mode 100644 index 0000000000..b33311c0de --- /dev/null +++ b/programming/language/rust/files/0001-llvm-cmake-Add-additional-headers-only-if-they-exist.patch @@ -0,0 +1,41 @@ +From 1f68002cb725c6a8fb5ca8425c1c86495a053f4f Mon Sep 17 00:00:00 2001 +From: Michal Gorny +Date: Thu, 4 Apr 2019 14:21:38 +0000 +Subject: [PATCH] [llvm] [cmake] Add additional headers only if they exist + +Modify the add_header_files_for_glob() function to only add files +that do exist, rather than all matches of the glob. This fixes CMake +error when one of the include directories (which happen to include +/usr/include) contain broken symlinks. + +Differential Revision: https://reviews.llvm.org/D59632 + +llvm-svn: 357701 +--- + llvm/cmake/modules/LLVMProcessSources.cmake | 10 +++++++++- + 1 file changed, 9 insertions(+), 1 deletion(-) + +diff --git a/cmake/modules/LLVMProcessSources.cmake b/cmake/modules/LLVMProcessSources.cmake +index 7cbd2863500..d0be0e8b3ba 100644 +--- a/src/llvm-project/llvm/cmake/modules/LLVMProcessSources.cmake ++++ b/src/llvm-project/llvm/cmake/modules/LLVMProcessSources.cmake +@@ -30,7 +30,15 @@ endmacro(add_td_sources) + + function(add_header_files_for_glob hdrs_out glob) + file(GLOB hds ${glob}) +- set(${hdrs_out} ${hds} PARENT_SCOPE) ++ set(filtered) ++ foreach(file ${hds}) ++ # Explicit existence check is necessary to filter dangling symlinks ++ # out. See https://bugs.gentoo.org/674662. ++ if(EXISTS ${file}) ++ list(APPEND filtered ${file}) ++ endif() ++ endforeach() ++ set(${hdrs_out} ${filtered} PARENT_SCOPE) + endfunction(add_header_files_for_glob) + + function(find_all_header_files hdrs_out additional_headerdirs) +-- +2.21.0 + diff --git a/programming/language/rust/pspec.xml b/programming/language/rust/pspec.xml index 125d3532f9..b364183359 100755 --- a/programming/language/rust/pspec.xml +++ b/programming/language/rust/pspec.xml @@ -12,7 +12,7 @@ app Systems programming language focused on safety, speed and concurrency Systems programming language focused on safety, speed and concurrency - https://static.rust-lang.org/dist/rustc-1.38.0-src.tar.gz + https://static.rust-lang.org/dist/rustc-1.40.0-src.tar.gz bootstrap-config.toml @@ -35,7 +35,7 @@ - 0001-WIP-minimize-the-rust-std-component.patch + @@ -65,6 +65,13 @@ + + 2020-01-06 + 1.40.0 + Version bump. + Idris Kalp + idriskalp@gmail.com + 2019-10-21 1.38.0