File tree 2 files changed +22
-1
lines changed 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change
1
+ --- rustc-1.39-0-src/src/librustc_incremental/persist/fs.rs 2020-08-12 10:36:42.776264792 -0700
2
+ +++ rustc-1.39-0-src/src/librustc_incremental/persist/fs.rs 2020-08-12 10:42:43.797059804 -0700
3
+ @@ -880,7 +880,10 @@
4
+ fn safe_remove_dir_all(p: &Path) -> io::Result<()> {
5
+ if p.exists() {
6
+ let canonicalized = p.canonicalize()?;
7
+ - std_fs::remove_dir_all(canonicalized)
8
+ + match std_fs::remove_dir_all(canonicalized) {
9
+ + Err(ref err) if err.kind() == io::ErrorKind::NotFound => Ok(()),
10
+ + result => result,
11
+ + }
12
+ } else {
13
+ Ok(())
14
+ }
Original file line number Diff line number Diff line change 1
1
Summary: Rust Programming Language
2
2
Name: rust
3
3
Version: 1.39.0
4
- Release: 6 %{?dist }
4
+ Release: 7 %{?dist }
5
5
License: ASL 2.0 and MIT
6
6
URL: https://www.rust-lang.org/
7
7
Group: Applications/System
@@ -16,6 +16,8 @@ Source5: https://static.rust-lang.org/dist/2019-09-26/cargo-0.39.0-aarch6
16
16
Source6: https://static.rust-lang.org/dist/2019-09-26/rustc-1.38.0-aarch64 -unknown-linux-gnu.tar.gz
17
17
Source7: https://static.rust-lang.org/dist/2019-09-26/rust-std-1.38.0-aarch64 -unknown-linux-gnu.tar.gz
18
18
19
+ Patch0: robust-build.patch
20
+
19
21
BuildRequires: git
20
22
BuildRequires: cmake
21
23
BuildRequires: glibc
@@ -33,6 +35,9 @@ pushd $HOME
33
35
tar xf %{SOURCE1 } --no-same-owner
34
36
popd
35
37
%setup -q -n rustc-%{version }-src
38
+
39
+ %patch0 -p1
40
+
36
41
# Setup build/cache directory
37
42
%define BUILD_CACHE_DIR build/cache/2019-09-26/
38
43
mkdir -pv %{BUILD_CACHE_DIR }
@@ -97,6 +102,8 @@ rm %{buildroot}%{_docdir}/%{name}/*.old
97
102
%{_sysconfdir }/bash_completion.d/cargo
98
103
99
104
%changelog
105
+ * Wed Aug 12 2020 Mateusz Malisz <
[email protected] > 1.39.0-7
106
+ - Add patch for the build to not fail on file not found error.
100
107
* Fri Jun 12 2020 Henry Beberman <
[email protected] > 1.39.0-6
101
108
- Temporarily disable generation of debug symbols.
102
109
* Thu May 28 2020 Chris Co <
[email protected] > - 1.39.0-5
You can’t perform that action at this time.
0 commit comments