From 9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Wed, 25 Apr 2018 19:57:54 +0200 Subject: dev-python/protobuf-python: Fix google.protobuf.pyext._message.MessageMeta. Closes: https://bugs.gentoo.org/651780 --- ...oogle.protobuf.pyext._message.MessageMeta.patch | 26 +++++++++++ .../protobuf-python-3.5.2-r1.ebuild | 50 ++++++++++++++++++++++ .../protobuf-python/protobuf-python-3.5.2.ebuild | 45 ------------------- 3 files changed, 76 insertions(+), 45 deletions(-) create mode 100644 dev-python/protobuf-python/files/protobuf-python-3.5.2-google.protobuf.pyext._message.MessageMeta.patch create mode 100644 dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild delete mode 100644 dev-python/protobuf-python/protobuf-python-3.5.2.ebuild (limited to 'dev-python') 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-r1.ebuild b/dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild new file mode 100644 index 000000000000..db40a5b37f8b --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" +PYTHON_COMPAT=(python2_7 python3_{4,5,6}) + +inherit distutils-r1 + +DESCRIPTION="Google's Protocol Buffers - Python bindings" +HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/google/protobuf" +SRC_URI="https://github.com/google/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0/15" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +DEPEND="${PYTHON_DEPS} + ~dev-libs/protobuf-${PV} + dev-python/namespace-google[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + !