dev-python/protobuf-python: Fix google.protobuf.pyext._message.MessageMeta.

Closes: https://bugs.gentoo.org/651780
This commit is contained in:
Arfrever Frehtes Taifersar Arahesis
2018-04-25 19:57:54 +02:00
committed by Mike Gilbert
parent eaeebe487d
commit 9a5682c3a3
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
https://github.com/google/protobuf/pull/4365
--- /python/google/protobuf/pyext/message.cc
+++ /python/google/protobuf/pyext/message.cc
@@ -402,12 +402,6 @@
return result.release();
}
-static PyGetSetDef Getters[] = {
- {"_extensions_by_name", (getter)GetExtensionsByName, NULL},
- {"_extensions_by_number", (getter)GetExtensionsByNumber, NULL},
- {NULL}
-};
-
} // namespace message_meta
PyTypeObject CMessageClass_Type = {
@@ -440,7 +434,7 @@
0, // tp_iternext
0, // tp_methods
0, // tp_members
- message_meta::Getters, // tp_getset
+ 0, // tp_getset
0, // tp_base
0, // tp_dict
0, // tp_descr_get

View File

@@ -25,6 +25,11 @@ RDEPEND="${DEPEND}
S="${WORKDIR}/protobuf-${PV}/python"
python_prepare_all() {
eapply -p2 "${FILESDIR}/${P}-google.protobuf.pyext._message.MessageMeta.patch"
distutils-r1_python_prepare_all
}
python_configure_all() {
mydistutilsargs=(--cpp_implementation)
}