From 46a06dba99f561c4413c4dca9bfad0ff53b26467 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 5 May 2019 03:54:51 +0200 Subject: [PATCH] dev-libs/protobuf-c: Fix building with >=dev-libs/protobuf-3.7. Fixes: https://bugs.gentoo.org/684028 Signed-off-by: Arfrever Frehtes Taifersar Arahesis Signed-off-by: Mike Gilbert --- .../files/protobuf-c-1.3.1-protobuf-3.7.patch | 13 +++++++++++++ dev-libs/protobuf-c/protobuf-c-1.3.1.ebuild | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 dev-libs/protobuf-c/files/protobuf-c-1.3.1-protobuf-3.7.patch diff --git a/dev-libs/protobuf-c/files/protobuf-c-1.3.1-protobuf-3.7.patch b/dev-libs/protobuf-c/files/protobuf-c-1.3.1-protobuf-3.7.patch new file mode 100644 index 000000000000..218dec00f872 --- /dev/null +++ b/dev-libs/protobuf-c/files/protobuf-c-1.3.1-protobuf-3.7.patch @@ -0,0 +1,13 @@ +https://github.com/protobuf-c/protobuf-c/commit/7456d1621223d425b8a3fd74e435a79c046169fb + +--- /t/generated-code2/cxx-generate-packed-data.cc ++++ /t/generated-code2/cxx-generate-packed-data.cc +@@ -998,7 +998,7 @@ + static void dump_test_unknown_fields (void) + { + EmptyMess mess; +- const google::protobuf::Message::Reflection *reflection = mess.GetReflection(); ++ const google::protobuf::Reflection *reflection = mess.GetReflection(); + google::protobuf::UnknownFieldSet *fs = reflection->MutableUnknownFields(&mess); + + #if GOOGLE_PROTOBUF_VERSION >= 2001000 diff --git a/dev-libs/protobuf-c/protobuf-c-1.3.1.ebuild b/dev-libs/protobuf-c/protobuf-c-1.3.1.ebuild index b5226f546288..8bc5d70da05f 100644 --- a/dev-libs/protobuf-c/protobuf-c-1.3.1.ebuild +++ b/dev-libs/protobuf-c/protobuf-c-1.3.1.ebuild @@ -24,6 +24,10 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}/${PN}-1.3.1-protobuf-3.7.patch" +) + src_prepare() { default if ! use test; then -- 2.26.2