From ddd27285d37ae7e9ebc54367d1144079ae967529 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 23 Jun 2024 13:09:05 +0200 Subject: dev-python/wxpython: fix building against >=sip-6.8.4 Signed-off-by: David Seifert --- dev-python/wxpython/wxpython-4.2.1-r2.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'dev-python/wxpython') 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 } -- cgit v1.2.3