git: 8adc55f62a2e - main - misc/veles: Fix runtime crash due to change in msgpack python module interface

Yuri Victorovich yuri at FreeBSD.org
Tue Apr 6 23:16:14 UTC 2021


The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8adc55f62a2e10992814d0bb7f504ed8378357dc

commit 8adc55f62a2e10992814d0bb7f504ed8378357dc
Author:     Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-04-06 23:15:06 +0000
Commit:     Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-04-06 23:15:06 +0000

    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(-)

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):


More information about the dev-commits-ports-all mailing list