cryptography libpthread patch
This commit is contained in:
parent
6d058ce97e
commit
a7ee2cd4d0
2 changed files with 17 additions and 0 deletions
|
@ -8,6 +8,7 @@ class CryptographyRecipe(CompiledComponentsPythonRecipe):
|
||||||
url = 'https://github.com/pyca/cryptography/archive/{version}.tar.gz'
|
url = 'https://github.com/pyca/cryptography/archive/{version}.tar.gz'
|
||||||
depends = [('python2', 'python3crystax'), 'openssl', 'idna', 'pyasn1', 'six', 'setuptools', 'ipaddress', 'cffi']
|
depends = [('python2', 'python3crystax'), 'openssl', 'idna', 'pyasn1', 'six', 'setuptools', 'ipaddress', 'cffi']
|
||||||
call_hostpython_via_targetpython = False
|
call_hostpython_via_targetpython = False
|
||||||
|
patches = ['libpthread.patch']
|
||||||
|
|
||||||
def get_recipe_env(self, arch):
|
def get_recipe_env(self, arch):
|
||||||
env = super(CryptographyRecipe, self).get_recipe_env(arch)
|
env = super(CryptographyRecipe, self).get_recipe_env(arch)
|
||||||
|
|
16
recipes/cryptography/libpthread.patch
Normal file
16
recipes/cryptography/libpthread.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py
|
||||||
|
index 35ccd6b..6d5ee4c 100755
|
||||||
|
--- a/src/_cffi_src/build_openssl.py
|
||||||
|
+++ b/src/_cffi_src/build_openssl.py
|
||||||
|
@@ -42,10 +42,7 @@ def _get_openssl_libraries(platform):
|
||||||
|
# -lpthread required due to usage of pthread an potential
|
||||||
|
# existance of a static part containing e.g. pthread_atfork
|
||||||
|
# (https://github.com/pyca/cryptography/issues/5084)
|
||||||
|
- if sys.platform == "zos":
|
||||||
|
- return ["ssl", "crypto"]
|
||||||
|
- else:
|
||||||
|
- return ["ssl", "crypto", "pthread"]
|
||||||
|
+ return ["ssl", "crypto"]
|
||||||
|
|
||||||
|
|
||||||
|
def _extra_compile_args(platform):
|
Loading…
Reference in a new issue