commit: ddd27285d37ae7e9ebc54367d1144079ae967529
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 23 11:09:05 2024 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Jun 23 11:09:05 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddd27285
dev-python/wxpython: fix building against >=sip-6.8.4
Signed-off-by: David Seifert <soap <AT> gentoo.org>
dev-python/wxpython/wxpython-4.2.1-r2.ebuild | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dev-python/wxpython/wxpython-4.2.1-r2.ebuild
b/dev-python/wxpython/wxpython-4.2.1-r2.ebuild
index ffdc1114156b..ec62390a1579 100644
--- a/dev-python/wxpython/wxpython-4.2.1-r2.ebuild
+++ b/dev-python/wxpython/wxpython-4.2.1-r2.ebuild
@@ -67,6 +67,13 @@ python_prepare_all() {
eapply "${FILESDIR}/${PN}-4.2.0-no-webkit.patch"
fi
+ # sip assumes unconditional C99 support since 6.8.4
+ # which breaks when trying to use "sip/siplib/bool.cpp"
+ #
https://github.com/Python-SIP/sip/commit/29fb3df49ff37df7aab9d5666fd72de95ac9e7f8
+ if has_version ">=dev-python/sip-6.8.4"; then
+ sed -i '\|sip/siplib/bool\.cpp|d' wscript || die
+ fi
+
distutils-r1_python_prepare_all
}