From 8adc55f62a2e10992814d0bb7f504ed8378357dc Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 6 Apr 2021 16:15:06 -0700 Subject: misc/veles: Fix runtime crash due to change in msgpack python module interface --- misc/veles/Makefile | 2 +- misc/veles/files/patch-python_veles_proto_msgpackwrap.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 misc/veles/files/patch-python_veles_proto_msgpackwrap.py (limited to 'misc') diff --git a/misc/veles/Makefile b/misc/veles/Makefile index 4e813cafe1bf..9848abcb0eb3 100644 --- a/misc/veles/Makefile +++ b/misc/veles/Makefile @@ -1,7 +1,7 @@ PORTNAME= veles DISTVERSION= 2018.05.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/ diff --git a/misc/veles/files/patch-python_veles_proto_msgpackwrap.py b/misc/veles/files/patch-python_veles_proto_msgpackwrap.py new file mode 100644 index 000000000000..df1b644b1f1d --- /dev/null +++ b/misc/veles/files/patch-python_veles_proto_msgpackwrap.py @@ -0,0 +1,14 @@ +- workaround for the incompatibility with newer python's msgpack package: +- TypeError: __init__() got an unexpected keyword argument 'encoding' + +--- python/veles/proto/msgpackwrap.py.orig 2021-04-01 00:13:20 UTC ++++ python/veles/proto/msgpackwrap.py +@@ -33,7 +33,7 @@ class MsgpackWrapper(pep487.NewObject): + self.packer = msgpack.Packer( + use_bin_type=True, default=MsgpackWrapper.pack_obj) + self.unpacker = msgpack.Unpacker( +- encoding='utf-8', ext_hook=MsgpackWrapper.load_obj, max_buffer_size=sys.maxsize) ++ ext_hook=MsgpackWrapper.load_obj, max_buffer_size=sys.maxsize) + + @classmethod + def pack_obj(cls, obj): -- cgit v1.2.3