Skip to content

Commit 74da0f8

Browse files
committed
Rebase patches on 1.75.0
1 parent bc474b9 commit 74da0f8

6 files changed

+48
-48
lines changed

0001-Set-proper-llvm-targets.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Signed-off-by: Ruben De Smet <[email protected]>
1010
1 file changed, 1 insertion(+), 1 deletion(-)
1111

1212
diff --git a/config.example.toml b/config.example.toml
13-
index 5c4bee87553..63946e46122 100644
13+
index e5df28a49af..48a9fafea6f 100644
1414
--- a/config.example.toml
1515
+++ b/config.example.toml
16-
@@ -88,7 +88,7 @@ changelog-seen = 2
16+
@@ -99,7 +99,7 @@ change-id = 116881
1717
# the resulting rustc being unable to compile for the disabled architectures.
1818
#
1919
# To add support for new targets, see https://rustc-dev-guide.rust-lang.org/building/new-target.html.
@@ -23,5 +23,5 @@ index 5c4bee87553..63946e46122 100644
2323
# LLVM experimental targets to build support for. These targets are specified in
2424
# the same format as above, but since these targets are experimental, they are
2525
--
26-
2.42.0
26+
2.43.0
2727

0002-Disable-statx-for-all-builds.-JB-50106.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Signed-off-by: Ruben De Smet <[email protected]>
2020
1 file changed, 2 insertions(+), 30 deletions(-)
2121

2222
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
23-
index a5604c92a80..8438d7dcc30 100644
23+
index 40eb910fdc3..8798aa7061c 100644
2424
--- a/library/std/src/sys/unix/fs.rs
2525
+++ b/library/std/src/sys/unix/fs.rs
2626
@@ -17,28 +17,11 @@
@@ -49,10 +49,10 @@ index a5604c92a80..8438d7dcc30 100644
4949
- all(target_os = "linux", target_env = "gnu")
5050
-))]
5151
-use libc::c_char;
52-
#[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "android"))]
53-
use libc::dirfd;
54-
#[cfg(any(target_os = "linux", target_os = "emscripten"))]
55-
@@ -98,20 +81,9 @@
52+
#[cfg(any(
53+
all(target_os = "linux", not(target_env = "musl")),
54+
target_os = "emscripten",
55+
@@ -117,20 +100,9 @@
5656
// https://github.com/rust-lang/rust/pull/67774
5757
macro_rules! cfg_has_statx {
5858
({ $($then_tt:tt)* } else { $($else_tt:tt)* }) => {
@@ -76,5 +76,5 @@ index a5604c92a80..8438d7dcc30 100644
7676

7777
cfg_has_statx! {{
7878
--
79-
2.42.0
79+
2.43.0
8080

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Signed-off-by: Ruben De Smet <[email protected]>
1515
1 file changed, 8 insertions(+), 1 deletion(-)
1616

1717
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs
18-
index f00472f181d..a2b9fbf82db 100644
18+
index f745bc390ca..934f16ab4ab 100644
1919
--- a/compiler/rustc_session/src/config.rs
2020
+++ b/compiler/rustc_session/src/config.rs
21-
@@ -2226,7 +2226,14 @@ pub fn parse_target_triple(
21+
@@ -2241,7 +2241,14 @@ pub fn parse_target_triple(
2222
})
2323
}
2424
Some(target) => TargetTriple::TargetTriple(target),
@@ -35,5 +35,5 @@ index f00472f181d..a2b9fbf82db 100644
3535
}
3636

3737
--
38-
2.42.0
38+
2.43.0
3939

0005-Provide-ENV-controls-to-bypass-some-sb2-calls-betwee.patch

+11-11
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ Signed-off-by: Ruben De Smet <[email protected]>
4141
2 files changed, 172 insertions(+), 20 deletions(-)
4242

4343
diff --git a/library/std/src/sys/unix/process/process_common.rs b/library/std/src/sys/unix/process/process_common.rs
44-
index 640648e8707..f15625e0514 100644
44+
index bac32d9e60e..3cd9767da88 100644
4545
--- a/library/std/src/sys/unix/process/process_common.rs
4646
+++ b/library/std/src/sys/unix/process/process_common.rs
47-
@@ -84,7 +84,7 @@ pub unsafe fn sigaddset(set: *mut libc::sigset_t, signum: libc::c_int) -> libc::
47+
@@ -85,7 +85,7 @@ pub unsafe fn sigaddset(set: *mut libc::sigset_t, signum: libc::c_int) -> libc::
4848
////////////////////////////////////////////////////////////////////////////////
4949

5050
pub struct Command {
@@ -53,7 +53,7 @@ index 640648e8707..f15625e0514 100644
5353
args: Vec<CString>,
5454
/// Exactly what will be passed to `execvp`.
5555
///
56-
@@ -93,6 +93,13 @@ pub struct Command {
56+
@@ -94,6 +94,13 @@ pub struct Command {
5757
/// `args` to properly update this as well.
5858
argv: Argv,
5959
env: CommandEnv,
@@ -67,7 +67,7 @@ index 640648e8707..f15625e0514 100644
6767

6868
program_kind: ProgramKind,
6969
cwd: Option<CString>,
70-
@@ -109,6 +116,14 @@ pub struct Command {
70+
@@ -110,6 +117,14 @@ pub struct Command {
7171
pgroup: Option<pid_t>,
7272
}
7373

@@ -82,7 +82,7 @@ index 640648e8707..f15625e0514 100644
8282
// Create a new type for argv, so that we can make it `Send` and `Sync`
8383
struct Argv(Vec<*const c_char>);
8484

85-
@@ -181,16 +196,24 @@ pub fn new(program: &OsStr) -> Command {
85+
@@ -183,16 +198,24 @@ pub fn new(program: &OsStr) -> Command {
8686
let mut saw_nul = false;
8787
let program_kind = ProgramKind::new(program.as_ref());
8888
let program = os2c(program, &mut saw_nul);
@@ -110,7 +110,7 @@ index 640648e8707..f15625e0514 100644
110110
closures: Vec::new(),
111111
groups: None,
112112
stdin: None,
113-
@@ -205,16 +228,24 @@ pub fn new(program: &OsStr) -> Command {
113+
@@ -207,16 +230,24 @@ pub fn new(program: &OsStr) -> Command {
114114
let mut saw_nul = false;
115115
let program_kind = ProgramKind::new(program.as_ref());
116116
let program = os2c(program, &mut saw_nul);
@@ -138,7 +138,7 @@ index 640648e8707..f15625e0514 100644
138138
closures: Vec::new(),
139139
groups: None,
140140
stdin: None,
141-
@@ -225,6 +256,16 @@ pub fn new(program: &OsStr) -> Command {
141+
@@ -227,6 +258,16 @@ pub fn new(program: &OsStr) -> Command {
142142
}
143143
}
144144

@@ -156,7 +156,7 @@ index 640648e8707..f15625e0514 100644
156156
// Set a new arg0
157157
let arg = os2c(arg, &mut self.saw_nul);
158158
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs
159-
index 3963e7f52d5..b491c2ad75f 100644
159+
index 72aca4e6659..495368b58ec 100644
160160
--- a/library/std/src/sys/unix/process/process_unix.rs
161161
+++ b/library/std/src/sys/unix/process/process_unix.rs
162162
@@ -25,7 +25,7 @@
@@ -350,7 +350,7 @@ index 3963e7f52d5..b491c2ad75f 100644
350350
}
351351

352352
if let Some(pgroup) = self.get_pgroup() {
353-
@@ -401,8 +504,12 @@ fn drop(&mut self) {
353+
@@ -408,8 +511,12 @@ fn drop(&mut self) {
354354
_reset = Some(Reset(*sys::os::environ()));
355355
*sys::os::environ() = envp.as_ptr();
356356
}
@@ -365,15 +365,15 @@ index 3963e7f52d5..b491c2ad75f 100644
365365
Err(io::Error::last_os_error())
366366
}
367367

368-
@@ -429,6 +536,7 @@ fn posix_spawn(
368+
@@ -436,6 +543,7 @@ fn posix_spawn(
369369
_: &ChildPipes,
370370
_: Option<&CStringArray>,
371371
) -> io::Result<Option<Process>> {
372372
+ eprintln!("process_unix:270: in null posix_spawn");
373373
Ok(None)
374374
}
375375

376-
@@ -452,12 +560,15 @@ fn posix_spawn(
376+
@@ -459,12 +567,15 @@ fn posix_spawn(
377377
use crate::mem::MaybeUninit;
378378
use crate::sys::{self, cvt_nz, unix_sigpipe_attr_specified};
379379

0007-Disable-aarch64-outline-atomics-for-now.patch

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ The feature causes linking problems.
1010

1111
Signed-off-by: Matti Lehtimäki <[email protected]>
1212
---
13-
compiler/rustc_target/src/spec/aarch64_unknown_linux_gnu.rs | 2 +-
13+
.../rustc_target/src/spec/targets/aarch64_unknown_linux_gnu.rs | 2 +-
1414
1 file changed, 1 insertion(+), 1 deletion(-)
1515

16-
diff --git a/compiler/rustc_target/src/spec/aarch64_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/aarch64_unknown_linux_gnu.rs
17-
index da246089440..8c5daccc331 100644
18-
--- a/compiler/rustc_target/src/spec/aarch64_unknown_linux_gnu.rs
19-
+++ b/compiler/rustc_target/src/spec/aarch64_unknown_linux_gnu.rs
16+
diff --git a/compiler/rustc_target/src/spec/targets/aarch64_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/aarch64_unknown_linux_gnu.rs
17+
index c0b07db3818..b8f240295be 100644
18+
--- a/compiler/rustc_target/src/spec/targets/aarch64_unknown_linux_gnu.rs
19+
+++ b/compiler/rustc_target/src/spec/targets/aarch64_unknown_linux_gnu.rs
2020
@@ -7,7 +7,7 @@ pub fn target() -> Target {
2121
data_layout: "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128".into(),
2222
arch: "aarch64".into(),
@@ -27,5 +27,5 @@ index da246089440..8c5daccc331 100644
2727
max_atomic_width: Some(128),
2828
supported_sanitizers: SanitizerSet::ADDRESS
2929
--
30-
2.42.0
30+
2.43.0
3131

0008-Revert-Use-statx-s-64-bit-times-on-32-bit-linux-gnu.patch

+19-19
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ This reverts commit fec4818fdb40c82679f57fa7f26fcddc1a874c13.
1313
3 files changed, 42 insertions(+), 89 deletions(-)
1414

1515
diff --git a/library/std/src/os/linux/fs.rs b/library/std/src/os/linux/fs.rs
16-
index 479bbcc17a8..2e90d8d6be7 100644
16+
index ab0b2a3eda3..4ac9ae4fd04 100644
1717
--- a/library/std/src/os/linux/fs.rs
1818
+++ b/library/std/src/os/linux/fs.rs
19-
@@ -356,34 +356,19 @@ fn st_size(&self) -> u64 {
19+
@@ -363,34 +363,19 @@ fn st_size(&self) -> u64 {
2020
self.as_inner().as_inner().st_size as u64
2121
}
2222
fn st_atime(&self) -> i64 {
@@ -55,10 +55,10 @@ index 479bbcc17a8..2e90d8d6be7 100644
5555
fn st_ctime_nsec(&self) -> i64 {
5656
self.as_inner().as_inner().st_ctime_nsec as i64
5757
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
58-
index 8438d7dcc30..c5ca8582f88 100644
58+
index 8798aa7061c..1d92664b2e1 100644
5959
--- a/library/std/src/sys/unix/fs.rs
6060
+++ b/library/std/src/sys/unix/fs.rs
61-
@@ -98,19 +98,10 @@ struct StatxExtraFields {
61+
@@ -117,19 +117,10 @@ struct StatxExtraFields {
6262
// This is needed to check if btime is supported by the filesystem.
6363
stx_mask: u32,
6464
stx_btime: libc::statx_timestamp,
@@ -80,7 +80,7 @@ index 8438d7dcc30..c5ca8582f88 100644
8080
unsafe fn try_statx(
8181
fd: c_int,
8282
path: *const c_char,
83-
@@ -200,13 +191,6 @@ fn statx(
83+
@@ -219,13 +210,6 @@ fn statx(
8484
let extra = StatxExtraFields {
8585
stx_mask: buf.stx_mask,
8686
stx_btime: buf.stx_btime,
@@ -94,7 +94,7 @@ index 8438d7dcc30..c5ca8582f88 100644
9494
};
9595

9696
Some(Ok(FileAttr { stat, statx_extra_fields: Some(extra) }))
97-
@@ -354,36 +338,6 @@ impl FileAttr {
97+
@@ -380,36 +364,6 @@ impl FileAttr {
9898
fn from_stat64(stat: stat64) -> Self {
9999
Self { stat, statx_extra_fields: None }
100100
}
@@ -131,7 +131,7 @@ index 8438d7dcc30..c5ca8582f88 100644
131131
}
132132
} else {
133133
impl FileAttr {
134-
@@ -409,15 +363,24 @@ pub fn file_type(&self) -> FileType {
134+
@@ -435,15 +389,24 @@ pub fn file_type(&self) -> FileType {
135135
#[cfg(target_os = "netbsd")]
136136
impl FileAttr {
137137
pub fn modified(&self) -> io::Result<SystemTime> {
@@ -159,8 +159,8 @@ index 8438d7dcc30..c5ca8582f88 100644
159159
}
160160
}
161161

162-
@@ -430,19 +393,18 @@ impl FileAttr {
163-
target_os = "vita"
162+
@@ -472,19 +435,18 @@ impl FileAttr {
163+
target_os = "hurd",
164164
)))]
165165
pub fn modified(&self) -> io::Result<SystemTime> {
166166
- #[cfg(target_pointer_width = "32")]
@@ -186,9 +186,9 @@ index 8438d7dcc30..c5ca8582f88 100644
186186
+ }))
187187
}
188188

189-
#[cfg(target_os = "horizon")]
190-
@@ -457,19 +419,18 @@ pub fn modified(&self) -> io::Result<SystemTime> {
191-
target_os = "vita"
189+
#[cfg(any(target_os = "horizon", target_os = "hurd"))]
190+
@@ -500,19 +462,18 @@ pub fn modified(&self) -> io::Result<SystemTime> {
191+
target_os = "hurd",
192192
)))]
193193
pub fn accessed(&self) -> io::Result<SystemTime> {
194194
- #[cfg(target_pointer_width = "32")]
@@ -214,8 +214,8 @@ index 8438d7dcc30..c5ca8582f88 100644
214214
+ }))
215215
}
216216

217-
#[cfg(target_os = "horizon")]
218-
@@ -486,7 +447,10 @@ pub fn accessed(&self) -> io::Result<SystemTime> {
217+
#[cfg(any(target_os = "horizon", target_os = "hurd"))]
218+
@@ -529,7 +490,10 @@ pub fn accessed(&self) -> io::Result<SystemTime> {
219219
target_os = "watchos",
220220
))]
221221
pub fn created(&self) -> io::Result<SystemTime> {
@@ -227,7 +227,7 @@ index 8438d7dcc30..c5ca8582f88 100644
227227
}
228228

229229
#[cfg(not(any(
230-
@@ -502,7 +466,10 @@ pub fn created(&self) -> io::Result<SystemTime> {
230+
@@ -545,7 +509,10 @@ pub fn created(&self) -> io::Result<SystemTime> {
231231
cfg_has_statx! {
232232
if let Some(ext) = &self.statx_extra_fields {
233233
return if (ext.stx_mask & libc::STATX_BTIME) != 0 {
@@ -240,17 +240,17 @@ index 8438d7dcc30..c5ca8582f88 100644
240240
Err(io::const_io_error!(
241241
io::ErrorKind::Uncategorized,
242242
diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs
243-
index 17b4130c202..4e8dd9a86e7 100644
243+
index f2e86a4fb2b..fee9e07ec01 100644
244244
--- a/library/std/src/sys/unix/time.rs
245245
+++ b/library/std/src/sys/unix/time.rs
246-
@@ -36,6 +36,7 @@ pub(in crate::sys::unix) struct Timespec {
246+
@@ -34,6 +34,7 @@ pub(in crate::sys::unix) struct Timespec {
247247

248248
impl SystemTime {
249-
#[cfg_attr(target_os = "horizon", allow(unused))]
249+
#[cfg_attr(any(target_os = "horizon", target_os = "hurd"), allow(unused))]
250250
+ #[cfg_attr(target_env = "gnu", allow(dead_code))]
251251
pub fn new(tv_sec: i64, tv_nsec: i64) -> SystemTime {
252252
SystemTime { t: Timespec::new(tv_sec, tv_nsec) }
253253
}
254254
--
255-
2.42.0
255+
2.43.0
256256

0 commit comments

Comments
 (0)