summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiezhiko <Miezhiko@gmail.com>2021-11-09 13:13:10 +0400
committerArthur Zamarin <arthurzam@gentoo.org>2021-11-09 13:51:47 +0200
commit4772b88723f4162442835efabe7f886d58e10f39 (patch)
tree4377b5844b35aea06758e3edad41d653a1965549 /dev-python/protobuf-python/files
parentdev-libs/protobuf: add new version 3.19.1 (diff)
downloadgentoo-4772b88723f4162442835efabe7f886d58e10f39.tar.gz
gentoo-4772b88723f4162442835efabe7f886d58e10f39.tar.bz2
gentoo-4772b88723f4162442835efabe7f886d58e10f39.zip
dev-python/protobuf-python: add 3.19.1
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Contributed-by: Miezhiko <Miezhiko@gmail.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/protobuf-python/files')
-rw-r--r--dev-python/protobuf-python/files/protobuf-python-3.19.1-google.protobuf.pyext._message.PyUnknownFieldRef.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/protobuf-python/files/protobuf-python-3.19.1-google.protobuf.pyext._message.PyUnknownFieldRef.patch b/dev-python/protobuf-python/files/protobuf-python-3.19.1-google.protobuf.pyext._message.PyUnknownFieldRef.patch
new file mode 100644
index 000000000000..a03ad98b4550
--- /dev/null
+++ b/dev-python/protobuf-python/files/protobuf-python-3.19.1-google.protobuf.pyext._message.PyUnknownFieldRef.patch
@@ -0,0 +1,22 @@
+https://github.com/protocolbuffers/protobuf/issues/6205
+https://github.com/protocolbuffers/protobuf/pull/7016
+
+--- a/google/protobuf/pyext/unknown_fields.cc
++++ b/google/protobuf/pyext/unknown_fields.cc
+@@ -274,13 +274,13 @@
+ PyObject* data = NULL;
+ switch (field->type()) {
+ case UnknownField::TYPE_VARINT:
+- data = PyLong_FromLong(field->varint());
++ data = PyLong_FromUnsignedLongLong(field->varint());
+ break;
+ case UnknownField::TYPE_FIXED32:
+- data = PyLong_FromLong(field->fixed32());
++ data = PyLong_FromUnsignedLongLong(field->fixed32());
+ break;
+ case UnknownField::TYPE_FIXED64:
+- data = PyLong_FromLong(field->fixed64());
++ data = PyLong_FromUnsignedLongLong(field->fixed64());
+ break;
+ case UnknownField::TYPE_LENGTH_DELIMITED:
+ data = PyBytes_FromStringAndSize(field->length_delimited().data(),