commit:     a4ae40d4bed1cde67758df445b2ac83dfe7e2a0e
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon May 26 13:47:28 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon May 26 14:12:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4ae40d4

dev-python/sip: fix build for wxpython

Looks like was a sip bug after all given sip upstream
provided a patch.

Closes: https://bugs.gentoo.org/956566
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-python/sip/files/sip-6.11.1-wxpython.patch             | 10 ++++++++++
 dev-python/sip/{sip-6.11.1.ebuild => sip-6.11.1-r1.ebuild} |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/dev-python/sip/files/sip-6.11.1-wxpython.patch 
b/dev-python/sip/files/sip-6.11.1-wxpython.patch
new file mode 100644
index 000000000000..98fcec49b606
--- /dev/null
+++ b/dev-python/sip/files/sip-6.11.1-wxpython.patch
@@ -0,0 +1,10 @@
+https://bugs.gentoo.org/956566
+https://github.com/wxWidgets/Phoenix/issues/2758
+https://github.com/Python-SIP/sip/issues/77#issuecomment-2909587858
+--- a/sipbuild/generator/instantiations.py
++++ b/sipbuild/generator/instantiations.py
+@@ -463,3 +463,3 @@
+     if klass.iface_file.module is None and superclass_name.is_simple:
+-        superclass = _find_argument_value(superclass_name, p, symbol,
++        superclass = _find_argument_value(superclass_name.base_name, p, 
symbol,
+                 tmpl_names, template, pm)

diff --git a/dev-python/sip/sip-6.11.1.ebuild 
b/dev-python/sip/sip-6.11.1-r1.ebuild
similarity index 94%
rename from dev-python/sip/sip-6.11.1.ebuild
rename to dev-python/sip/sip-6.11.1-r1.ebuild
index 8fac7b9d0af6..50e7a1ac56c5 100644
--- a/dev-python/sip/sip-6.11.1.ebuild
+++ b/dev-python/sip/sip-6.11.1-r1.ebuild
@@ -30,3 +30,7 @@ distutils_enable_sphinx docs \
        dev-python/myst-parser \
        dev-python/sphinx-rtd-theme
 distutils_enable_tests pytest
+
+PATCHES=(
+       "${FILESDIR}"/${P}-wxpython.patch
+)

Reply via email to