public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/anaconda] rawhide: Remove unused patches
@ 2026-09-17  6:28 Katerina Koukiou
  0 siblings, 0 replies; only message in thread
From: Katerina Koukiou @ 2026-09-17  6:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/anaconda
Branch : rawhide
Commit : aced1563fb075c813ff5947a912d18d447f888f4
Author : Katerina Koukiou <kkoukiou@redhat.com>
Date   : 2026-09-16T17:33:37+02:00
Stats  : +0/-487 in 8 file(s)
URL    : https://src.fedoraproject.org/rpms/anaconda/c/aced1563fb075c813ff5947a912d18d447f888f4?branch=rawhide

Log:
Remove unused patches

---
diff --git a/0001-Add-enable-vt-switch-when-running-gnome-kiosk.patch b/0001-Add-enable-vt-switch-when-running-gnome-kiosk.patch
deleted file mode 100644
index 07d0597..0000000
--- a/0001-Add-enable-vt-switch-when-running-gnome-kiosk.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 05a3c32755b8cbc29e0c27e7aa20d7cacffef89a Mon Sep 17 00:00:00 2001
-From: Martin Kolman <mkolman@redhat.com>
-Date: Thu, 19 Feb 2026 19:52:56 +0100
-Subject: [PATCH] Add --enable-vt-switch when running gnome-kiosk
-
-As of version 50 GNOME Kiosk disables keyboard shortcuts for TTY
-switching. This functionality is important for both Anaconda developers
-and Anaconda users to switch to a TTY for debugging.
-
-TTY switching shortcuts are also heavily used by the OpenQA based
-integration testing pipeline maintained by Fedora GA.
-
-So add --enable-vt-switch to the gnome-kiosk invocation to make sure
-TTY switching keyboard shortcuts will still work in the installation
-environment going forward.
-
-Related: rhbz#2440563
----
- pyanaconda/display.py | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/pyanaconda/display.py b/pyanaconda/display.py
-index abb0c3325e..33b186c9c6 100644
---- a/pyanaconda/display.py
-+++ b/pyanaconda/display.py
-@@ -202,7 +202,13 @@ def do_startup_wl_actions(timeout, headless=False, headless_resolution=None):
-         argv.extend(["--vt", "6"])
- 
-     # add the generic GNOME Kiosk invocation
--    argv.extend(["gnome-kiosk", "--wayland", "--wayland-display", constants.WAYLAND_SOCKET_NAME])
-+    argv.extend([
-+        "gnome-kiosk",
-+        "--wayland",
-+        "--enable-vt-switch",
-+        "--wayland-display",
-+        constants.WAYLAND_SOCKET_NAME]
-+    )
- 
-     # remote access needs gnome-kiosk to start in headless mode
-     if headless:
--- 
-2.53.0
-

diff --git a/0001-Don-t-pass-no-x11-to-gnome-kiosk.patch b/0001-Don-t-pass-no-x11-to-gnome-kiosk.patch
deleted file mode 100644
index 1513e46..0000000
--- a/0001-Don-t-pass-no-x11-to-gnome-kiosk.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From b4b09f54b39b288f326b4734c13d27aa710e69d3 Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Mon, 2 Jun 2025 12:28:49 -0700
-Subject: [PATCH] Don't pass --no-x11 to gnome-kiosk
-
-This is also gone when mutter is built without X11 support, as
-is now the case in Rawhide and ELN, and probably soon in EL 10.
-Don't backport this to earlier branches.
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- pyanaconda/display.py | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/pyanaconda/display.py b/pyanaconda/display.py
-index 25a0e15142..20adcf58ff 100644
---- a/pyanaconda/display.py
-+++ b/pyanaconda/display.py
-@@ -226,8 +226,7 @@ def do_startup_wl_actions(timeout, headless=False, headless_resolution=None):
-         argv.extend(["--vt", "6"])
- 
-     # add the generic GNOME Kiosk invocation
--    argv.extend(["gnome-kiosk", "--wayland", "--no-x11",
--                 "--wayland-display", constants.WAYLAND_SOCKET_NAME])
-+    argv.extend(["gnome-kiosk", "--wayland", "--wayland-display", constants.WAYLAND_SOCKET_NAME])
- 
-     # remote access needs gnome-kiosk to start in headless mode
-     if headless:
--- 
-2.49.0
-

diff --git a/0001-Handle-relocation-of-packaged-repo-configs-to-usr-sh.patch b/0001-Handle-relocation-of-packaged-repo-configs-to-usr-sh.patch
deleted file mode 100644
index ff4e1b1..0000000
--- a/0001-Handle-relocation-of-packaged-repo-configs-to-usr-sh.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 911a2fbaa5f4f5bfc58f96e98dc8566d73160c39 Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Wed, 12 Aug 2026 09:58:14 -0700
-Subject: [PATCH] Handle relocation of packaged repo configs to /usr/share/dnf5
-
-In Fedora 45+, packaged repo configs are moved to /usr/share/dnf5:
-https://fedoraproject.org/wiki/Changes/RelocateRpmRepoConfigsToUsr
-This adjusts anaconda appropriately. We drop the use of
-/etc/anaconda.repos.d because it is no longer needed. It was
-originally introduced in c51389518415d9182f01757314c7cfa272534557
-to solve a problem involving upgrades. anaconda has not handled
-upgrades since 2012. Other than that, we add the new directory to
-the DNF_REPO_DIRS constant and make a few minor tweaks in docs,
-docker configs and the like.
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- data/anaconda_options.txt                                     | 2 +-
- pyanaconda/modules/payloads/constants.py                      | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/data/anaconda_options.txt b/data/anaconda_options.txt
-index a34826d0e0..bf1f755fc3 100644
---- a/data/anaconda_options.txt
-+++ b/data/anaconda_options.txt
-@@ -79,7 +79,7 @@ it takes precedence over all other methods of finding the install.img. Otherwise
- to find the install.img first on any existing CD, and then from the location given by repo.
- If only the stage2 option is given without repo, Anaconda will use whatever repos the installed
- system would have enabled by default for installation. For instance, an install of a Fedora release
--will attempt to use the Fedora mirrorlist given by /etc/yum.repos.d/fedora.repo from that release.
-+will attempt to use the Fedora mirrorlist given by fedora.repo from that release.
- 
- addrepo
- This option adds additional repositories to the installation. These repositories are used during
-diff --git a/pyanaconda/modules/payloads/constants.py b/pyanaconda/modules/payloads/constants.py
-index 5f790eb9fd..0db00ce68e 100644
---- a/pyanaconda/modules/payloads/constants.py
-+++ b/pyanaconda/modules/payloads/constants.py
-@@ -44,8 +44,8 @@ from pyanaconda.core.constants import (
- 
- # Locations of repo files.
- DNF_REPO_DIRS = [
-+    '/usr/share/dnf5/repos.d',
-     '/etc/yum.repos.d',
--    '/etc/anaconda.repos.d'
- ]
- 
- 
--- 
-2.55.0
-

diff --git a/0001-RebootData-don-t-allow-action-to-be-None.patch b/0001-RebootData-don-t-allow-action-to-be-None.patch
deleted file mode 100644
index 233d91a..0000000
--- a/0001-RebootData-don-t-allow-action-to-be-None.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-From c7dce0445423e7386fdc6998a6a8de50a7a39bca Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Thu, 9 Oct 2025 10:07:01 -0700
-Subject: [PATCH] RebootData: don't allow action to be None
-
-Silverblue installs (and probably others where the kickstart data
-does not explicitly specify a reboot action) crash, because
-the `RebootData` instance's `action` winds up as `None`, since
-this is the default value of `self.action` in
-`pykickstart.commands.reboot.F23_Reboot`. Trying to translate
-this to a DBus structure with `RebootData.to_structure` fails,
-because DBus has no concept of `None`.
-
-To avoid this, let's have the setter convert `None` to `-1`, the
-same value we use as a default when initializing the instance.
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- pyanaconda/modules/common/structures/reboot.py         |  5 ++++-
- .../modules/runtime/test_module_runtime.py             | 10 ++++++++++
- 2 files changed, 14 insertions(+), 1 deletion(-)
-
-diff --git a/pyanaconda/modules/common/structures/reboot.py b/pyanaconda/modules/common/structures/reboot.py
-index fd2673b169..cadbfbd01f 100644
---- a/pyanaconda/modules/common/structures/reboot.py
-+++ b/pyanaconda/modules/common/structures/reboot.py
-@@ -46,7 +46,10 @@ class RebootData(DBusData):
-         return self._action
- 
-     @action.setter
--    def action(self, value: Int):
-+    def action(self, value: Int | None):
-+        if value is None:
-+            # dbus cannot handle None
-+            value = -1
-         self._action = value
- 
-     @property
-diff --git a/tests/unit_tests/pyanaconda_tests/modules/runtime/test_module_runtime.py b/tests/unit_tests/pyanaconda_tests/modules/runtime/test_module_runtime.py
-index 22286e59c1..83d3a123ef 100644
---- a/tests/unit_tests/pyanaconda_tests/modules/runtime/test_module_runtime.py
-+++ b/tests/unit_tests/pyanaconda_tests/modules/runtime/test_module_runtime.py
-@@ -18,6 +18,7 @@
- import unittest
- from textwrap import dedent
- 
-+from pyanaconda.modules.common.structures.reboot import RebootData
- from pyanaconda.modules.runtime.runtime import RuntimeService
- from pyanaconda.modules.runtime.runtime_interface import RuntimeInterface
- from tests.unit_tests.pyanaconda_tests import check_kickstart_interface
-@@ -166,3 +167,12 @@ class RuntimeInterfaceTestCase(unittest.TestCase):
-         ks_in = "halt --eject\n"
-         ks_out = "# Halt after installation\nhalt --eject\n"
-         self._test_kickstart(ks_in, ks_out)
-+
-+    def test_process_kickstart_with_no_payload(self):
-+        """Test all values are ints when reading empty kickstart."""
-+        self.interface.ReadKickstart("")
-+        assert isinstance(self.module.reboot.action, int)
-+        assert isinstance(self.module.reboot.eject, int)
-+        assert isinstance(self.module.reboot.kexec, int)
-+        # and check we can to_structure it
-+        RebootData.to_structure(self.module.reboot)
--- 
-2.51.0
-

diff --git a/0001-pyanaconda-localization-Indicate-ASCII-support-in-ge.patch b/0001-pyanaconda-localization-Indicate-ASCII-support-in-ge.patch
deleted file mode 100644
index 28344bb..0000000
--- a/0001-pyanaconda-localization-Indicate-ASCII-support-in-ge.patch
+++ /dev/null
@@ -1,139 +0,0 @@
-From c6118f65fe3583e1c15c383a8a9c6f5c1989fb22 Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Thu, 9 Oct 2025 16:51:15 -0700
-Subject: [PATCH] pyanaconda: localization: Indicate ASCII support in
- get_keyboard_layouts
-
-It is useful to know whether a given keyboard layout supports
-ASCII input or not. Immediately, we want to use this in the
-webUI keyboard logic, but it may be useful elsewhere too in
-future, e.g. to warn the user if they use the Keyboard spoke
-to create a configuration with no layout capable of ASCII input.
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- pyanaconda/localization.py                    | 11 +++++++++
- .../common/structures/keyboard_layout.py      | 10 ++++++++
- .../modules/localization/localization.py      |  2 ++
- .../localization/test_module_localization.py  | 23 +++++++++++--------
- 4 files changed, 36 insertions(+), 10 deletions(-)
-
-diff --git a/pyanaconda/localization.py b/pyanaconda/localization.py
-index 73415b2511..08a9343463 100644
---- a/pyanaconda/localization.py
-+++ b/pyanaconda/localization.py
-@@ -489,6 +489,17 @@ def get_common_keyboard_layouts():
-     return langtable.list_common_keyboards()
- 
- 
-+def layout_supports_ascii(layout):
-+    """Return a boolean indicating whether the xkb layout (given as
-+    e.g. 'en(us)' or 'fr(oss)' or 'ru') can input ASCII characters.
-+
-+    :return: True for ASCII capable, False for not
-+    :rtype: bool
-+    :param str layout: layout descriptor string
-+    """
-+    return langtable.supports_ascii(layout)
-+
-+
- def get_locale_timezones(locale):
-     """Function returning preferred timezones for the given locale.
- 
-diff --git a/pyanaconda/modules/common/structures/keyboard_layout.py b/pyanaconda/modules/common/structures/keyboard_layout.py
-index b5aacc764b..007e975965 100644
---- a/pyanaconda/modules/common/structures/keyboard_layout.py
-+++ b/pyanaconda/modules/common/structures/keyboard_layout.py
-@@ -29,6 +29,7 @@ class KeyboardLayout(DBusData):
-     def __init__(self):
-         self._layout_id = ""
-         self._description = ""
-+        self._supports_ascii = False
-         self._is_common = False
-         self._langs = []
- 
-@@ -59,6 +60,15 @@ class KeyboardLayout(DBusData):
-     def is_common(self, value: bool):
-         self._is_common = value
- 
-+    @property
-+    def supports_ascii(self) -> bool:
-+        """Return whether the layout is capable of typing ASCII characters."""
-+        return self._supports_ascii
-+
-+    @supports_ascii.setter
-+    def supports_ascii(self, value: bool):
-+        self._supports_ascii = value
-+
-     @property
-     def langs(self) -> List[Str]:
-         """Return the list of associated languages."""
-diff --git a/pyanaconda/modules/localization/localization.py b/pyanaconda/modules/localization/localization.py
-index 346a55a1c0..4fb7333ed7 100644
---- a/pyanaconda/modules/localization/localization.py
-+++ b/pyanaconda/modules/localization/localization.py
-@@ -33,6 +33,7 @@ from pyanaconda.localization import (
-     get_language_id,
-     get_language_locales,
-     get_native_name,
-+    layout_supports_ascii,
- )
- from pyanaconda.modules.common.base import KickstartService
- from pyanaconda.modules.common.constants.services import LOCALIZATION
-@@ -218,6 +219,7 @@ class LocalizationService(KickstartService):
-                 layout.description = self.get_layout_variant_description(name, with_lang=True, xlated=True)
-                 layout.is_common = name.replace(" ", "") in common_langtable_keyboards and is_common_lang
-                 layout.langs = info.langs
-+                layout.supports_ascii = layout_supports_ascii(name.replace(" ", ""))
-                 layouts.append(layout)
- 
-         return layouts
-diff --git a/tests/unit_tests/pyanaconda_tests/modules/localization/test_module_localization.py b/tests/unit_tests/pyanaconda_tests/modules/localization/test_module_localization.py
-index 7f6449d3ea..7582df2401 100644
---- a/tests/unit_tests/pyanaconda_tests/modules/localization/test_module_localization.py
-+++ b/tests/unit_tests/pyanaconda_tests/modules/localization/test_module_localization.py
-@@ -228,28 +228,31 @@ class LocalizationInterfaceTestCase(unittest.TestCase):
-         normalized_layouts = KeyboardLayout.from_structure_list(layouts)
- 
-         layouts_expectation = [
--            ("ara (olpc)", "Arabic (OLPC)", "Arabic", False),
--            ("cz", "Czech", "Czech", False),
--            ("de (nodeadkeys)", "German (no dead keys)", "German", True),
--            ("es", "Spanish", "Spanish; Castilian", True),
--            ("fr (oss)", "French (alt.)", "French", True),
--            ("gr", "Greek", "Greek, Modern (1453-); Greek", False),
--            ("it", "Italian", "Italian", False),
--            ("jp", "Japanese", "Japanese", True),
--            ("us", "English (US)", "English", True),
-+            ("ara (olpc)", "Arabic (OLPC)", "Arabic", False, True),
-+            ("cz", "Czech", "Czech", False, True),
-+            ("de (nodeadkeys)", "German (no dead keys)", "German", True, True),
-+            ("es", "Spanish", "Spanish; Castilian", True, True),
-+            ("fr (oss)", "French (alt.)", "French", True, True),
-+            ("gr", "Greek", "Greek, Modern (1453-); Greek", False, False),
-+            ("it", "Italian", "Italian", False, True),
-+            ("jp", "Japanese", "Japanese", True, True),
-+            ("us", "English (US)", "English", True, True),
-+            ("ru (dos)", "Russian (DOS)", "Russian", False, False),
-         ]
- 
--        for layout_id, description, lang, is_common in layouts_expectation:
-+        for layout_id, description, lang, is_common, supports_ascii in layouts_expectation:
-             layout = KeyboardLayout()
-             layout.layout_id = layout_id
-             layout.description = description
-             layout.is_common = is_common
-+            layout.supports_ascii = supports_ascii
-             layout.langs = [lang]
- 
-             gen = (normalized_layout for normalized_layout in normalized_layouts if layout.layout_id == normalized_layout.layout_id)
-             for normalized_layout in gen:
-                 assert layout.description == normalized_layout.description
-                 assert layout.is_common == normalized_layout.is_common
-+                assert layout.supports_ascii == normalized_layout.supports_ascii
-                 assert layout.langs == normalized_layout.langs
-                 break
-             else:
--- 
-2.51.0
-

diff --git a/6447.patch b/6447.patch
deleted file mode 100644
index 065227d..0000000
--- a/6447.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From d75de3da3648dee474ddea6639e09c071f027232 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
-Date: Sat, 7 Jun 2025 13:44:25 +0200
-Subject: [PATCH] Avoid buffer overflow with TIOCGWINSZ
-
-It has 4 bytes, not 2.
-
-On Python 3.14+, the previous version raised SystemError:
-
-    >>> from pyanaconda.argument_parsing import get_help_width
-    ...
-    >>> get_help_width()
-    Traceback (most recent call last):
-      File "<python-input-1>", line 1, in <module>
-        get_help_width()
-        ~~~~~~~~~~~~~~^^
-      File "/usr/lib64/python3.14/site-packages/pyanaconda/argument_parsing.py", line 68, in get_help_width
-        data = fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, '1234')
-    SystemError: buffer overflow
-
-See https://github.com/python/cpython/commit/c2eaeee3dc3306ca486b0377b07b1a957584b691
-
-Fixes https://bugzilla.redhat.com/2370944
----
- pyanaconda/argument_parsing.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/pyanaconda/argument_parsing.py b/pyanaconda/argument_parsing.py
-index e24f0f1b999..55cf7993625 100644
---- a/pyanaconda/argument_parsing.py
-+++ b/pyanaconda/argument_parsing.py
-@@ -65,8 +65,8 @@ def get_help_width():
-         return DEFAULT_HELP_WIDTH
- 
-     try:
--        data = fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, '1234')
--        columns = int(struct.unpack('hh', data)[1])
-+        data = fcntl.ioctl(sys.stdout, termios.TIOCGWINSZ, '12345678')
-+        columns = int(struct.unpack('hhhh', data)[1])
-     except (OSError, ValueError) as e:
-         log.info("Unable to determine terminal width: %s", e)
-         print("terminal size detection failed, using default width")

diff --git a/6449.patch b/6449.patch
deleted file mode 100644
index c8ddc52..0000000
--- a/6449.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 11b7e782d8de7da49f0b4e650e8fc0c60f69304f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
-Date: Sun, 8 Jun 2025 17:46:29 +0200
-Subject: [PATCH] Avoid the multiprocessing forkserver method with dnf
-
-Fixes:
-
-    Traceback (most recent call last):
-      File "/usr/lib64/python3.14/site-packages/pyanaconda/core/threads.py", line 281, in run
-        threading.Thread.run(self)
-        ~~~~~~~~~~~~~~~~~~~~^^^^^^
-      File "/usr/lib64/python3.14/threading.py", line 1023, in run
-        self._target(*self._args, **self._kwargs)
-        ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-      File "/usr/lib64/python3.14/site-packages/pyanaconda/modules/common/task/task.py", line 97, in _thread_run_callback
-        self._task_run_callback()
-        ~~~~~~~~~~~~~~~~~~~~~~~^^
-      File "/usr/lib64/python3.14/site-packages/pyanaconda/modules/common/task/task.py", line 110, in _task_run_callback
-        self._set_result(self.run())
-                         ~~~~~~~~^^
-      File "/usr/lib64/python3.14/site-packages/pyanaconda/modules/payloads/payload/dnf/installation.py", line 281, in run
-        self._dnf_manager.install_packages(self.report_progress)
-        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
-      File "/usr/lib64/python3.14/site-packages/pyanaconda/modules/payloads/payload/dnf/dnf_manager.py", line 664, in install_packages
-        process.start()
-        ~~~~~~~~~~~~~^^
-      File "/usr/lib64/python3.14/multiprocessing/process.py", line 121, in start
-        self._popen = self._Popen(self)
-                      ~~~~~~~~~~~^^^^^^
-      File "/usr/lib64/python3.14/multiprocessing/context.py", line 224, in _Popen
-        return _default_context.get_context().Process._Popen(process_obj)
-               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
-      File "/usr/lib64/python3.14/multiprocessing/context.py", line 300, in _Popen
-        return Popen(process_obj)
-      File "/usr/lib64/python3.14/multiprocessing/popen_forkserver.py", line 35, in __init__
-        super().__init__(process_obj)
-        ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
-      File "/usr/lib64/python3.14/multiprocessing/popen_fork.py", line 20, in __init__
-        self._launch(process_obj)
-        ~~~~~~~~~~~~^^^^^^^^^^^^^
-      File "/usr/lib64/python3.14/multiprocessing/popen_forkserver.py", line 47, in _launch
-        reduction.dump(process_obj, buf)
-        ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
-      File "/usr/lib64/python3.14/multiprocessing/reduction.py", line 60, in dump
-        ForkingPickler(file, protocol).dump(obj)
-        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
-    TypeError: cannot pickle 'SwigPyObject' object
----
- pyanaconda/modules/payloads/payload/dnf/dnf_manager.py | 7 +++++--
- 1 file changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/pyanaconda/modules/payloads/payload/dnf/dnf_manager.py b/pyanaconda/modules/payloads/payload/dnf/dnf_manager.py
-index 925ed73790a..e7c25369912 100644
---- a/pyanaconda/modules/payloads/payload/dnf/dnf_manager.py
-+++ b/pyanaconda/modules/payloads/payload/dnf/dnf_manager.py
-@@ -652,9 +652,12 @@ def install_packages(self, callback, timeout=20):
-         :param timeout: a time out of a failed process in seconds
-         :raise PayloadInstallationError: if the installation fails
-         """
--        queue = multiprocessing.Queue()
-+        # SwigPyObjects are not picklable, so force the fork method
-+        # On Python 3.14+, forkserver is the default (and it pickles)
-+        context = multiprocessing.get_context(method="fork")
-+        queue = context.Queue()
-         display = TransactionProgress(queue)
--        process = multiprocessing.Process(
-+        process = context.Process(
-             target=self._run_transaction,
-             args=(self._base, display)
-         )

diff --git a/7103.patch b/7103.patch
deleted file mode 100644
index 18646c8..0000000
--- a/7103.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 8aea1f5c08c0ca1b715f469f951e2b78d4866723 Mon Sep 17 00:00:00 2001
-From: Adam Williamson <awilliam@redhat.com>
-Date: Mon, 8 Jun 2026 15:42:55 -0700
-Subject: [PATCH] python-deps: add _math_integer if math is present
-
-In Python 3.15, the math module requires a _math_integer module,
-but ModuleFinder does not tell us this. We'll just have to
-special-case it.
-
-Resolves: rhbz#2486569
-
-Signed-off-by: Adam Williamson <awilliam@redhat.com>
----
- dracut/python-deps | 11 ++++++++++-
- 1 file changed, 10 insertions(+), 1 deletion(-)
-
-diff --git a/dracut/python-deps b/dracut/python-deps
-index 587b44a46f9..fd74a34d5e2 100755
---- a/dracut/python-deps
-+++ b/dracut/python-deps
-@@ -27,7 +27,6 @@ from importlib.util import find_spec
- from modulefinder import ModuleFinder
- 
- # stringprep is needed by the idna encoding, and idna is needed by requests.
--# The encoding import is implicit so ModuleFinder doesn't find it right.
- alsoNeeded = {find_spec('requests').origin: find_spec('stringprep').origin}
- 
- # A couple helper functions...
-@@ -91,6 +90,16 @@ while scripts:
-         if mod.__file__ in alsoNeeded and alsoNeeded[mod.__file__] not in deps:
-             scripts.append(alsoNeeded[mod.__file__])
- 
-+try:
-+    # In Python 3.15+, math requires _math_integer but ModuleFinder does
-+    # not report this:
-+    # https://bugzilla.redhat.com/show_bug.cgi?id=2486569
-+    if find_spec('math').origin in deps and not find_spec("_math_integer").origin in deps:
-+        deps.append(find_spec("_math_integer").origin)
-+except AttributeError:
-+    # In older Pythons _math_integer does not exist, this is fine
-+    pass
-+
- # Include some bits that the python install itself needs
- print(sysconfig.get_makefile_filename())
- print(sysconfig.get_config_h_filename())

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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17  6:28 [rpms/anaconda] rawhide: Remove unused patches Katerina Koukiou

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