public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: Fix python3 issue, imp modul is removed in python-3.12
@ 2026-08-07 16:05 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:05 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : 50c0214711456bda6d085352207d24f862366703
Author : Than Ngo <than@redhat.com>
Date   : 2023-07-22T14:38:51+02:00
Stats  : +25/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/50c0214711456bda6d085352207d24f862366703?branch=epel9-next

Log:
Fix python3 issue, imp modul is removed in python-3.12

---
diff --git a/chromium-115-python-imp-deprecated.patch b/chromium-115-python-imp-deprecated.patch
new file mode 100644
index 0000000..ee318d7
--- /dev/null
+++ b/chromium-115-python-imp-deprecated.patch
@@ -0,0 +1,22 @@
+diff -up chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/fileutil.py.me chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/fileutil.py
+--- chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/fileutil.py.me	2023-07-22 13:48:01.726074705 +0200
++++ chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/fileutil.py	2023-07-22 13:50:50.886575507 +0200
+@@ -3,7 +3,6 @@
+ # found in the LICENSE file.
+ 
+ import errno
+-import imp
+ import os.path
+ import sys
+ 
+diff -up chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/parse/lexer.py.me chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/parse/lexer.py
+--- chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/parse/lexer.py.me	2023-07-22 14:10:40.372979365 +0200
++++ chromium-115.0.5790.102/mojo/public/tools/mojom/mojom/parse/lexer.py	2023-07-22 14:13:31.200453442 +0200
+@@ -2,7 +2,6 @@
+ # Use of this source code is governed by a BSD-style license that can be
+ # found in the LICENSE file.
+ 
+-import imp
+ import os.path
+ import sys
+ 

diff --git a/chromium.spec b/chromium.spec
index c3a33f8..7ded837 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -387,6 +387,8 @@ Patch310: chromium-115-wayland-load_default_cursor_theme.patch
 
 # clang warnings
 Patch311: chromium-115-clang-warnings.patch
+# imp module is removed in python-3.12
+Patch312: chromium-115-python-imp-deprecated.patch
 
 # Qt issue
 Patch321: chromium-114-qt-handle_scale_factor_changes.patch
@@ -1003,6 +1005,7 @@ udev.
 %patch -P309 -p1 -b .include_contains_h_header_for_V4L2StatefulVideoDecoder
 %patch -P310 -p1 -b .wayland_load_default_cursor_theme
 %patch -P311 -p1 -b .clang-warnings
+%patch -P312 -p1 -b .python-imp-deprecated
 
 %patch -P321 -p1 -b .handle_scale_factor_changes
 %patch -P322 -p1 -b .fix_font_double_scaling

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

only message in thread, other threads:[~2026-08-07 16:05 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:05 [rpms/chromium] epel9-next: Fix python3 issue, imp modul is removed in python-3.12 Than Ngo

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