From 29cf6811a259cb6a2f69d4f637be5c98dc390cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 3 May 2025 15:10:25 +0200 Subject: [PATCH] dev-vcs/breezy: Fix building with cython-3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/954134 Signed-off-by: Michał Górny --- dev-vcs/breezy/breezy-3.3.9.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev-vcs/breezy/breezy-3.3.9.ebuild b/dev-vcs/breezy/breezy-3.3.9.ebuild index 958345f937911..03130fffa9eee 100644 --- a/dev-vcs/breezy/breezy-3.3.9.ebuild +++ b/dev-vcs/breezy/breezy-3.3.9.ebuild @@ -7,7 +7,7 @@ CRATES="" DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_COMPAT=( python3_{11..13} ) inherit cargo distutils-r1 optfeature @@ -57,6 +57,12 @@ src_prepare() { -e 's@, strip=Strip\.All@@' \ -i setup.py || die + # https://bugs.gentoo.org/954134 + find -name '*.pyx' -exec \ + sed -e '/_AsUnsignedLongMask/s:PyInt:PyLong:' \ + -e 's:cpython\.int:cpython.long:' \ + -i {} + || die + distutils-r1_src_prepare }