FreeBSD Bugzilla – Attachment 245644 Details for
Bug 274499
lang/rust: Update to 1.73.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
v0
rust-1.73.0.patch (text/plain), 11.56 KB, created by
Mikael Urankar
on 2023-10-15 18:02:16 UTC
(
hide
)
Description:
v0
Filename:
MIME Type:
Creator:
Mikael Urankar
Created:
2023-10-15 18:02:16 UTC
Size:
11.56 KB
patch
obsolete
>From bc683ce4afb90edb8152640016cc31d14d34955a Mon Sep 17 00:00:00 2001 >From: Mikael Urankar <mikael@FreeBSD.org> >Date: Sun, 15 Oct 2023 19:51:28 +0200 >Subject: [PATCH 1/3] www/firefox: fix build with rust 1.73.0 > >The crate packed_simd_2 is not maintained anymore. >firefox switched to packed_simd [1] in [2] but >it's not yet part of firefox 118. >Backport [3] to fix the following issue: > >error: unrecognized platform-specific intrinsic function: `simd_shuffle2` > --> /wrkdirs/usr/ports/www/librewolf/work/librewolf-117.0-1/third_party/rust/packed_simd_2/src/codegen/llvm.rs:10:5 > | >10 | pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U; > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >[1] https://github.com/rust-lang/packed_simd/ >[2] https://github.com/mozilla/gecko-dev/commit/1e1bec8c6e383abf667d64ba1e556a4e68833f28 >[3] https://github.com/rust-lang/packed_simd/commit/a79edf4cfc54aad30a5630b217645c4b8274d8f7 >--- > www/firefox/files/patch-rust-1.73.0 | 83 +++++++++++++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 www/firefox/files/patch-rust-1.73.0 > >diff --git a/www/firefox/files/patch-rust-1.73.0 b/www/firefox/files/patch-rust-1.73.0 >new file mode 100644 >index 0000000000..b838ffd90d >--- /dev/null >+++ b/www/firefox/files/patch-rust-1.73.0 >@@ -0,0 +1,83 @@ >+From a79edf4cfc54aad30a5630b217645c4b8274d8f7 Mon Sep 17 00:00:00 2001 >+From: Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> >+Date: Mon, 10 Jul 2023 09:46:53 +0000 >+Subject: [PATCH] Stop using old-style `simd_shuffle` >+ >+--- >+ src/codegen/llvm.rs | 20 +++++++------------- >+ 1 file changed, 7 insertions(+), 13 deletions(-) >+ >+diff --git third_party/rust/packed_simd_2/src/codegen/llvm.rs third_party/rust/packed_simd_2/src/codegen/llvm.rs >+index b4c09849..bb482fac 100644 >+--- third_party/rust/packed_simd_2/src/codegen/llvm.rs >++++ third_party/rust/packed_simd_2/src/codegen/llvm.rs >+@@ -5,14 +5,8 @@ use crate::sealed::Shuffle; >+ #[allow(unused_imports)] // FIXME: spurious warning? >+ use crate::sealed::Simd; >+ >+-// Shuffle intrinsics: expanded in users' crates, therefore public. >+ extern "platform-intrinsic" { >+- pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U; >+- pub fn simd_shuffle4<T, U>(x: T, y: T, idx: [u32; 4]) -> U; >+- pub fn simd_shuffle8<T, U>(x: T, y: T, idx: [u32; 8]) -> U; >+- pub fn simd_shuffle16<T, U>(x: T, y: T, idx: [u32; 16]) -> U; >+- pub fn simd_shuffle32<T, U>(x: T, y: T, idx: [u32; 32]) -> U; >+- pub fn simd_shuffle64<T, U>(x: T, y: T, idx: [u32; 64]) -> U; >++ fn simd_shuffle<T, I, U>(x: T, y: T, idx: I) -> U; >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -22,7 +16,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 2], Output = U>, >+ { >+- simd_shuffle2(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -32,7 +26,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 4], Output = U>, >+ { >+- simd_shuffle4(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -42,7 +36,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 8], Output = U>, >+ { >+- simd_shuffle8(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -52,7 +46,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 16], Output = U>, >+ { >+- simd_shuffle16(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -62,7 +56,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 32], Output = U>, >+ { >+- simd_shuffle32(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -72,7 +66,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 64], Output = U>, >+ { >+- simd_shuffle64(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ extern "platform-intrinsic" { >-- >2.42.0 > > >From 2874be6eb15d232481bad33e5c65e0fc42ddfca9 Mon Sep 17 00:00:00 2001 >From: Mikael Urankar <mikael@FreeBSD.org> >Date: Sun, 15 Oct 2023 19:58:23 +0200 >Subject: [PATCH 2/3] www/tor-browser: fix build with rust 1.73.0 > >The crate packed_simd_2 is not maintained anymore. >firefox switched to packed_simd [1] in [2] but >it's not yet part of tor-browser 12.0.6 >Backport [3] to fix the following issue: > >error: unrecognized platform-specific intrinsic function: `simd_shuffle2` > --> /wrkdirs/usr/ports/www/librewolf/work/librewolf-117.0-1/third_party/rust/packed_simd_2/src/codegen/llvm.rs:10:5 > | >10 | pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U; > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >[1] https://github.com/rust-lang/packed_simd/ >[2] https://github.com/mozilla/gecko-dev/commit/1e1bec8c6e383abf667d64ba1e556a4e68833f28 >[3] https://github.com/rust-lang/packed_simd/commit/a79edf4cfc54aad30a5630b217645c4b8274d8f7 >--- > www/tor-browser/files/patch-rust-1.73.0 | 83 +++++++++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 www/tor-browser/files/patch-rust-1.73.0 > >diff --git a/www/tor-browser/files/patch-rust-1.73.0 b/www/tor-browser/files/patch-rust-1.73.0 >new file mode 100644 >index 0000000000..b838ffd90d >--- /dev/null >+++ b/www/tor-browser/files/patch-rust-1.73.0 >@@ -0,0 +1,83 @@ >+From a79edf4cfc54aad30a5630b217645c4b8274d8f7 Mon Sep 17 00:00:00 2001 >+From: Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> >+Date: Mon, 10 Jul 2023 09:46:53 +0000 >+Subject: [PATCH] Stop using old-style `simd_shuffle` >+ >+--- >+ src/codegen/llvm.rs | 20 +++++++------------- >+ 1 file changed, 7 insertions(+), 13 deletions(-) >+ >+diff --git third_party/rust/packed_simd_2/src/codegen/llvm.rs third_party/rust/packed_simd_2/src/codegen/llvm.rs >+index b4c09849..bb482fac 100644 >+--- third_party/rust/packed_simd_2/src/codegen/llvm.rs >++++ third_party/rust/packed_simd_2/src/codegen/llvm.rs >+@@ -5,14 +5,8 @@ use crate::sealed::Shuffle; >+ #[allow(unused_imports)] // FIXME: spurious warning? >+ use crate::sealed::Simd; >+ >+-// Shuffle intrinsics: expanded in users' crates, therefore public. >+ extern "platform-intrinsic" { >+- pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U; >+- pub fn simd_shuffle4<T, U>(x: T, y: T, idx: [u32; 4]) -> U; >+- pub fn simd_shuffle8<T, U>(x: T, y: T, idx: [u32; 8]) -> U; >+- pub fn simd_shuffle16<T, U>(x: T, y: T, idx: [u32; 16]) -> U; >+- pub fn simd_shuffle32<T, U>(x: T, y: T, idx: [u32; 32]) -> U; >+- pub fn simd_shuffle64<T, U>(x: T, y: T, idx: [u32; 64]) -> U; >++ fn simd_shuffle<T, I, U>(x: T, y: T, idx: I) -> U; >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -22,7 +16,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 2], Output = U>, >+ { >+- simd_shuffle2(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -32,7 +26,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 4], Output = U>, >+ { >+- simd_shuffle4(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -42,7 +36,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 8], Output = U>, >+ { >+- simd_shuffle8(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -52,7 +46,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 16], Output = U>, >+ { >+- simd_shuffle16(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -62,7 +56,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 32], Output = U>, >+ { >+- simd_shuffle32(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -72,7 +66,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 64], Output = U>, >+ { >+- simd_shuffle64(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ extern "platform-intrinsic" { >-- >2.42.0 > > >From 9ad79d36155fd66bc93c06246df4bd8a6711d2b1 Mon Sep 17 00:00:00 2001 >From: Mikael Urankar <mikael@FreeBSD.org> >Date: Sun, 15 Oct 2023 19:58:51 +0200 >Subject: [PATCH 3/3] www/librewolf: fix build with rust 1.73.0 > >The crate packed_simd_2 is not maintained anymore. >firefox switched to packed_simd [1] in [2] but >it's not yet part of librewolf 117 >Backport [3] to fix the following issue: > >error: unrecognized platform-specific intrinsic function: `simd_shuffle2` > --> /wrkdirs/usr/ports/www/librewolf/work/librewolf-117.0-1/third_party/rust/packed_simd_2/src/codegen/llvm.rs:10:5 > | >10 | pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U; > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > >[1] https://github.com/rust-lang/packed_simd/ >[2] https://github.com/mozilla/gecko-dev/commit/1e1bec8c6e383abf667d64ba1e556a4e68833f28 >[3] https://github.com/rust-lang/packed_simd/commit/a79edf4cfc54aad30a5630b217645c4b8274d8f7 >--- > www/librewolf/files/patch-rust-1.73.0 | 83 +++++++++++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 www/librewolf/files/patch-rust-1.73.0 > >diff --git a/www/librewolf/files/patch-rust-1.73.0 b/www/librewolf/files/patch-rust-1.73.0 >new file mode 100644 >index 0000000000..b838ffd90d >--- /dev/null >+++ b/www/librewolf/files/patch-rust-1.73.0 >@@ -0,0 +1,83 @@ >+From a79edf4cfc54aad30a5630b217645c4b8274d8f7 Mon Sep 17 00:00:00 2001 >+From: Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> >+Date: Mon, 10 Jul 2023 09:46:53 +0000 >+Subject: [PATCH] Stop using old-style `simd_shuffle` >+ >+--- >+ src/codegen/llvm.rs | 20 +++++++------------- >+ 1 file changed, 7 insertions(+), 13 deletions(-) >+ >+diff --git third_party/rust/packed_simd_2/src/codegen/llvm.rs third_party/rust/packed_simd_2/src/codegen/llvm.rs >+index b4c09849..bb482fac 100644 >+--- third_party/rust/packed_simd_2/src/codegen/llvm.rs >++++ third_party/rust/packed_simd_2/src/codegen/llvm.rs >+@@ -5,14 +5,8 @@ use crate::sealed::Shuffle; >+ #[allow(unused_imports)] // FIXME: spurious warning? >+ use crate::sealed::Simd; >+ >+-// Shuffle intrinsics: expanded in users' crates, therefore public. >+ extern "platform-intrinsic" { >+- pub fn simd_shuffle2<T, U>(x: T, y: T, idx: [u32; 2]) -> U; >+- pub fn simd_shuffle4<T, U>(x: T, y: T, idx: [u32; 4]) -> U; >+- pub fn simd_shuffle8<T, U>(x: T, y: T, idx: [u32; 8]) -> U; >+- pub fn simd_shuffle16<T, U>(x: T, y: T, idx: [u32; 16]) -> U; >+- pub fn simd_shuffle32<T, U>(x: T, y: T, idx: [u32; 32]) -> U; >+- pub fn simd_shuffle64<T, U>(x: T, y: T, idx: [u32; 64]) -> U; >++ fn simd_shuffle<T, I, U>(x: T, y: T, idx: I) -> U; >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -22,7 +16,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 2], Output = U>, >+ { >+- simd_shuffle2(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -32,7 +26,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 4], Output = U>, >+ { >+- simd_shuffle4(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -42,7 +36,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 8], Output = U>, >+ { >+- simd_shuffle8(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -52,7 +46,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 16], Output = U>, >+ { >+- simd_shuffle16(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -62,7 +56,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 32], Output = U>, >+ { >+- simd_shuffle32(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ #[allow(clippy::missing_safety_doc)] >+@@ -72,7 +66,7 @@ where >+ T: Simd, >+ <T as Simd>::Element: Shuffle<[u32; 64], Output = U>, >+ { >+- simd_shuffle64(x, y, IDX) >++ simd_shuffle(x, y, IDX) >+ } >+ >+ extern "platform-intrinsic" { >-- >2.42.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 274499
:
245644
|
245645
|
245669