From e411f05bdec606390c65e5658fdc62fc0f32f8f5 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 12 Feb 2025 01:22:56 +0300 Subject: [PATCH] update --- SOURCES/chromium-133-rust-crc32fast.patch | 11 +++++++++++ SPECS/chromium.spec | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 SOURCES/chromium-133-rust-crc32fast.patch diff --git a/SOURCES/chromium-133-rust-crc32fast.patch b/SOURCES/chromium-133-rust-crc32fast.patch new file mode 100644 index 00000000..838a53bf --- /dev/null +++ b/SOURCES/chromium-133-rust-crc32fast.patch @@ -0,0 +1,11 @@ +diff -up chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn.me chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn +--- chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn.me 2025-02-11 00:13:06.132152874 +0100 ++++ chromium-133.0.6943.53/third_party/rust/crc32fast/v1/BUILD.gn 2025-02-11 00:28:22.785233997 +0100 +@@ -41,7 +41,6 @@ cargo_crate("lib") { + proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ] + deps = [ "//third_party/rust/cfg_if/v1:lib" ] + features = [ +- "nightly", + "std", + ] + rustflags = [ diff --git a/SPECS/chromium.spec b/SPECS/chromium.spec index a318f054..b7982afe 100644 --- a/SPECS/chromium.spec +++ b/SPECS/chromium.spec @@ -341,6 +341,8 @@ Patch311: chromium-133-clang18-template.patch # enable fstack-protector-strong Patch312: chromium-123-fstack-protector-strong.patch +# build error stdarch_arm_crc32 +Patch313: chromium-133-rust-crc32fast.patch # add -ftrivial-auto-var-init=zero and -fwrapv Patch316: chromium-122-clang-build-flags.patch @@ -1036,6 +1038,12 @@ Qt6 UI for chromium. %patch -P312 -p1 -b .fstack-protector-strong +%ifarch aarch64 +%if 0%{?rhel} == 8 || 0%{?rhel} == 9 +%patch -P313 -p1 -b .rust-crc32fast.patch +%endif +%endif + %patch -P316 -p1 -b .clang-build-flags %if %{disable_bti}