git: bf9da96ad4c8 - main - devel/electron37: fix build with rust 1.89.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Aug 2025 07:24:51 UTC
The branch main has been updated by tagattie:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bf9da96ad4c8b53ff48cc1f559ae1a32221001a5
commit bf9da96ad4c8b53ff48cc1f559ae1a32221001a5
Author: Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2025-08-26 07:23:07 +0000
Commit: Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-08-26 07:24:32 +0000
devel/electron37: fix build with rust 1.89.0
Obtained from: https://chromium.googlesource.com/chromium/src/+/8393b61ba876c8e1614275c97767f9b06b889f48%5E%21/#F0,
https://chromium.googlesource.com/chromium/src/+/6aae0e2353c857d98980ff677bf304288d7c58de%5E%21/#F0
Pull Request: https://github.com/tagattie/FreeBSD-Electron/pull/165
---
devel/electron37/files/patch-build_rust_allocator_lib.rs | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/devel/electron37/files/patch-build_rust_allocator_lib.rs b/devel/electron37/files/patch-build_rust_allocator_lib.rs
new file mode 100644
index 000000000000..3ee49686575f
--- /dev/null
+++ b/devel/electron37/files/patch-build_rust_allocator_lib.rs
@@ -0,0 +1,14 @@
+--- build/rust/allocator/lib.rs.orig 2025-08-11 20:33:34 UTC
++++ build/rust/allocator/lib.rs
+@@ -86,9 +86,8 @@ mod both_allocators {
+ /// As part of rustc's contract for using `#[global_allocator]` without
+ /// rustc-generated shims we must define this symbol, since we are opting in
+ /// to unstable functionality. See https://github.com/rust-lang/rust/issues/123015
+- #[no_mangle]
+- #[linkage = "weak"]
+- static __rust_no_alloc_shim_is_unstable: u8 = 0;
++ #[rustc_std_internal_symbol]
++ fn __rust_no_alloc_shim_is_unstable_v2() {}
+
+ // Mangle the symbol name as rustc expects.
+ #[rustc_std_internal_symbol]