dev-python/sip: backport build fix for pyqt5

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens 2025-10-16 13:07:24 -04:00
parent f15daadb9a
commit 45cb239ff6
No known key found for this signature in database
GPG Key ID: B24406B0B0AC4334
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,13 @@
https://github.com/Python-SIP/sip/issues/95
https://github.com/Python-SIP/sip/commit/b6a7ec2453899
--- a/sipbuild/generator/resolver/resolver.py
+++ b/sipbuild/generator/resolver/resolver.py
@@ -39,4 +39,8 @@
mod.py_name = mod.fq_py_name.name.split('.')[-1]
+ # There is nothing else that needs doing for composite modules.
+ if spec.is_composite:
+ return
+
# Set the default meta-type for the main module if it doesn't have one
# explicitly set.

View File

@ -16,8 +16,7 @@ SRC_URI="
LICENSE="BSD-2 BSD"
SLOT="5"
# https://github.com/Python-SIP/sip/issues/95
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
RDEPEND="
dev-python/packaging[${PYTHON_USEDEP}]
@ -34,6 +33,10 @@ distutils_enable_sphinx docs \
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/${P}-pyqt5.patch
)
python_test() {
# some tests currently fails to find test/utils without this
# TODO: try again without, used to be unneeded but not been looked into