[Buildroot] [PATCH] package/ca-certificates: add missing host-python3-six dependency

Romain Naour romain.naour at gmail.com
Wed Nov 3 21:01:58 UTC 2021


Hello James, Peter,

Le 03/11/2021 à 20:36, Peter Seiderer a écrit :
> Hello James, Hilliard,
> 
> On Mon, 1 Nov 2021 21:20:10 -0600, James Hilliard <james.hilliard1 at gmail.com> wrote:
> 
>> On Mon, Nov 1, 2021 at 7:34 AM Romain Naour <romain.naour at gmail.com> wrote:
>>>
>>> ca-certificates use some python scripts during the build step that
>>> requires python-six for host-python3.
>>>
>>> python3 certdata2pem.py
>>> Traceback (most recent call last):
>>>   File "/builds/buildroot.org/buildroot/test-output/TestDockerCompose/build/ca-certificates-20211016/mozilla/certdata2pem.py", line 31, in <module>
>>>     from cryptography import x509
>>>   File "/builds/buildroot.org/buildroot/test-output/TestDockerCompose/host/lib/python3.9/site-packages/cryptography/x509/__init__.py", line 7, in <module>
>>>     from cryptography.x509 import certificate_transparency
>>>   File "/builds/buildroot.org/buildroot/test-output/TestDockerCompose/host/lib/python3.9/site-packages/cryptography/x509/certificate_transparency.py", line 10, in <module>
>>>     import six
>>> ModuleNotFoundError: No module named 'six'
>>
>> The failure appears to come from a missing cryptography dependency
>> so I think my fix in python-cryptography may be better:
>> https://patchwork.ozlabs.org/project/buildroot/patch/20211029065957.3084528-1-james.hilliard1@gmail.com/
> 
> Accord with James as the backtrace shows the 'import six' from the cryptography
> package...

Thanks for the feedback, I'm marking this patch rejected.

Best regards,
Romain


> 
> Regards,
> Peter
> 
>>
>>>
>>> Fixes:
>>> https://gitlab.com/buildroot.org/buildroot/-/jobs/1734417711
>>> http://autobuild.buildroot.net/results/d14/d145f997cc6db17a8eab14d9ced8fa35332c4969/build-end.log
>>>
>>> Signed-off-by: Romain Naour <romain.naour at gmail.com>
>>> Cc: Martin Bark <martin at barkynet.com>
>>> ---
>>>  package/ca-certificates/ca-certificates.mk | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/package/ca-certificates/ca-certificates.mk b/package/ca-certificates/ca-certificates.mk
>>> index eb75d23f44..e21ac5d907 100644
>>> --- a/package/ca-certificates/ca-certificates.mk
>>> +++ b/package/ca-certificates/ca-certificates.mk
>>> @@ -7,7 +7,7 @@
>>>  CA_CERTIFICATES_VERSION = 20211016
>>>  CA_CERTIFICATES_SOURCE = ca-certificates_$(CA_CERTIFICATES_VERSION).tar.xz
>>>  CA_CERTIFICATES_SITE = https://snapshot.debian.org/archive/debian/20211022T144903Z/pool/main/c/ca-certificates
>>> -CA_CERTIFICATES_DEPENDENCIES = host-openssl host-python3 host-python-cryptography
>>> +CA_CERTIFICATES_DEPENDENCIES = host-openssl host-python3 host-python3-six host-python-cryptography
>>>  CA_CERTIFICATES_LICENSE = GPL-2.0+ (script), MPL-2.0 (data)
>>>  CA_CERTIFICATES_LICENSE_FILES = debian/copyright
>>>
>>> --
>>> 2.31.1
>>>
>>> _______________________________________________
>>> buildroot mailing list
>>> buildroot at buildroot.org
>>> https://lists.buildroot.org/mailman/listinfo/buildroot
>> _______________________________________________
>> buildroot mailing list
>> buildroot at buildroot.org
>> https://lists.buildroot.org/mailman/listinfo/buildroot
> 



More information about the buildroot mailing list