public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel10.2: Fix FTBFS with python-3.9.x on EL9
@ 2026-09-20 14:17 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-09-20 14:17 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel10.2
Commit : 3692666f6a54e05b669dccaba2f8593c5abd0e79
Author : Than Ngo <than@redhat.com>
Date   : 2026-09-17T11:56:32+02:00
Stats  : +22/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/3692666f6a54e05b669dccaba2f8593c5abd0e79?branch=epel10.2

Log:
Fix FTBFS with python-3.9.x on EL9

---
diff --git a/chromium-153-el9-python-3.9-build-error.patch b/chromium-153-el9-python-3.9-build-error.patch
new file mode 100644
index 0000000..fe433aa
--- /dev/null
+++ b/chromium-153-el9-python-3.9-build-error.patch
@@ -0,0 +1,16 @@
+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 2f993c2..266fe73 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -351,11 +351,15 @@ Patch136: chromium-133-workaround-system-ffmpeg-whitelist.patch
 Patch137: chromium-147-system-ffmpeg.patch
 # Workaround for missing AVDynamicHDRSmpte2094App5 in system ffmpeg
 Patch138: chromium-150-ffmpeg-AVDynamicHDRSmpte2094App5.patch
+
+# Fix FTBFS with python-3.9 on el9
+Patch139: 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
+
 # Fix FTBFS with rustc-1.88 on el9 and epel10.1
 Patch142: chromium-149-rust-1.88-build-error.patch
-# fix ftbfs caused by old rustc-1.88 on el9 and 10.1
 Patch143: chromium-153-rust-1.88-enable-unstable_features.patch
 Patch144: chromium-146-rust-1.88-undefined-symbol.patch
 
@@ -1121,6 +1125,7 @@ Qt6 UI for chromium.
 
 %if 0%{?rhel} == 8 || 0%{?rhel} == 9
 %patch -P141 -p1 -b .dma_buf_export_sync_file-conflict
+%patch -P139 -p1 -b .el9-python-3.9-build-error.patch
 %endif
 
 %if (0%{?rhel} && 0%{?rhel} < 10) || (0%{?rhel} == 10 && 0%{?rhel_minor_version} < 2)

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

only message in thread, other threads:[~2026-09-20 14:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 14:17 [rpms/chromium] epel10.2: Fix FTBFS with python-3.9.x on EL9 Than Ngo

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