[Buildroot] [PATCH v2, 1/1] package/python-cryptography: add host-python-six dependency
James Hilliard
james.hilliard1 at gmail.com
Thu Nov 4 05:05:17 UTC 2021
On Tue, Oct 26, 2021 at 10:34 AM Fabrice Fontaine
<fontaine.fabrice at gmail.com> wrote:
>
> Fix the wrong assumption that six is not a dependency with python3 made
> in commit 95a63a34ac9204c4fe069154783bd97ed48c3ae2 to avoid the
> following build failure with ca-certificates:
>
> Traceback (most recent call last):
> File "/home/buildroot/autobuild/instance-2/output-1/build/ca-certificates-20211016/mozilla/certdata2pem.py", line 31, in <module>
> from cryptography import x509
> File "/home/buildroot/autobuild/instance-2/output-1/host/lib/python3.9/site-packages/cryptography/x509/__init__.py", line 7, in <module>
> from cryptography.x509 import certificate_transparency
> File "/home/buildroot/autobuild/instance-2/output-1/host/lib/python3.9/site-packages/cryptography/x509/certificate_transparency.py", line 10, in <module>
> import six
> ModuleNotFoundError: No module named 'six'
>
> Fixes:
> - http://autobuild.buildroot.org/results/2b6872eec31362bf3edf88c69b67d681b2f016aa
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Reviewed-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
> Changes v1 -> v2 (after review of Arnout Vandecappelle):
> - Use host-python-six instead of host-python3-six
>
> package/python-cryptography/python-cryptography.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/python-cryptography/python-cryptography.mk b/package/python-cryptography/python-cryptography.mk
> index e21b9db042..acc21c1227 100644
> --- a/package/python-cryptography/python-cryptography.mk
> +++ b/package/python-cryptography/python-cryptography.mk
> @@ -14,7 +14,7 @@ PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project
> PYTHON_CRYPTOGRAPHY_CPE_ID_PRODUCT = cryptography
> PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi openssl
> HOST_PYTHON_CRYPTOGRAPHY_NEEDS_HOST_PYTHON = python3
> -HOST_PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python3-cffi host-openssl
> +HOST_PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python3-cffi host-python-six host-openssl
>
> $(eval $(python-package))
> $(eval $(host-python-package))
> --
> 2.33.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
More information about the buildroot
mailing list