public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: Fix rhbz#2387446, FTBFS with rust-1.89.0
@ 2026-08-07 16:08 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:08 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-07 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:08 [rpms/chromium] epel9-next: Fix rhbz#2387446, FTBFS with rust-1.89.0 Than Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox