commit: 2a56d48043c6de82dedb7dab9e618b77f435855e Author: Kostadin Shishmanov <kocelfc <AT> tutanota <DOT> com> AuthorDate: Thu Feb 8 00:16:26 2024 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Thu Feb 8 01:49:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a56d480
dev-python/PyQt5-sip: Fix incompatible pointer types Closes: https://bugs.gentoo.org/919000 Signed-off-by: Kostadin Shishmanov <kocelfc <AT> tutanota.com> Closes: https://github.com/gentoo/gentoo/pull/35222 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> dev-python/PyQt5-sip/PyQt5-sip-12.13.0-r1.ebuild | 22 ++++++++++++++++++++++ .../PyQt5-sip/files/PyQt5-sip-12.13.0-c99.patch | 16 ++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/dev-python/PyQt5-sip/PyQt5-sip-12.13.0-r1.ebuild b/dev-python/PyQt5-sip/PyQt5-sip-12.13.0-r1.ebuild new file mode 100644 index 000000000000..ef695eed82eb --- /dev/null +++ b/dev-python/PyQt5-sip/PyQt5-sip-12.13.0-r1.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN/-/_} +PYTHON_COMPAT=( python3_{10..12} ) +inherit distutils-r1 pypi + +DESCRIPTION="sip extension module for PyQt5" +HOMEPAGE="https://www.riverbankcomputing.com/software/sip/" + +LICENSE="|| ( GPL-2 GPL-3 SIP )" +SLOT="0/$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" + +PATCHES=( + "${FILESDIR}/PyQt5-sip-12.13.0-c99.patch" +) diff --git a/dev-python/PyQt5-sip/files/PyQt5-sip-12.13.0-c99.patch b/dev-python/PyQt5-sip/files/PyQt5-sip-12.13.0-c99.patch new file mode 100644 index 000000000000..b1fd2470758c --- /dev/null +++ b/dev-python/PyQt5-sip/files/PyQt5-sip-12.13.0-c99.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/919000 +https://www.riverbankcomputing.com/hg/sip/rev/afc99fa84d0d + +diff --git a/siplib.c b/siplib.c +index 8b0a6d5..d996a9c 100644 +--- a/siplib.c ++++ b/siplib.c +@@ -3902,7 +3902,7 @@ static int parsePass1(PyObject **parseErrp, sipSimpleWrapper **selfp, + { + case '#': + /* A ctor has an argument with the /Transfer/ annotation. */ +- *selfp = va_arg(va, PyObject *); ++ *selfp = (sipSimpleWrapper *) va_arg(va, PyObject *); + break; + + case 'B':