[packages/sip6] - fixed patch file and patch number in spec
hawk
hawk at pld-linux.org
Tue Nov 3 12:45:20 CET 2026
commit c0ac9bfeefb226a7de2db0ec5b6cbbde4ef3a378
Author: Marcin Krol <hawk at tld-linux.org>
Date: Tue Nov 3 12:44:51 2026 +0100
- fixed patch file and patch number in spec
PyQt5.patch | 74 ++++++++++++++++++++-----------------------------------------
sip6.spec | 2 +-
2 files changed, 25 insertions(+), 51 deletions(-)
---
diff --git a/sip6.spec b/sip6.spec
index e6b685a..55c3a6f 100644
--- a/sip6.spec
+++ b/sip6.spec
@@ -50,7 +50,7 @@ generowania wxPythona - wiązań Pythona do wxWidgets.
%prep
%setup -q -n sip-%{version}
-%patch -P1 -p1
+%patch -P0 -p1
%build
%py3_build_pyproject
diff --git a/PyQt5.patch b/PyQt5.patch
index 973ada7..7198ab7 100644
--- a/PyQt5.patch
+++ b/PyQt5.patch
@@ -1,53 +1,27 @@
-From 8c451945db664385d20e006a35cc56019743b7d7 Mon Sep 17 00:00:00 2001
-From: Bad3r <github at unsigned.sh>
-Date: Thu, 3 Sep 2026 14:27:44 +0300
-Subject: [PATCH] python3Packages.sip: fix legacy ABI bindings without
- %MinimumABIVersion
+From 09598895c607f3e41f0249ade217ace0a4da6437 Mon Sep 17 00:00:00 2001
+From: Phil Thompson <phil at riverbankcomputing.com>
+Date: Sun, 23 Aug 2026 12:18:00 +0100
+Subject: [PATCH] Bug fixes
-sip 6.16.1 (nixpkgs commit 20d260705e61, PR #558075) makes sipbuild's _finalise_abi_version reject any project that
-passes an explicit abi-version for ABI 12 or 13 unless the module's .sip files declare %MinimumABIVersion, a directive
-that only exists since 6.16. PyQt5 5.15.10 passes abi_version '12.13' from project.py and declares nothing, so
-python3Packages.pyqt5 fails in the generator with:
-
- _in_process.py: ABI v12 is being targeted but the PyQt5.QtCore module doesn't support it
-
-Apply the upstream fix, Python-SIP/sip commit 09598895 (resolves Python-SIP/sip#114), which skips the check for
-ABI <= 13 when no minimum is declared. No sip release contains it yet; drop this patch once one does. Tracked in
-NixOS/nixpkgs#559458.
-
-Validation: nix build -f . python3Packages.sip (patch applies to sipbuild/generator/parser/parser_manager.py);
-nix build -f . python3Packages.pyqt5 gets past "Generating the QtCore bindings" and through the following modules
-(cancelled before the C++ compile stage).
+- Fixed a regression in SIP v6.16.1 that meant that bindings using legacy
+ ABIs would not build if they didn't specify `%MinimumABIVersion`.
+ Resolves #114
---
- pkgs/development/python-modules/sip/default.nix | 11 +++++++++++
- 1 file changed, 11 insertions(+)
+ sipbuild/generator/parser/parser_manager.py | 4 ++++
+ 1 file changed, 4 insertions(+)
-diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix
-index 5e3fb1bcab78c..8fa287810ccf0 100644
---- a/pkgs/development/python-modules/sip/default.nix
-+++ b/pkgs/development/python-modules/sip/default.nix
-@@ -2,6 +2,7 @@
- lib,
- buildPythonPackage,
- fetchPypi,
-+ fetchpatch,
- setuptools,
- setuptools-scm,
- packaging,
-@@ -22,6 +23,16 @@ buildPythonPackage (finalAttrs: {
- hash = "sha256-CnOcnNKSneTgiERW2Mrzz7IsEFNHV8d5e9jca9ntabw=";
- };
-
-+ patches = [
-+ # 6.16.1 rejects bindings that target ABI 12/13 without declaring
-+ # %MinimumABIVersion, which breaks pyqt5. Fixed upstream after 6.16.1.
-+ (fetchpatch {
-+ name = "sip-allow-legacy-abi-without-minimum-abi-version.patch";
-+ url = "https://github.com/Python-SIP/sip/commit/09598895c607f3e41f0249ade217ace0a4da6437.patch";
-+ hash = "sha256-v0YeHyg0ymB0v32gpVRbMBIUk9U2etjs93VuOGPGg2M=";
-+ })
-+ ];
-+
- build-system = [
- setuptools
- setuptools-scm
+diff --git a/sipbuild/generator/parser/parser_manager.py b/sipbuild/generator/parser/parser_manager.py
+index 8f2501ff..83c63310 100644
+--- a/sipbuild/generator/parser/parser_manager.py
++++ b/sipbuild/generator/parser/parser_manager.py
+@@ -1938,6 +1938,10 @@ def _finalise_abi_version(self):
+ # We have no minimum version information from which to derive a
+ # major version so use the default.
+ major = DEFAULT_ABI_MAJOR
++ elif major <= 13 and not minimums:
++ # Allow older ABIs that don't specify %MinimumABIVersion. This
++ # case can be removed in SIP v7.
++ pass
+ else:
+ # Check that this major version is supported and that any minor
+ # version meets the minimum requirements.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/sip6.git/commitdiff/c0ac9bfeefb226a7de2db0ec5b6cbbde4ef3a378
More information about the pld-cvs-commit
mailing list