mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
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 <sam@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user