Accepting request 1155819 from home:Vogtinator:branches:KDE:Qt:PyQt

- Add patch to fix build with GCC14 (boo#1221016)
- Switch to %autosetup

OBS-URL: https://build.opensuse.org/request/show/1155819
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-qt5-sip?expand=0&rev=11
This commit is contained in:
Benjamin Greiner 2024-03-07 08:23:52 +00:00 committed by Git OBS Bridge
parent 229d925fa1
commit 9e40608a72
3 changed files with 27 additions and 3 deletions

18
fix-build-gcc14.patch Normal file
View File

@ -0,0 +1,18 @@
From: Phil Thompson <phil@riverbankcomputing.com>
Date: Mon, 4 Dec 2023 11:54:31 +0000
Subject: [PATCH] Removed a warning message (soon to be an error message) in
the v12 module.
Index: PyQt5_sip-12.13.0/siplib.c
===================================================================
--- PyQt5_sip-12.13.0.orig/siplib.c
+++ PyQt5_sip-12.13.0/siplib.c
@@ -3902,7 +3902,7 @@ static int parsePass1(PyObject **parseEr
{
case '#':
/* A ctor has an argument with the /Transfer/ annotation. */
- *selfp = va_arg(va, PyObject *);
+ *selfp = (sipSimpleWrapper *)va_arg(va, PyObject *);
break;
case 'B':

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 7 07:49:00 UTC 2024 - Fabian Vogt <fabian@ritter-vogt.de>
- Add patch to fix build with GCC14 (boo#1221016)
- Switch to %autosetup
-------------------------------------------------------------------
Sun Oct 15 13:56:21 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -25,7 +25,8 @@ Summary: The sip module support for PyQt5
URL: https://www.riverbankcomputing.com/software/sip/
Group: Development/Languages/Python
Source0: https://files.pythonhosted.org/packages/source/P/PyQt5-sip/PyQt5_sip-%{version}.tar.gz
Patch0: support-python3.6.patch
Patch0: fix-build-gcc14.patch
Patch100: support-python3.6.patch
BuildRequires: %{python_module devel >= 3.6}
BuildRequires: %{python_module setuptools >= 30.3}
BuildRequires: fdupes
@ -44,8 +45,7 @@ bindings for any C or C++ library. For example, it is also used to
create wxPython, the Python bindings for the wxWidget toolkit.
%prep
%setup -q -n PyQt5_sip-%{version}
%patch0 -p1
%autosetup -p1 -n PyQt5_sip-%{version}
%build
%python_build