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] rawhide: - Fix rhbz#2587717, apply Web Serial baud-rate patch on fedora
Date: Tue, 01 Dec 2026 13:09:21 GMT	[thread overview]
Message-ID: <179613056190.1.10635869891327964419.rpms-chromium-0aeb84e03e94@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/chromium
            Branch : rawhide
            Commit : 0aeb84e03e94b1aa135e8191099c82de73171a0c
            Author : Than Ngo <than@redhat.com>
            Date   : 2026-12-01T14:02:58+01:00
            Stats  : +8/-157 in 6 file(s)
            URL    : https://src.fedoraproject.org/rpms/chromium/c/0aeb84e03e94b1aa135e8191099c82de73171a0c?branch=rawhide

            Log:
            - Fix rhbz#2587717, apply Web Serial baud-rate patch on fedora
- Remove many outdated rust patches due to the new rust-1.97/1.100
- Add BR on python3.11 and remove obsolete python3 workaround for el9

---
diff --git a/chromium-145-rustc-ftbfs.patch b/chromium-145-rustc-ftbfs.patch
deleted file mode 100644
index b592042..0000000
--- a/chromium-145-rustc-ftbfs.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-diff -up chromium-145.0.7632.45/components/user_data_importer/utility/parsing_ffi/zip_archive.rs.me chromium-145.0.7632.45/components/user_data_importer/utility/parsing_ffi/zip_archive.rs
---- chromium-145.0.7632.45/components/user_data_importer/utility/parsing_ffi/zip_archive.rs.me	2026-02-10 22:57:19.071210777 +0100
-+++ chromium-145.0.7632.45/components/user_data_importer/utility/parsing_ffi/zip_archive.rs	2026-02-10 22:55:05.325655663 +0100
-@@ -86,10 +86,17 @@ impl ZipFileArchive {
-         F: FnMut(zip::read::ZipFile<std::fs::File>, &Path) -> Option<R>,
-     {
-         for i in 0..self.archive.len() {
--            if let Ok(file) = self.archive.by_index(i)
--                && let Some(outpath) = file.enclosed_name()
--                && let Some(r) = f(file, &outpath)
--            {
-+            let file = match self.archive.by_index(i) {
-+                Ok(f) => f,
-+                Err(_) => continue,
-+            };
-+
-+            let outpath = match file.enclosed_name() {
-+                Some(p) => p,
-+                None => continue,
-+            };
-+
-+            if let Some(r) = f(file, &outpath) {
-                 return Some(r);
-             }
-         }
-@@ -104,11 +111,17 @@ impl ZipFileArchive {
-     {
-         let mut acc = init;
-         for i in 0..self.archive.len() {
--            if let Ok(file) = self.archive.by_index(i)
--                && let Some(outpath) = file.enclosed_name()
--            {
--                acc = f(acc, file, &outpath);
--            }
-+            let file = match self.archive.by_index(i) {
-+                Ok(f) => f,
-+                Err(_) => continue,
-+            };
-+
-+            let outpath = match file.enclosed_name() {
-+                Some(p) => p,
-+                None => continue,
-+            };
-+
-+            acc = f(acc, file, &outpath);
-         }
-         acc
-     }

diff --git a/chromium-145-static_assert.patch b/chromium-145-static_assert.patch
deleted file mode 100644
index 8ed0ebd..0000000
--- a/chromium-145-static_assert.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -up chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h.me chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h
---- chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h.me	2026-02-13 13:32:04.162492668 +0100
-+++ chromium-145.0.7632.45/third_party/blink/renderer/modules/xr/xr_rigid_transform.h	2026-02-13 13:33:03.467242224 +0100
-@@ -7,15 +7,12 @@
- 
- #include <memory>
- 
-+#include "ui/gfx/geometry/transform.h"
- #include "third_party/blink/renderer/core/typed_arrays/array_buffer_view_helpers.h"
- #include "third_party/blink/renderer/core/typed_arrays/dom_typed_array.h"
- #include "third_party/blink/renderer/modules/modules_export.h"
- #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
- 
--namespace gfx {
--class Transform;
--}
--
- namespace blink {
- 
- class DOMPointInit;

diff --git a/chromium-146-ftfs-llvm-octal-notation.patch b/chromium-146-ftfs-llvm-octal-notation.patch
deleted file mode 100644
index b1916c0..0000000
--- a/chromium-146-ftfs-llvm-octal-notation.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Fix C++ Octal Notation with old llvm-20 on el9, el10.1 and f42
-
-../../components/named_mojo_ipc_server/named_mojo_server_endpoint_connector_linux.cc:119:46: error: invalid suffix 'o666' on integer constant
-  119 |     if (chmod(options_.server_name.c_str(), 0o666) != 0) {
-      |                                              ^
-1 error generated.
-
-diff -up chromium-146.0.7680.65/components/named_mojo_ipc_server/named_mojo_server_endpoint_connector_linux.cc.than chromium-146.0.7680.65/components/named_mojo_ipc_server/named_mojo_server_endpoint_connector_linux.cc
---- chromium-146.0.7680.65/components/named_mojo_ipc_server/named_mojo_server_endpoint_connector_linux.cc.than	2026-03-10 14:32:08.383467214 +0100
-+++ chromium-146.0.7680.65/components/named_mojo_ipc_server/named_mojo_server_endpoint_connector_linux.cc	2026-03-10 14:32:32.286698674 +0100
-@@ -116,7 +116,7 @@ bool NamedMojoServerEndpointConnectorLin
-   if (!options_.require_same_peer_user) {
-     // Allow any user to write to the UDS. fchmod doesn't work after bind(), so
-     // we need to call chmod on the socket filename, which is the server name.
--    if (chmod(options_.server_name.c_str(), 0o666) != 0) {
-+    if (chmod(options_.server_name.c_str(), 0666) != 0) {
-       PLOG(ERROR) << "chmod failed";
-       return false;
-     }

diff --git a/chromium-146-llvm-crash.patch b/chromium-146-llvm-crash.patch
deleted file mode 100644
index 6465c6f..0000000
--- a/chromium-146-llvm-crash.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Workaround for clang++ crash with llvm-20 on el9, f42 and el10.1
-clang++: error: clang frontend command failed with exit code 139
-
-diff -up chromium-146.0.7680.65/services/network/public/cpp/permissions_policy/origin_with_possible_wildcards.cc.than chromium-146.0.7680.65/services/network/public/cpp/permissions_policy/origin_with_possible_wildcards.cc
---- chromium-146.0.7680.65/services/network/public/cpp/permissions_policy/origin_with_possible_wildcards.cc.than	2026-03-10 16:03:29.107919285 +0100
-+++ chromium-146.0.7680.65/services/network/public/cpp/permissions_policy/origin_with_possible_wildcards.cc	2026-03-10 16:05:09.466591922 +0100
-@@ -94,7 +94,9 @@ bool OriginWithPossibleWildcards::DoesMa
- }
- 
- bool operator==(const OriginWithPossibleWildcards& lhs,
--                const OriginWithPossibleWildcards& rhs) = default;
-+                const OriginWithPossibleWildcards& rhs) {
-+  return lhs.csp_source == rhs.csp_source;
-+}
- 
- std::strong_ordering operator<=>(const OriginWithPossibleWildcards& lhs,
-                                  const OriginWithPossibleWildcards& rhs) {

diff --git a/chromium-153-el9-python-3.9-build-error.patch b/chromium-153-el9-python-3.9-build-error.patch
deleted file mode 100644
index fe433aa..0000000
--- a/chromium-153-el9-python-3.9-build-error.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-Fix FTBFS with python-3.9.x on EL9
-
-def _XmlToET(tree: xml.dom.minidom.Node | ET.Element) -> ET.Element:
-TypeError: unsupported operand type(s) for |: 'type' and 'type'
-
-diff -up chromium-153.0.8010.36/tools/metrics/histograms/extract_histograms.py.me chromium-153.0.8010.36/tools/metrics/histograms/extract_histograms.py
---- chromium-153.0.8010.36/tools/metrics/histograms/extract_histograms.py.me	2026-09-17 10:05:03.615742994 +0200
-+++ chromium-153.0.8010.36/tools/metrics/histograms/extract_histograms.py	2026-09-17 11:45:18.983075013 +0200
-@@ -8,6 +8,7 @@ see histograms.xml; example path:
- tools/metrics/histograms/metadata/uma/histograms.xml
- """
- 
-+from __future__ import annotations
- import bisect
- import copy
- import datetime

diff --git a/chromium.spec b/chromium.spec
index f199873..0b747fe 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -81,8 +81,8 @@
 %global gtk_version 3
 %endif
 
-%if 0%{?rhel} == 8
-%global chromium_pybin /usr/bin/python3.9
+%if 0%{?rhel} == 9
+%global chromium_pybin /usr/bin/python3.11
 %else
 %global chromium_pybin %{__python3}
 %endif
@@ -364,9 +364,6 @@ Patch138: chromium-150-ffmpeg-AVDynamicHDRSmpte2094App5.patch
 # Workaround for missing AV_CODEC_ID_ITUT_T35|AV_STREAM_GROUP_PARAMS_TREF
 Patch139: chromium-156-system-ffmpeg-api.patch
 
-# Fix FTBFS with python-3.9 on el9
-Patch140: chromium-153-el9-python-3.9-build-error.patch
-
 # file conflict with old kernel on el8/el9
 Patch141: chromium-118-dma_buf_export_sync_file-conflict.patch
 
@@ -381,24 +378,12 @@ Patch150: chromium-124-qt6.patch
 # fix FTBFS caused by missing include file on aarch64/ppc64le
 Patch300: chromium-145-swiftshader-missing-include.patch
 
-# Fix error with llwm < 21 on el9/el10.1/f42: invalid application of 'sizeof' to an incomplete type 'gfx::Transform'
-Patch302: chromium-145-static_assert.patch
-
-# Fix error: invalid suffix 'o666' on integer constant on el9/el10.1/f42 with llvm20
-Patch303: chromium-146-ftfs-llvm-octal-notation.patch
-
-# Workaround for clang++ crash with llvm-20 on el9/el10.1/f42, clang++: error: clang frontend command failed with exit code 139
-Patch304: chromium-146-llvm-crash.patch
-
 # Fix rhbz#2387446, FTBFS with rust-1.89.0
 Patch310: chromium-139-rust-FTBFS-suppress-warnings.patch
 
 # enable fstack-protector-strong
 Patch311: chromium-123-fstack-protector-strong.patch
 
-# error with old rustc
-Patch315: chromium-145-rustc-ftbfs.patch
-
 # llvm <= 22
 # clang++: error: unknown argument: '-fno-lifetime-dse'
 # unknown warning option -Wno-nontrivial-memcall
@@ -1087,7 +1072,7 @@ Qt6 UI for chromium.
 %endif
 
 %patch -P23 -p1 -b .build-error-libpng_for_testonly
-%if 0%{?fedora} || 0%{?rhel} && 0%{?rhel} > 10
+%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} > 10)
 %patch -P24 -p1 -b .glibc-2.42-baud-rate-fix
 %endif
 %patch -P25 -p1 -b .ftbfs-pipewire-api
@@ -1099,7 +1084,7 @@ Qt6 UI for chromium.
 %endif
 
 %if ! %{bundlelibxml}
-%if 0%{?fedora} && 0%{?fedora} < 40 || 0%{?rhel} && 0%{?rhel} < 10
+%if 0%{?rhel} && 0%{?rhel} < 10
 %patch -P90 -p1 -b .system-libxml
 %endif
 %endif
@@ -1123,8 +1108,7 @@ Qt6 UI for chromium.
 %patch -P139 -p1 -b .workaround-system-ffmpeg-api
 %endif
 
-%if 0%{?rhel} == 8 || 0%{?rhel} == 9
-%patch -P140 -p1 -b .el9-python-3.9-build-error.patch
+%if 0%{?rhel} == 9
 %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict
 %endif
 
@@ -1132,14 +1116,11 @@ Qt6 UI for chromium.
 
 %patch -P300 -p1 -b .swiftshader-missing-include
 
-# llvm version < 21 on f42/el9/epel10.1
-%if (0%{?fedora} && 0%{?fedora} < 43) || (0%{?rhel} && 0%{?rhel} < 10) || (0%{?rhel} == 10 && 0%{?rhel_minor_version} < 2)
-%patch -P302 -p1 -b .static_assert
-%patch -P303 -p1 -b .ftfs-llvm-octal-notation
-%patch -P304 -p1 -b .llvm-crash
+# llvm version <= 22 on el9/epel10.3
+%if (0%{?rhel} && 0%{?rhel} < 10) || (0%{?rhel} == 10 && 0%{?rhel_minor_version} < 4)
+%patch -P316 -p1 -b .clang++-unknown-argument
 %endif
 
-%patch -P315 -p1 -b .rustc-ftbfs
 %patch -P310 -p1 -b .rust-FTBFS-suppress-warnings
 %patch -P311 -p1 -b .fstack-protector-strong
 
@@ -1147,8 +1128,6 @@ Qt6 UI for chromium.
 %patch -P354 -p1 -b .split-threshold-for-reg-with-hint
 %endif
 
-%patch -P316 -p1 -b .clang++-unknown-argument
-
 %patch -P318 -p1 -b .memory-allocator-dcheck-assert-fix
 %patch -P319 -p1 -b .swiftshader-llvm-16.0
 
@@ -1272,14 +1251,6 @@ ln -fs $(which gperf) third_party/gperf/cipd/bin/gperf
 mkdir -p third_party/cpython3/host/bin
 cp $(which python3) third_party/cpython3/host/bin/python3
 
-# Fix FTBFS due to old python3 (version 3.9.25) on epel9
-# /mojo/public/tools/bindings/generators/mojom_rust_generator.py", line 196, in <module>
-#    ) -> str | None:
-# TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
-%if 0%{?rhel} == 9
-sed -i '1i from __future__ import annotations' mojo/public/tools/bindings/generators/mojom_rust_generator.py
-%endif
-
 %if %{bundlelibusbx}
 # no hackity hack hack
 %else

                 reply	other threads:[~2026-12-01 13:09 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=179613056190.1.10635869891327964419.rpms-chromium-0aeb84e03e94@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