[OpenWrt-Devel] [RFC] ca-certificates python/host

Yousong Zhou yszhou4tech at gmail.com
Mon Dec 10 04:10:20 EST 2018


On Mon, 10 Dec 2018 at 04:35, Lucian Cristian <luci at powerneth.ro> 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
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list