diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2018-04-25 19:57:54 +0200 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-04-26 11:12:15 -0400 |
commit | 9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7 (patch) | |
tree | 352c3845a177c9aacae743d824f716a261d828a0 /dev-python/protobuf-python | |
parent | dev-libs/oniguruma: Version bump (6.8.2). (diff) | |
download | gentoo-9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7.tar.gz gentoo-9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7.tar.bz2 gentoo-9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7.zip |
dev-python/protobuf-python: Fix google.protobuf.pyext._message.MessageMeta.
Closes: https://bugs.gentoo.org/651780
Diffstat (limited to 'dev-python/protobuf-python')
-rw-r--r-- | dev-python/protobuf-python/files/protobuf-python-3.5.2-google.protobuf.pyext._message.MessageMeta.patch | 26 | ||||
-rw-r--r-- | dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild (renamed from dev-python/protobuf-python/protobuf-python-3.5.2.ebuild) | 5 |
2 files changed, 31 insertions, 0 deletions
diff --git a/dev-python/protobuf-python/files/protobuf-python-3.5.2-google.protobuf.pyext._message.MessageMeta.patch b/dev-python/protobuf-python/files/protobuf-python-3.5.2-google.protobuf.pyext._message.MessageMeta.patch new file mode 100644 index 000000000000..d1e1d745ab7c --- /dev/null +++ b/dev-python/protobuf-python/files/protobuf-python-3.5.2-google.protobuf.pyext._message.MessageMeta.patch @@ -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 diff --git a/dev-python/protobuf-python/protobuf-python-3.5.2.ebuild b/dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild index aaf563b424f3..db40a5b37f8b 100644 --- a/dev-python/protobuf-python/protobuf-python-3.5.2.ebuild +++ b/dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild @@ -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) } |