Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2021 23:29:52 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 5fbb95157840 - 2021Q2 - misc/veles: Fix runtime crash due to change in msgpack python module interface
Message-ID:  <202104062329.136NTqxY031856@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2021Q2 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5fbb95157840f744df004acd2e9a56b68422a632

commit 5fbb95157840f744df004acd2e9a56b68422a632
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-04-06 23:28:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-04-06 23:28:58 +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):



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104062329.136NTqxY031856>