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 rhbz#2387446, FTBFS with rust-1.89.0
Date: Fri, 07 Aug 2026 16:08:03 GMT	[thread overview]
Message-ID: <178611888318.1.3069053623068459155.rpms-chromium-9a0191f60e56@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : 9a0191f60e56b662ac98927bd4788dfa0cd60b0f
Author : Than Ngo <than@redhat.com>
Date   : 2025-08-14T10:04:53+02:00
Stats  : +17/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/9a0191f60e56b662ac98927bd4788dfa0cd60b0f?branch=epel9-next

Log:
Fix rhbz#2387446, FTBFS with rust-1.89.0

---
diff --git a/chromium-139-rust-FTBFS-suppress-warnings.patch b/chromium-139-rust-FTBFS-suppress-warnings.patch
new file mode 100644
index 0000000..dc12ce7
--- /dev/null
+++ b/chromium-139-rust-FTBFS-suppress-warnings.patch
@@ -0,0 +1,13 @@
+diff -up chromium-139.0.7258.127/build/rust/cargo_crate.gni.than chromium-139.0.7258.127/build/rust/cargo_crate.gni
+--- chromium-139.0.7258.127/build/rust/cargo_crate.gni.than	2025-08-14 09:44:51.783560032 +0200
++++ chromium-139.0.7258.127/build/rust/cargo_crate.gni	2025-08-14 09:48:37.407051268 +0200
+@@ -310,6 +310,9 @@ template("cargo_crate") {
+       rustflags +=
+           [ "-Awarnings" ]  # Suppress other warnings in 3rd-party crates.
+ 
++      rustflags +=
++          [ "--cap-lints=warn" ] # Suppress other warnings, causes FTBFS in Fedora build rhbz#2387446
++
+       if (!defined(build_native_rust_unit_tests)) {
+         build_native_rust_unit_tests = _crate_type != "proc-macro"
+       }

diff --git a/chromium.spec b/chromium.spec
index e7c8a42..0c02eda 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -313,6 +313,9 @@ Patch307: chromium-134-el8-atk-compiler-error.patch
 Patch308: chromium-136-unsupport-clang-flags.patch
 Patch309: chromium-132-el8-unsupport-rustc-flags.patch
 
+# Fix rhbz#2387446, FTBFS with rust-1.89.0
+Patch310: chromium-139-rust-FTBFS-suppress-warnings.patch
+
 # enable fstack-protector-strong
 Patch312: chromium-123-fstack-protector-strong.patch
 
@@ -1012,6 +1015,7 @@ Qt6 UI for chromium.
 %patch -P314 -p1 -b .rust-skrifa-build-error
 %endif
 
+%patch -P310 -p1 -b .rust-FTBFS-suppress-warnings
 %patch -P312 -p1 -b .fstack-protector-strong
 
 %if 0%{?rhel} && 0%{?rhel} < 10

                 reply	other threads:[~2026-08-07 16:08 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=178611888318.1.3069053623068459155.rpms-chromium-9a0191f60e56@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