public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: LuK1337 <priv.luk@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pyside6] rawhide: Apply ENOPT_NO_ZERODEFAULT support patch from upstream
Date: Tue, 13 Oct 2026 09:47:40 GMT [thread overview]
Message-ID: <179188486097.1.6240012613520155420.rpms-python-pyside6-13dc07ff3b29@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-pyside6
Branch : rawhide
Commit : 13dc07ff3b29caa2f9d96c5b71b676227f688af6
Author : LuK1337 <priv.luk@gmail.com>
Date : 2026-10-13T11:46:46+02:00
Stats : +114/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pyside6/c/13dc07ff3b29caa2f9d96c5b71b676227f688af6?branch=rawhide
Log:
Apply ENOPT_NO_ZERODEFAULT support patch from upstream
Test: from PySide6.QtWidgets import QFileDialog
QFileDialog.Options()
---
diff --git a/0001-Enumerations-Enable-the-forgiveness-feature-ENOPT_NO.patch b/0001-Enumerations-Enable-the-forgiveness-feature-ENOPT_NO.patch
new file mode 100644
index 0000000..eb0c5fd
--- /dev/null
+++ b/0001-Enumerations-Enable-the-forgiveness-feature-ENOPT_NO.patch
@@ -0,0 +1,106 @@
+From ccdba08a37998bbbabadf42abfae871af5df8ac3 Mon Sep 17 00:00:00 2001
+From: Friedemann Kleint <Friedemann.Kleint@qt.io>
+Date: Fri, 17 Apr 2026 14:18:25 +0200
+Subject: [PATCH] Enumerations: Enable the forgiveness feature
+ ENOPT_NO_ZERODEFAULT for 3.15
+
+Adapt the op codes for detecting a parameterless __init__() call in
+enum code to 3.15.
+
+Task-number: PYSIDE-3221
+Task-number: PYSIDE-1735
+Change-Id: I21b8b8108e2d74e13ff4cb0f7fe2f41121361422
+Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
+Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
+---
+ sources/pyside6/tests/pysidetest/enum_test.py | 23 +++++++++++++++++--
+ .../shiboken6/libshiboken/sbkfeature_base.cpp | 8 ++++++-
+ sources/shiboken6/libshiboken/sbkmodule.cpp | 2 ++
+ 3 files changed, 30 insertions(+), 3 deletions(-)
+
+diff --git a/sources/pyside6/tests/pysidetest/enum_test.py b/sources/pyside6/tests/pysidetest/enum_test.py
+index a60b4d188..8fbcda932 100644
+--- a/sources/pyside6/tests/pysidetest/enum_test.py
++++ b/sources/pyside6/tests/pysidetest/enum_test.py
+@@ -209,8 +209,27 @@ class InvestigateOpcodesTest(unittest.TestCase):
+ ('LOAD_CONST', 82, 0),
+ ('RETURN_VALUE', 35, None)]
+
+- self.assertEqual(self.read_code(self.probe_function1), result_1)
+- self.assertEqual(self.read_code(self.probe_function2), result_2)
++ if sys.version_info[:2] >= (3, 15):
++ result_1 = [('RESUME', 128, 0),
++ ('LOAD_GLOBAL', 91, 0),
++ ('LOAD_ATTR', 79, 2),
++ ('STORE_FAST', 111, 1),
++ ('LOAD_CONST', 81, 0),
++ ('RETURN_VALUE', 33, None)
++ ]
++ result_2 = [('RESUME', 128, 0),
++ ('LOAD_GLOBAL', 91, 0),
++ ('LOAD_ATTR', 79, 2),
++ ('PUSH_NULL', 31, None),
++ ('CALL', 50, 0),
++ ('STORE_FAST', 111, 1),
++ ('LOAD_CONST', 81, 0),
++ ('RETURN_VALUE', 33, None)]
++
++ actual1 = self.read_code(self.probe_function1)
++ actual2 = self.read_code(self.probe_function2)
++ self.assertEqual(actual1, result_1)
++ self.assertEqual(actual2, result_2)
+
+
+ if __name__ == '__main__':
+diff --git a/sources/shiboken6/libshiboken/sbkfeature_base.cpp b/sources/shiboken6/libshiboken/sbkfeature_base.cpp
+index fc29442ce..3d00c83f4 100644
+--- a/sources/shiboken6/libshiboken/sbkfeature_base.cpp
++++ b/sources/shiboken6/libshiboken/sbkfeature_base.cpp
+@@ -113,10 +113,12 @@ void disassembleFrame(const char *marker)
+
+ // OpCodes: Adapt for each Python version by checking the defines in the generated header opcode_ids.h
+ // egrep '( LOAD_ATTR | CALL | PUSH_NULL )' opcode_ids.h
+-// See also test sources/pyside6/tests/pysidetest/enum_test.py
++// See also test sources/pyside6/tests/pysidetest/enum_test.py, sbkmodule.cpp:300
+
+ static int constexpr LOAD_ATTR_OpCode(long pyVersion)
+ {
++ if (pyVersion >= 0x030F00) // 3.15
++ return 79;
+ if (pyVersion >= 0x030E00) // 3.14
+ return 80;
+ if (pyVersion >= 0x030D00) // 3.13
+@@ -126,6 +128,8 @@ static int constexpr LOAD_ATTR_OpCode(long pyVersion)
+
+ static int constexpr CALL_OpCode(long pyVersion)
+ {
++ if (pyVersion >= 0x030F00) // 3.15
++ return 50;
+ if (pyVersion >= 0x030E00) // 3.14
+ return 52;
+ if (pyVersion >= 0x030D00) // 3.13
+@@ -135,6 +139,8 @@ static int constexpr CALL_OpCode(long pyVersion)
+
+ static int constexpr PUSH_NULL_OpCode(long pyVersion)
+ {
++ if (pyVersion >= 0x030F00) // 3.15
++ return 31;
+ if (pyVersion >= 0x030E00) // 3.14
+ return 33;
+ return 34;
+diff --git a/sources/shiboken6/libshiboken/sbkmodule.cpp b/sources/shiboken6/libshiboken/sbkmodule.cpp
+index 241629215..d49ffd7ae 100644
+--- a/sources/shiboken6/libshiboken/sbkmodule.cpp
++++ b/sources/shiboken6/libshiboken/sbkmodule.cpp
+@@ -308,6 +308,8 @@ static int constexpr LOAD_CONST_OpCode(long pyVersion)
+
+ static int constexpr IMPORT_NAME_OpCode(long pyVersion)
+ {
++ if (pyVersion >= 0x030F00) // 3.15
++ return 72;
+ if (pyVersion >= 0x030E00) // 3.14
+ return 73;
+ if (pyVersion >= 0x030D00) // 3.13
+--
+2.56.0
+
diff --git a/python-pyside6.spec b/python-pyside6.spec
index 473770b..43f260e 100644
--- a/python-pyside6.spec
+++ b/python-pyside6.spec
@@ -10,7 +10,7 @@
Name: python-%{pypi_name}
Version: 6.11.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Python bindings for the Qt 6 cross-platform application and UI framework
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
@@ -28,6 +28,10 @@ Patch: 0001-Fix-header-installation-path-to-follow-filesystem-st.patch
Patch: 0001-Fix-header-packaging-and-include-path-regressions.patch
Patch: 0001-Always-link-to-python-libraries.patch
+# Upstream Python 3.15 fixes (PYSIDE-3221)
+# https://codereview.qt-project.org/c/pyside/pyside-setup/+/729499
+Patch: 0001-Enumerations-Enable-the-forgiveness-feature-ENOPT_NO.patch
+
BuildRequires: cmake
BuildRequires: ninja-build
BuildRequires: gcc
@@ -367,6 +371,9 @@ export LD_LIBRARY_PATH="%{buildroot}%{_libdir}"
%endif
%changelog
+* Tue Oct 13 2026 LuK1337 <priv.luk@gmail.com> - 6.11.2-3
+- Apply ENOPT_NO_ZERODEFAULT support patch from upstream
+
* Thu Sep 10 2026 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 6.11.2-2
- Rebuilt for libxml-2.5.4
reply other threads:[~2026-10-13 9:47 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=179188486097.1.6240012613520155420.rpms-python-pyside6-13dc07ff3b29@fedoraproject.org \
--to=priv.luk@gmail.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