Skip to content

Commit 9e25c68

Browse files
committed
lang/rust-nightly: Update to 1.83.0
1 parent 32b38af commit 9e25c68

12 files changed

+100
-178
lines changed

‎lang/rust-nightly/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Run update.sh to update to the latest nightly
2-
PORTVERSION= 1.80.0.${NIGHTLY_DATE:C,-,,g}
2+
PORTVERSION= 1.83.0.${NIGHTLY_DATE:C,-,,g}
33
# Always set PORTREVISION explicitly as otherwise it is inherited from lang/rust
44
PORTREVISION= 0
55
PKGNAMESUFFIX= -nightly
@@ -14,8 +14,8 @@ MASTERDIR= ${.CURDIR}/../rust
1414
PATCHDIR= ${.CURDIR}/files
1515
DISTINFO_FILE= ${.CURDIR}/distinfo
1616

17-
NIGHTLY_DATE= 2024-05-07
18-
BOOTSTRAPS_DATE= 2024-04-29
17+
NIGHTLY_DATE= 2024-10-01
18+
BOOTSTRAPS_DATE= 2024-09-22
1919
RUST_BOOTSTRAP_VERSION= beta
2020

2121
.include "${MASTERDIR}/Makefile"

‎lang/rust-nightly/distinfo‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
TIMESTAMP = 1715170997
2-
SHA256 (rust/2024-05-07/rustc-nightly-src.tar.xz) = 980396ea6f15b926155ffaab4d56f70a0729a18a98ed99fe11004b5709855458
3-
SIZE (rust/2024-05-07/rustc-nightly-src.tar.xz) = 162781340
4-
SHA256 (rust/2024-04-29/rustc-beta-x86_64-unknown-freebsd.tar.xz) = 786f40030dbe5e6897aafe4bda44770920b2010b93fc5ce86574774e531e2eff
5-
SIZE (rust/2024-04-29/rustc-beta-x86_64-unknown-freebsd.tar.xz) = 75473648
6-
SHA256 (rust/2024-04-29/rust-std-beta-x86_64-unknown-freebsd.tar.xz) = 69626178bc5309afc8a02c941bd77e70e1aa6917ffb6bf0d67a57d921b5c664a
7-
SIZE (rust/2024-04-29/rust-std-beta-x86_64-unknown-freebsd.tar.xz) = 27096208
8-
SHA256 (rust/2024-04-29/cargo-beta-x86_64-unknown-freebsd.tar.xz) = 7fab806227d1a3be817602abb121ac7e039ba0bbf81e0a1d47bdcccca74203c6
9-
SIZE (rust/2024-04-29/cargo-beta-x86_64-unknown-freebsd.tar.xz) = 9257888
1+
TIMESTAMP = 1727858204
2+
SHA256 (rust/2024-10-01/rustc-nightly-src.tar.xz) = 46c2d963da26229b8cdeed978b5c9affa091486015d474c1f8a754282a332d1a
3+
SIZE (rust/2024-10-01/rustc-nightly-src.tar.xz) = 353516056
4+
SHA256 (rust/2024-09-22/rustc-beta-x86_64-unknown-freebsd.tar.xz) = aeabedce922b315fb872127a6102a76e9fe5e1932b14a7210f31191f9a85488b
5+
SIZE (rust/2024-09-22/rustc-beta-x86_64-unknown-freebsd.tar.xz) = 81004732
6+
SHA256 (rust/2024-09-22/rust-std-beta-x86_64-unknown-freebsd.tar.xz) = 8749c2ae47644c16f62a310500ab91e5403a25c3e023a2c6e25cfa16217c98e9
7+
SIZE (rust/2024-09-22/rust-std-beta-x86_64-unknown-freebsd.tar.xz) = 28846744
8+
SHA256 (rust/2024-09-22/cargo-beta-x86_64-unknown-freebsd.tar.xz) = 7912a49f7a181145b71a197014e3de6594b216959cd7c95a003fcd13854cb056
9+
SIZE (rust/2024-09-22/cargo-beta-x86_64-unknown-freebsd.tar.xz) = 9536628

‎lang/rust-nightly/files/no-hardlinks/patch-src_bootstrap_lib.rs‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎lang/rust-nightly/files/no-hardlinks/patch-src_bootstrap_native.rs‎

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- compiler/rustc_target/src/abi/call/powerpc64.rs.orig 2020-03-09 22:11:17 UTC
2+
+++ compiler/rustc_target/src/abi/call/powerpc64.rs
3+
@@ -123,7 +123,7 @@ where
4+
ELFv2
5+
} else {
6+
match cx.data_layout().endian {
7+
- Endian::Big => ELFv1,
8+
+ Endian::Big => ELFv2,
9+
Endian::Little => ELFv2,
10+
}
11+
};

‎lang/rust-nightly/files/patch-compiler_rustc__target_src_spec_i686__unknown__freebsd.rs‎ renamed to ‎lang/rust-nightly/files/patch-compiler_rustc__target_src_spec_targets_i686__unknown__freebsd.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
--- compiler/rustc_target/src/spec/targets/i686_unknown_freebsd.rs.orig 2023-11-27 08:52:00 UTC
1+
i386 should be pentiumpro (no SSE2, no ...)
2+
3+
--- compiler/rustc_target/src/spec/targets/i686_unknown_freebsd.rs.orig 2023-12-22 11:18:00 UTC
24
+++ compiler/rustc_target/src/spec/targets/i686_unknown_freebsd.rs
35
@@ -2,7 +2,7 @@ pub fn target() -> Target {
46

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- library/backtrace/src/backtrace/mod.rs.orig 2024-10-02 09:23:54.876659000 +0200
2+
+++ library/backtrace/src/backtrace/mod.rs 2024-10-02 09:23:44.139133000 +0200
3+
@@ -176,6 +176,7 @@ cfg_if::cfg_if! {
4+
unix,
5+
not(target_os = "emscripten"),
6+
not(all(target_os = "ios", target_arch = "arm")),
7+
+ not(all(target_os = "freebsd", target_arch = "riscv64")),
8+
),
9+
all(
10+
target_env = "sgx",

‎lang/rust-nightly/files/patch-src_tools_cargo_src_cargo_sources_git_source.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ be stabilized first. It will be available in Rust 1.56.
1313

1414
--- src/tools/cargo/src/cargo/sources/git/source.rs.orig 2021-10-04 20:59:57 UTC
1515
+++ src/tools/cargo/src/cargo/sources/git/source.rs
16-
@@ -195,6 +195,9 @@ impl<'cfg> Source for GitSource<'cfg> {
16+
@@ -205,6 +205,9 @@ impl<'cfg> Source for GitSource<'cfg> {
1717
kind: QueryKind,
1818
f: &mut dyn FnMut(IndexSummary),
1919
) -> Poll<CargoResult<()>> {
@@ -23,14 +23,14 @@ be stabilized first. It will be available in Rust 1.56.
2323
if let Some(src) = self.path_source.as_mut() {
2424
src.query(dep, kind, f)
2525
} else {
26-
@@ -217,6 +220,10 @@ impl<'cfg> Source for GitSource<'cfg> {
27-
fn block_until_ready(&mut self) -> CargoResult<()> {
26+
@@ -228,6 +231,10 @@ impl<'cfg> Source for GitSource<'cfg> {
2827
if self.path_source.is_some() {
2928
self.mark_used(None)?;
30-
+ return Ok(());
29+
return Ok(());
3130
+ }
3231
+
3332
+ if std::env::var("CARGO_FREEBSD_PORTS_SKIP_GIT_UPDATE").is_ok() {
34-
return Ok(());
33+
+ return Ok(());
3534
}
3635

36+
let git_fs = self.config.git_path();

‎lang/rust-nightly/files/patch-vendor_cc.rs‎

Lines changed: 29 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -8,92 +8,24 @@ until LLVM can be updated to use libc++ by default.
88

99
https://reviews.llvm.org/D77776
1010

11-
--- vendor/cc-1.0.73/src/lib.rs.orig 2021-03-04 20:58:54 UTC
12-
+++ vendor/cc-1.0.73/src/lib.rs
13-
@@ -2659,24 +2659,7 @@ impl Tool {
14-
}
15-
16-
fn with_features(path: PathBuf, clang_driver: Option<&str>, cuda: bool) -> Self {
17-
- // Try to detect family of the tool from its name, falling back to Gnu.
18-
- let family = if let Some(fname) = path.file_name().and_then(|p| p.to_str()) {
19-
- if fname.contains("clang-cl") {
20-
- ToolFamily::Msvc { clang_cl: true }
21-
- } else if fname.ends_with("cl") || fname == "cl.exe" {
22-
- ToolFamily::Msvc { clang_cl: false }
23-
- } else if fname.contains("clang") {
24-
- match clang_driver {
25-
- Some("cl") => ToolFamily::Msvc { clang_cl: true },
26-
- _ => ToolFamily::Clang,
27-
- }
28-
- } else {
29-
- ToolFamily::Gnu
30-
- }
31-
- } else {
32-
- ToolFamily::Gnu
33-
- };
34-
-
35-
+ let family = ToolFamily::Gnu;
36-
Tool {
37-
path: path,
38-
cc_wrapper_path: None,
11+
cc-1.1.10/ cc-1.1.22/
3912

40-
--- vendor/cc-1.0.79/src/lib.rs.orig 2021-03-04 20:58:54 UTC
41-
+++ vendor/cc-1.0.79/src/lib.rs
42-
@@ -2659,24 +2659,7 @@ impl Tool {
43-
}
13+
--- vendor/cc-1.0.105/src/tool.rs.orig 2024-05-09 18:20:47 UTC
14+
+++ vendor/cc-1.0.105/src/tool.rs
15+
@@ -151,9 +151,7 @@ impl Tool {
4416

45-
fn with_features(path: PathBuf, clang_driver: Option<&str>, cuda: bool) -> Self {
46-
- // Try to detect family of the tool from its name, falling back to Gnu.
47-
- let family = if let Some(fname) = path.file_name().and_then(|p| p.to_str()) {
48-
- if fname.contains("clang-cl") {
49-
- ToolFamily::Msvc { clang_cl: true }
50-
- } else if fname.ends_with("cl") || fname == "cl.exe" {
51-
- ToolFamily::Msvc { clang_cl: false }
52-
- } else if fname.contains("clang") {
53-
- match clang_driver {
54-
- Some("cl") => ToolFamily::Msvc { clang_cl: true },
55-
- _ => ToolFamily::Clang,
56-
- }
57-
- } else {
58-
- ToolFamily::Gnu
59-
- }
60-
- } else {
61-
- ToolFamily::Gnu
62-
- };
63-
-
64-
+ let family = ToolFamily::Gnu;
65-
Tool {
66-
path: path,
67-
cc_wrapper_path: None,
17+
match (clang, accepts_cl_style_flags, gcc) {
18+
(clang_cl, true, _) => Ok(ToolFamily::Msvc { clang_cl }),
19+
- (true, false, _) => Ok(ToolFamily::Clang {
20+
- zig_cc: is_zig_cc(path, cargo_output),
21+
- }),
22+
+ (true, false, _) => Ok(ToolFamily::Gnu),
23+
(false, false, true) => Ok(ToolFamily::Gnu),
24+
(false, false, false) => {
25+
cargo_output.print_warning(&"Compiler family detection failed since it does not define `__clang__`, `__GNUC__` or `_MSC_VER`, fallback to treating it as GNU");
6826

69-
--- vendor/cc-1.0.90/src/tool.rs.orig 2024-03-18 11:23:17 UTC
70-
+++ vendor/cc-1.0.90/src/tool.rs
71-
@@ -122,22 +122,7 @@ impl Tool {
72-
};
73-
74-
// Try to detect family of the tool from its name, falling back to Gnu.
75-
- let family = if let Some(fname) = path.file_name().and_then(|p| p.to_str()) {
76-
- if fname.contains("clang-cl") {
77-
- ToolFamily::Msvc { clang_cl: true }
78-
- } else if fname.ends_with("cl") || fname == "cl.exe" {
79-
- ToolFamily::Msvc { clang_cl: false }
80-
- } else if fname.contains("clang") {
81-
- match clang_driver {
82-
- Some("cl") => ToolFamily::Msvc { clang_cl: true },
83-
- _ => ToolFamily::Clang,
84-
- }
85-
- } else {
86-
- detect_family(&path)
87-
- }
88-
- } else {
89-
- detect_family(&path)
90-
- };
91-
+ let family = ToolFamily::Gnu;
92-
93-
Tool {
94-
path,
95-
--- vendor/cc-1.0.92/src/tool.rs.orig 2024-05-09 18:20:47 UTC
96-
+++ vendor/cc-1.0.92/src/tool.rs
27+
--- vendor/cc-1.1.10/src/tool.rs.orig 2024-05-09 18:20:47 UTC
28+
+++ vendor/cc-1.1.10/src/tool.rs
9729
@@ -151,9 +151,7 @@ impl Tool {
9830

9931
match (clang, accepts_cl_style_flags, gcc) {
@@ -105,3 +37,17 @@ https://reviews.llvm.org/D77776
10537
(false, false, true) => Ok(ToolFamily::Gnu),
10638
(false, false, false) => {
10739
cargo_output.print_warning(&"Compiler family detection failed since it does not define `__clang__`, `__GNUC__` or `_MSC_VER`, fallback to treating it as GNU");
40+
41+
--- vendor/cc-1.1.22/src/tool.rs.orig 2024-10-02 09:43:22.970422000 +0200
42+
+++ vendor/cc-1.1.22/src/tool.rs 2024-10-02 09:50:42.836352000 +0200
43+
@@ -174,9 +174,7 @@ impl Tool {
44+
45+
match (clang, accepts_cl_style_flags, gcc, emscripten, vxworks) {
46+
(clang_cl, true, _, false, false) => Ok(ToolFamily::Msvc { clang_cl }),
47+
- (true, _, _, _, false) | (_, _, _, true, false) => Ok(ToolFamily::Clang {
48+
- zig_cc: is_zig_cc(path, cargo_output),
49+
- }),
50+
+ (true, _, _, _, false) | (_, _, _, true, false) => Ok(ToolFamily::Gnu),
51+
(false, false, true, _, false) | (_, _, _, _, true) => Ok(ToolFamily::Gnu),
52+
(false, false, false, false, false) => {
53+
cargo_output.print_warning(&"Compiler family detection failed since it does not define `__clang__`, `__GNUC__`, `__EMSCRIPTEN__` or `__VXWORKS__`, also does not accept cl style flag `-?`, fallback to treating it as GNU");
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- vendor/nix-0.28.0/src/sys/signal.rs.orig 2024-06-14 14:06:00 UTC
2+
+++ vendor/nix-0.28.0/src/sys/signal.rs
3+
@@ -1099,7 +1099,7 @@ pub type type_of_thread_id = libc::lwpid_t;
4+
#[cfg(target_os = "freebsd")]
5+
pub type type_of_thread_id = libc::lwpid_t;
6+
/// Identifies a thread for [`SigevNotify::SigevThreadId`]
7+
-#[cfg(all(not(target_os = "hurd"), any(target_env = "gnu", target_env = "uclibc")))]
8+
+#[cfg(all(not(any(target_os = "freebsd", target_os = "hurd")), any(target_env = "gnu", target_env = "uclibc")))]
9+
pub type type_of_thread_id = libc::pid_t;
10+
11+
/// Specifies the notification method used by a [`SigEvent`]
12+
@@ -1349,7 +1349,7 @@ mod sigevent {
13+
sev.sigev_value.sival_ptr = si_value as *mut libc::c_void;
14+
sev._sigev_un._threadid = thread_id;
15+
}
16+
- #[cfg(any(target_env = "gnu", target_env = "uclibc"))]
17+
+ #[cfg(all(not(target_os = "freebsd"), any(target_env = "gnu", target_env = "uclibc")))]
18+
SigevNotify::SigevThreadId{signal, thread_id, si_value} => {
19+
sev.sigev_notify = libc::SIGEV_THREAD_ID;
20+
sev.sigev_signo = signal as libc::c_int;

0 commit comments

Comments
 (0)