Skip to content

Commit

Permalink
misc/veles: Fix runtime crash due to change in msgpack python module …
Browse files Browse the repository at this point in the history
…interface
  • Loading branch information
yurivict committed Apr 6, 2021
1 parent 80ea9fe commit 8adc55f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 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/
Expand Down
14 changes: 14 additions & 0 deletions 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):

0 comments on commit 8adc55f

Please sign in to comment.