public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Than Ngo <than@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/chromium] epel9-next: Fix build error on el 8/9 - use of unstable library feature stdarch_arm_crc32
Date: Fri, 07 Aug 2026 16:07:21 GMT	[thread overview]
Message-ID: <178611884134.1.3315812413014891655.rpms-chromium-94d242b6a5f2@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : 94d242b6a5f2565c9911af7487e738548d27942a
Author : Than Ngo <than@redhat.com>
Date   : 2025-02-11T00:30:29+01:00
Stats  : +19/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/94d242b6a5f2565c9911af7487e738548d27942a?branch=epel9-next

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

---
diff --git a/chromium-133-rust-crc32fast.patch b/chromium-133-rust-crc32fast.patch
new file mode 100644
index 0000000..838a53b
--- /dev/null
+++ b/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/chromium.spec b/chromium.spec
index 893d6eb..30f6ee1 100644
--- a/chromium.spec
+++ b/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}

                 reply	other threads:[~2026-08-07 16:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178611884134.1.3315812413014891655.rpms-chromium-94d242b6a5f2@fedoraproject.org \
    --to=than@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox