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 python3 issue, imp modul is removed in python-3.12
Date: Fri, 07 Aug 2026 16:05:16 GMT	[thread overview]
Message-ID: <178611871686.1.1781224058183754442.rpms-chromium-50c021471145@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-08-07 16:05 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=178611871686.1.1781224058183754442.rpms-chromium-50c021471145@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