<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12339</bug_id>
          
          <creation_ts>2017-11-13 10:17:39 +0000</creation_ts>
          <short_desc>python-cryptography 2.0.3 from OE rocko requires -pthread in CFLAGS on some platforms</short_desc>
          <delta_ts>2017-12-04 15:21:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gino Badouri">badouri.g</reporter>
          <assigned_to name="Derek Straka">derek</assigned_to>
          <cc>akuster</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78172</commentid>
    <comment_count>0</comment_count>
    <who name="Gino Badouri">badouri.g</who>
    <bug_when>2017-11-13 10:17:39 +0000</bug_when>
    <thetext>Hi there,

In OE rocko python cryptography will fail to load when built for cortexa15hf-neon-vfpv4.

Plugin  Extensions/OpenWebif failed to load: /usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: undefined symbol: pthread_atfork
Traceback (most recent call last):
  File &quot;/usr/lib/enigma2/python/Components/PluginComponent.py&quot;, line 52, in readPluginList
  File &quot;/usr/lib/enigma2/python/Tools/Import.py&quot;, line 2, in my_import
  File &quot;/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/plugin.py&quot;, line 29, in &lt;module&gt;
    from httpserver import HttpdStart, HttpdStop, HttpdRestart
  File &quot;/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/httpserver.py&quot;, line 16, in &lt;module&gt;
    from twisted.internet import reactor, ssl
  File &quot;/usr/lib/python2.7/site-packages/twisted/internet/ssl.py&quot;, line 59, in &lt;module&gt;
  File &quot;/usr/lib/python2.7/site-packages/OpenSSL/__init__.py&quot;, line 8, in &lt;module&gt;
    from OpenSSL import crypto, SSL
  File &quot;/usr/lib/python2.7/site-packages/OpenSSL/crypto.py&quot;, line 16, in &lt;module&gt;
    from OpenSSL._util import (
  File &quot;/usr/lib/python2.7/site-packages/OpenSSL/_util.py&quot;, line 6, in &lt;module&gt;
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File &quot;/usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py&quot;, line 13, in &lt;module&gt;
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: /usr/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: undefined symbol: pthread_atfork

Adding CFLAGS_append = &quot; -pthread &quot; to the recipe:
https://github.com/openembedded/meta-openembedded/blob/rocko/meta-python/recipes-devtools/python/python-cryptography_2.0.3.bb (or the include file).

Will fix the problem and doesn&apos;t seem to hurt the other platforms where the issue doesn&apos;t occur (mips32el and mips32el-nf).

See also: https://bugs.gentoo.org/630578</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78186</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-11-13 20:29:41 +0000</bug_when>
    <thetext>So we don&apos;t normally track bugs for meta-python in this bug tracker, but since you&apos;ve filed it I&apos;ll assign it over to Derek to have a look at.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78360</commentid>
    <comment_count>2</comment_count>
    <who name="Derek Straka">derek</who>
    <bug_when>2017-11-27 21:57:47 +0000</bug_when>
    <thetext>Patches submitted - 

Master - http://lists.openembedded.org/pipermail/openembedded-devel/2017-November/115783.html

and

Rocko - http://lists.openembedded.org/pipermail/openembedded-devel/2017-November/115784.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78487</commentid>
    <comment_count>3</comment_count>
    <who name="Gino Badouri">badouri.g</who>
    <bug_when>2017-12-04 15:21:22 +0000</bug_when>
    <thetext>Thank you :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>