Skip to content

Commit df1bbc4

Browse files
authored
Merge pull request #18 from sailfishos/jb57222
[rust] Update to 1.61.0. JB#57222
2 parents a1373fc + ae6876c commit df1bbc4

13 files changed

+493
-431
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
From 72aaa3d28daa1b187059ef148c45bd9f186b430d Mon Sep 17 00:00:00 2001
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Matti Kosola <[email protected]>
33
Date: Thu, 9 Jul 2020 11:22:10 +0000
4-
Subject: [PATCH 2/4] Set proper llvm targets.
4+
Subject: [PATCH] Set proper llvm targets.
55

66
Signed-off-by: Matti Kosola <[email protected]>
7+
Signed-off-by: Ruben De Smet <[email protected]>
78
---
89
config.toml.example | 2 +-
910
1 file changed, 1 insertion(+), 1 deletion(-)
1011

1112
diff --git a/config.toml.example b/config.toml.example
12-
index 9121d1e1799..7990f01ab42 100644
13+
index 6e53d9b442f1609ec929f1c021984391d038e879..02b3a376409f5e523921aca8c89c2922c950aab3 100644
1314
--- a/config.toml.example
1415
+++ b/config.toml.example
15-
@@ -63,7 +63,7 @@
16+
@@ -103,7 +103,7 @@ changelog-seen = 2
1617
# support. You'll need to write a target specification at least, and most
1718
# likely, teach rustc about the C ABI of the target. Get in touch with the
1819
# Rust team and file an issue if you need assistance in porting!
19-
-#targets = "AArch64;ARM;Hexagon;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86"
20+
-#targets = "AArch64;ARM;BPF;Hexagon;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86"
2021
+targets = "X86;ARM;AArch64"
2122

2223
# LLVM experimental targets to build support for. These targets are specified in
2324
# the same format as above, but since these targets are experimental, they are
24-
--
25-
2.20.1
26-

0003-Disable-statx-for-all-builds.-JB-50106.patch renamed to 0002-Disable-statx-for-all-builds.-JB-50106.patch

+30-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 0ea195274d580ada6af1f9687647564d9a06ecd5 Mon Sep 17 00:00:00 2001
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Niels Breet <[email protected]>
33
Date: Tue, 11 May 2021 13:03:55 +0300
44
Subject: [PATCH] Disable statx for all builds. JB#50106
@@ -14,15 +14,40 @@ that gracefully without issues thanks to rust's type system.
1414

1515
Signed-off-by: Tomi Leppänen <[email protected]
1616
Signed-off-by: Matti Kosola <[email protected]>
17+
Signed-off-by: Ruben De Smet <[email protected]>
1718
---
18-
library/std/src/sys/unix/fs.rs | 15 ++-------------
19-
1 file changed, 2 insertions(+), 13 deletions(-)
19+
library/std/src/sys/unix/fs.rs | 27 ++-------------------------
20+
1 file changed, 2 insertions(+), 25 deletions(-)
2021

2122
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
22-
index d1b0ad9..f5ddc9b 100644
23+
index 7181451de575fcb8ff7df27ba5a66b18a08904be..141e1726db49f1ac483a5788bdbc31388a1c942e 100644
2324
--- a/library/std/src/sys/unix/fs.rs
2425
+++ b/library/std/src/sys/unix/fs.rs
25-
@@ -58,20 +58,9 @@ pub struct File(FileDesc);
26+
@@ -13,23 +13,11 @@
27+
use crate::sys::{cvt, cvt_r};
28+
use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner};
29+
30+
-#[cfg(any(
31+
- all(target_os = "linux", target_env = "gnu"),
32+
- target_os = "macos",
33+
- target_os = "ios",
34+
-))]
35+
-use crate::sys::weak::syscall;
36+
#[cfg(target_os = "macos")]
37+
use crate::sys::weak::weak;
38+
39+
use libc::{c_int, mode_t};
40+
41+
-#[cfg(any(
42+
- target_os = "macos",
43+
- target_os = "ios",
44+
- all(target_os = "linux", target_env = "gnu")
45+
-))]
46+
-use libc::c_char;
47+
#[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "android"))]
48+
use libc::dirfd;
49+
#[cfg(any(target_os = "linux", target_os = "emscripten"))]
50+
@@ -85,20 +73,9 @@
2651
// https://github.com/rust-lang/rust/pull/67774
2752
macro_rules! cfg_has_statx {
2853
({ $($then_tt:tt)* } else { $($else_tt:tt)* }) => {
@@ -45,6 +70,3 @@ index d1b0ad9..f5ddc9b 100644
4570
}
4671

4772
cfg_has_statx! {{
48-
--
49-
1.9.1
50-

0004-Scratchbox2-needs-to-be-able-to-tell-rustc-the-defau.patch renamed to 0003-Scratchbox2-needs-to-be-able-to-tell-rustc-the-defau.patch

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ac226bbc018e11311394126fe580763c5bc77a2c Mon Sep 17 00:00:00 2001
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: Niels Breet <[email protected]>
33
Date: Tue, 11 May 2021 13:10:49 +0300
44
Subject: [PATCH] Scratchbox2 needs to be able to tell rustc the default
@@ -9,15 +9,16 @@ hardcode this for a cross-compiler, using an environment variable
99
allows the same rustc binary to be used for all builds.
1010

1111
Signed-off-by: David Greaves <[email protected]>
12+
Signed-off-by: Ruben De Smet <[email protected]>
1213
---
1314
compiler/rustc_session/src/config.rs | 9 ++++++++-
1415
1 file changed, 8 insertions(+), 1 deletion(-)
1516

1617
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
17-
index 85448b7..ec51c50 100644
18+
index 4182a5d07118e0652ff63c4bec28bde0775d0c59..9904ab2e70d7aafab4ec63e86d0cdb383ca2285b 100644
1819
--- a/compiler/rustc_session/src/config.rs
1920
+++ b/compiler/rustc_session/src/config.rs
20-
@@ -1537,7 +1537,14 @@ fn parse_target_triple(matches: &getopts::Matches, error_format: ErrorOutputType
21+
@@ -1848,7 +1848,14 @@ pub fn parse_target_triple(
2122
})
2223
}
2324
Some(target) => TargetTriple::TargetTriple(target),
@@ -33,6 +34,3 @@ index 85448b7..ec51c50 100644
3334
}
3435
}
3536

36-
--
37-
1.9.1
38-
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
From f58f4a0fb53df2b1b27c11986596c62de803afdf Mon Sep 17 00:00:00 2001
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
22
From: David Greaves <[email protected]>
33
Date: Mon, 30 Nov 2020 13:07:39 +0000
44
Subject: [PATCH] Force the target when building for CompileKind::Host
55

66
Currently hardwired to be i686-unknown-linux-gnu
77

88
Signed-off-by: David Greaves <[email protected]>
9+
Signed-off-by: Ruben De Smet <[email protected]>
910
---
10-
src/tools/cargo/src/cargo/core/compiler/mod.rs | 3 +++
11-
1 file changed, 3 insertions(+)
11+
src/tools/cargo | 2 +-
12+
1 file changed, 1 insertion(+), 1 deletion(-)
1213

1314
diff --git a/src/tools/cargo/src/cargo/core/compiler/mod.rs b/src/tools/cargo/src/cargo/core/compiler/mod.rs
14-
index faee6e5..4af3f29 100644
1515
--- a/src/tools/cargo/src/cargo/core/compiler/mod.rs
1616
+++ b/src/tools/cargo/src/cargo/core/compiler/mod.rs
17-
@@ -912,6 +912,9 @@ fn build_base_args<'a, 'cfg>(
18-
17+
@@ -989,6 +989,9 @@ fn build_base_args(
18+
1919
if let CompileKind::Target(n) = unit.kind {
2020
cmd.arg("--target").arg(n.rustc_target());
2121
+ } else {
22-
+ debug!("kind is {:?} - Forcing this to be 686", unit.kind);
22+
+ debug!("kind is {:?} - Forcing this to be 686", unit.kind);
2323
+ cmd.arg("--target").arg("i686-unknown-linux-gnu");
2424
}
25-
26-
opt(
27-
--
28-
2.20.1
2925

26+
opt(

0 commit comments

Comments
 (0)