summaryrefslogtreecommitdiff
path: root/dev-lang/python/files/python-2.7.10-system-libffi.patch
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-03-07 16:39:28 +0100
committerMichał Górny <mgorny@gentoo.org>2020-03-07 16:39:28 +0100
commit7fc5957ee0cb88e607f4c1988d91a07cebaf6d96 (patch)
tree9d7b284956b817c8d0ed2ed87284cdbbf81402b8 /dev-lang/python/files/python-2.7.10-system-libffi.patch
parentb265f17bc2d3a58b311c073acb48fd49527e5332 (diff)
downloadgentoo-7fc5957ee0cb88e607f4c1988d91a07cebaf6d96.tar.gz
gentoo-7fc5957ee0cb88e607f4c1988d91a07cebaf6d96.tar.bz2
gentoo-7fc5957ee0cb88e607f4c1988d91a07cebaf6d96.zip
dev-lang/python: Remove redundant versions
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-lang/python/files/python-2.7.10-system-libffi.patch')
-rw-r--r--dev-lang/python/files/python-2.7.10-system-libffi.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/dev-lang/python/files/python-2.7.10-system-libffi.patch b/dev-lang/python/files/python-2.7.10-system-libffi.patch
deleted file mode 100644
index 0b49b794bd8d..000000000000
--- a/dev-lang/python/files/python-2.7.10-system-libffi.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-make sure we respect the system libffi setting in our build config.
-the compiler probing is fragile and can break in some situations.
-
---- a/setup.py
-+++ b/setup.py
-@@ -2069,7 +2069,7 @@ class PyBuildExt(build_ext):
- return True
-
- def detect_ctypes(self, inc_dirs, lib_dirs):
-- self.use_system_libffi = False
-+ self.use_system_libffi = ('--with-system-ffi' in sysconfig.get_config_var("CONFIG_ARGS"))
- include_dirs = []
- extra_compile_args = []
- extra_link_args = []
-@@ -2113,7 +2113,7 @@ class PyBuildExt(build_ext):
- sources=['_ctypes/_ctypes_test.c'])
- self.extensions.extend([ext, ext_test])
-
-- if not '--with-system-ffi' in sysconfig.get_config_var("CONFIG_ARGS"):
-+ if not self.use_system_libffi:
- return
-
- if host_platform == 'darwin':
-@@ -2141,10 +2141,10 @@ class PyBuildExt(build_ext):
- ffi_lib = lib_name
- break
-
-- if ffi_inc and ffi_lib:
-+ if ffi_inc:
- ext.include_dirs.extend(ffi_inc)
-+ if ffi_lib:
- ext.libraries.append(ffi_lib)
-- self.use_system_libffi = True
-
-
- class PyBuildInstall(install):