From 778d3a3db25ea46f74de61b789adcfaff98d53f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 22 Feb 2022 12:03:11 +0100 Subject: [PATCH] dev-python/pypy3-exe: Fix translating with python2.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copy the temporary cffi._pycparser module into "pycparser". For some reason, when RPython imports it as "cffi._pycparser" rather than "pycparser", it creates humongous regexps that hit Python 2.7's group limit. Magic. Closes: https://bugs.gentoo.org/833816 Signed-off-by: Michał Górny --- dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild b/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild index 8c18a537ee0ff..259314b5d362a 100644 --- a/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild +++ b/dev-python/pypy3-exe/pypy3-exe-7.3.8.ebuild @@ -139,9 +139,8 @@ src_configure() { if [[ ${EPYTHON} != pypy ]]; then # reuse bundled pycparser to avoid external dep - mkdir -p "${T}"/pymod/cffi || die - : > "${T}"/pymod/cffi/__init__.py || die - cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/cffi/ || die + mkdir -p "${T}"/pymod || die + cp -r lib_pypy/cffi/_pycparser "${T}"/pymod/pycparser || die local -x PYTHONPATH=${T}/pymod:${PYTHONPATH} fi