From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 19AD6138332 for ; Thu, 26 Apr 2018 15:14:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 595BEE0848; Thu, 26 Apr 2018 15:14:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 146F9E0828 for ; Thu, 26 Apr 2018 15:14:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2548335C8A for ; Thu, 26 Apr 2018 15:14:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 80067299 for ; Thu, 26 Apr 2018 15:14:12 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1524755535.9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/protobuf-python/, dev-python/protobuf-python/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/protobuf-python/files/protobuf-python-3.5.2-google.protobuf.pyext._message.MessageMeta.patch dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild dev-python/protobuf-python/protobuf-python-3.5.2.ebuild X-VCS-Directories: dev-python/protobuf-python/ dev-python/protobuf-python/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7 X-VCS-Branch: master Date: Thu, 26 Apr 2018 15:14:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b5b7c8a9-a3bf-46f0-919b-13741b5ec108 X-Archives-Hash: 3a39481aae93fa15a86c293405731621 commit: 9a5682c3a38b987fe3ff3116cf3e5aa26e9a56b7 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Wed Apr 25 17:57:54 2018 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Thu Apr 26 15:12:15 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a5682c3 dev-python/protobuf-python: Fix google.protobuf.pyext._message.MessageMeta. Closes: https://bugs.gentoo.org/651780 ...oogle.protobuf.pyext._message.MessageMeta.patch | 26 ++++++++++++++++++++++ ....5.2.ebuild => protobuf-python-3.5.2-r1.ebuild} | 5 +++++ 2 files changed, 31 insertions(+) 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 00000000000..d1e1d745ab7 --- /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 similarity index 89% rename from dev-python/protobuf-python/protobuf-python-3.5.2.ebuild rename to dev-python/protobuf-python/protobuf-python-3.5.2-r1.ebuild index aaf563b424f..db40a5b37f8 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) }