On 10.12.2018 11:10, Yousong Zhou wrote:
On Mon, 10 Dec 2018 at 04:35, Lucian Cristian <[email protected]> wrote:
I would like to propose a patch for ca-certificate to fix the following
error
Traceback (most recent call last):
File "certdata2pem.py", line 150, in <module>
encoded = base64.b64encode(obj['CKA_VALUE']).decode('utf-8')
File "/usr/lib64/python2.6/base64.py", line 53, in b64encode
encoded = binascii.b2a_base64(s)[:-1]
TypeError: b2a_base64() argument 1 must be string or read-only buffer,
not bytearray
and I tried something like this
ifeq ($(CONFIG_PACKAGE_python3),y)
PKG_BUILD_DEPENDS:=python3/host
else
PKG_BUILD_DEPENDS:=python/host
endif
but the test always fail, for this setting is there another approach ?
Probably because the shebang line of certdata2pem.py is hardcoded as
/usr/bin/python.
OpenWrt ca-certificates package does not have a dependency on this
python script, right? Even if it does, python2.6 is considered to be
deprecated upstream and not recommended by many downstream projects.
Regards,
yousong
but not this one PKG_BUILD_DEPENDS:=PACKAGE_python:python/host
PACKAGE_python3:python3/host
because this one assumes that you have selected one or the other and I
would like to reuse python3/host if it was already selected
Regards
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
the problem appears on a centos 6 machine and that's why I want to use
the self build python/host, or this fix is too troublesome to be included ?
Regards
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel