From 41978046162dd69628a5d7b715b486bbac5ff66a Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 7 Dec 2020 00:33:28 +0000 Subject: [PATCH] dev-python/cffi: fix 1.14.4 build on Darwin Upstream added a further unconditional sysroot include on Darwin, even if pkgconfig worked. Let's drop that. Package-Manager: Portage-3.0.10.3-prefix, Repoman-3.0.2 Signed-off-by: Sam James --- dev-python/cffi/cffi-1.14.4.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-python/cffi/cffi-1.14.4.ebuild b/dev-python/cffi/cffi-1.14.4.ebuild index b3bdb3d093d18..424351b6817f4 100644 --- a/dev-python/cffi/cffi-1.14.4.ebuild +++ b/dev-python/cffi/cffi-1.14.4.ebuild @@ -33,6 +33,14 @@ PATCHES=( "${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch ) +src_prepare() { + if [[ ${CHOST} == *darwin* ]] ; then + # Don't obsessively try to find libffi + sed -i -e "s/.*\-iwithsysroot\/usr\/include\/ffi.*/\tpass/" setup.py || die + fi + distutils-r1_src_prepare +} + src_configure() { tc-export PKG_CONFIG }