This results in a broken python3-cryptography-native:
$ bitbake trusted-firmware-m -c devshell
$ nativepython3
>>> import cryptography.hazmat.backends.openssl.backend
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/yocto/ross/build/tmp/work/musca_b1-poky-eabi/trusted-firmware-m/1.5.0-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/__init__.py",
line 6, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File
"/yocto/ross/build/tmp/work/musca_b1-poky-eabi/trusted-firmware-m/1.5.0-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/cryptography/hazmat/backends/openssl/backend.py",
line 64, in <module>
from cryptography.hazmat.bindings.openssl import binding
File
"/yocto/ross/build/tmp/work/musca_b1-poky-eabi/trusted-firmware-m/1.5.0-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py",
line 205, in <module>
Binding.init_static_locks()
File
"/yocto/ross/build/tmp/work/musca_b1-poky-eabi/trusted-firmware-m/1.5.0-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py",
line 179, in init_static_locks
cls._ensure_ffi_initialized()
File
"/yocto/ross/build/tmp/work/musca_b1-poky-eabi/trusted-firmware-m/1.5.0-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py",
line 167, in _ensure_ffi_initialized
_openssl_assert(
File
"/yocto/ross/build/tmp/work/musca_b1-poky-eabi/trusted-firmware-m/1.5.0-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py",
line 77, in _openssl_assert
raise InternalError(
cryptography.exceptions.InternalError: Unknown OpenSSL error. This
error is commonly encountered when another library is not cleaning up
the OpenSSL error stack. If you are using cryptography with another
library that uses OpenSSL try disabling it before reporting a bug.
Otherwise please file an issue at
https://github.com/pyca/cryptography/issues with information on how to
reproduce this. ([_OpenSSLErrorWithText(code=310378599, lib=37,
reason=103, reason_text=b'error:12800067:DSO support routines::could
not load the shared library'), _OpenSSLErrorWithText(code=310378599,
lib=37, reason=103, reason_text=b'error:12800067:DSO support
routines::could not load the shared library'),
_OpenSSLErrorWithText(code=126615813, lib=15, reason=786693,
reason_text=b'error:078C0105:common libcrypto routines::init fail')])
Initial hunch is that python3-native is linking to the host libssl but
crypto is linking to our libssl.
Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#94946):
https://lists.openembedded.org/g/openembedded-devel/message/94946
Mute This Topic: https://lists.openembedded.org/mt/88458057/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-