Skip to contentSkip to conversation

python3-cryptography: Add -pthread to link flags

PATCH In review Khem Raj 2 participants 2 messages Mar 2, 2018

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-cryptography: Add -pthread to link flags

It builds openssl module which needs pthread_atfork() but we do not link it with libpthread, which results in runtime loading errors

---
 meta-python/recipes-devtools/python/python3-cryptography_2.1.4.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-cryptography_2.1.4.bb +2 -0
index f64e51d3f..195923343 100644
@@ -1,6 +1,8 @@
 inherit pypi setuptools3
 require python-cryptography.inc
 
+LDSHARED += "-pthread"
+
 SRC_URI += " \
     file://run-ptest \
 "
Signature · 1 line
2.16.2
Acked-by on v1 1/1
#1 lore raw

Thank you for the catch.

This is why we need to have 100% package run time coverage. Call to arms for everyone in the community. If you are reading this, this means you.

Quoted 33 lines · Khem Raj

It builds openssl module which needs pthread_atfork() but we do not link it with libpthread, which results in runtime loading errors

---
 meta-python/recipes-devtools/python/python3-cryptography_2.1.4.bb | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

python3-cryptography_2.1.4.bb b/meta-python/recipes-devtools/python/ python3-cryptography_2.1.4.bb
index f64e51d3f..195923343 100644

meta-python/recipes-devtools/python/python3-cryptography_2.1.4.bb +2 -1
@@ -1,6 +1,8 @@
 inherit pypi setuptools3
 require python-cryptography.inc
 
+LDSHARED += "-pthread"
+
 SRC_URI += " \
     file://run-ptest \
 "
--

2.16.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel