Fix build error on el 8/9 - use of unstable library feature stdarch_arm_crc32

i8e changed/i8e/chromium-133.0.6943.53-1.el8.inferit
Arkady L. Shane 2 weeks ago
parent 69abc07631
commit 503c2fedab
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -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 = [

@ -375,6 +375,8 @@ Patch310: chromium-132-el8-clang18-build-error.patch
Patch311: chromium-133-clang18-template.patch Patch311: chromium-133-clang18-template.patch
# enable fstack-protector-strong # enable fstack-protector-strong
Patch312: chromium-123-fstack-protector-strong.patch 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 # add -ftrivial-auto-var-init=zero and -fwrapv
Patch316: chromium-122-clang-build-flags.patch Patch316: chromium-122-clang-build-flags.patch
@ -1179,6 +1181,12 @@ sed -i 's/std::string data_dir_basename = "chromium"/std::string data_dir_basena
%patch -P312 -p1 -b .fstack-protector-strong %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 %patch -P316 -p1 -b .clang-build-flags
%if %{disable_bti} %if %{disable_bti}

Loading…
Cancel
Save