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

Lucian Cristian luci at powerneth.ro
Sun Dec 9 15:34:49 EST 2018


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 ?

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


More information about the openwrt-devel mailing list