summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@siemens.com>2019-07-02 13:10:32 +0200
committerKhem Raj <raj.khem@gmail.com>2019-07-10 09:24:32 -0700
commit40184e5e22916a0f47217a6f6b3abdd3d3ff30f4 (patch)
treeb5ef760eddb43e13e89067d5d8c1900098562b29
parentc2e1394830842cdc9e72a91bba1c4d9bc4fb7d13 (diff)
downloadmeta-openembedded-40184e5e22916a0f47217a6f6b3abdd3d3ff30f4.tar.gz
protobuf: 1.3.1 -> 1.3.2
The patch can be dropped as it is included in this release. Also drop the +git suffix as the version matches the version exactly. Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-devtools/protobuf/protobuf-c/protobuf3-compatibility.patch55
-rw-r--r--meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.2.bb (renamed from meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.1.bb)4
2 files changed, 1 insertions, 58 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf-c/protobuf3-compatibility.patch b/meta-oe/recipes-devtools/protobuf/protobuf-c/protobuf3-compatibility.patch
deleted file mode 100644
index 35914952db..0000000000
--- a/meta-oe/recipes-devtools/protobuf/protobuf-c/protobuf3-compatibility.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From 7456d1621223d425b8a3fd74e435a79c046169fb Mon Sep 17 00:00:00 2001
2From: Robert Edmonds <edmonds@users.noreply.github.com>
3Date: Wed, 10 Apr 2019 20:47:48 -0400
4Subject: [PATCH] t/generated-code2/cxx-generate-packed-data.cc: Fix build
5 failure on newer protobuf
6
7 Upstream-Status: Backport [https://github.com/protobuf-c/protobuf-c/pull/369]
8
9google::protobuf::Message::Reflection has been removed in newer versions
10of protobuf. The replacement is google::protobuf::Reflection.
11
12protobuf in commit 779f61c6a3ce02a119e28e802f229e61b69b9046 ("Integrate
13recent changes from google3.", from August 2008) changed the following
14in message.h:
15
16 @@ -336,7 +337,8 @@ class LIBPROTOBUF_EXPORT Message {
17
18 // Introspection ---------------------------------------------------
19
20 - class Reflection; // Defined below.
21 + // Typedef for backwards-compatibility.
22 + typedef google::protobuf::Reflection Reflection;
23
24The "typedef for backwards-compatibility" apparently lasted ten years
25until protobuf commit 6bbe197e9c1b6fc38cbdc45e3bf83fa7ced792a3
26("Down-integrate from google3.", from August 2018) which finally removed
27the typedef:
28
29 @@ -327,8 +344,6 @@ class LIBPROTOBUF_EXPORT Message : public MessageLite {
30
31 // Introspection ---------------------------------------------------
32
33 - // Typedef for backwards-compatibility.
34 - typedef google::protobuf::Reflection Reflection;
35
36This commit updates the only use of this typedef (in the test suite) to
37directly refer to the replacement, google::protobuf::Reflection. This
38fixes the build failure in the test suite.
39---
40 t/generated-code2/cxx-generate-packed-data.cc | 2 +-
41 1 file changed, 1 insertion(+), 1 deletion(-)
42
43diff --git a/t/generated-code2/cxx-generate-packed-data.cc b/t/generated-code2/cxx-generate-packed-data.cc
44index 4fd3e25..0865d2e 100644
45--- a/t/generated-code2/cxx-generate-packed-data.cc
46+++ b/t/generated-code2/cxx-generate-packed-data.cc
47@@ -998,7 +998,7 @@ static void dump_test_packed_repeated_enum (void)
48 static void dump_test_unknown_fields (void)
49 {
50 EmptyMess mess;
51- const google::protobuf::Message::Reflection *reflection = mess.GetReflection();
52+ const google::protobuf::Reflection *reflection = mess.GetReflection();
53 google::protobuf::UnknownFieldSet *fs = reflection->MutableUnknownFields(&mess);
54
55 #if GOOGLE_PROTOBUF_VERSION >= 2001000
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.2.bb
index 1d17823063..6d1ffc3f40 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.1.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.2.bb
@@ -12,11 +12,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cb901168715f4782a2b06c3ddaefa558"
12 12
13DEPENDS = "protobuf-native protobuf" 13DEPENDS = "protobuf-native protobuf"
14 14
15PV .= "+git${SRCPV}" 15SRCREV = "1390409f4ee4e26d0635310995b516eb702c3f9e"
16SRCREV = "269771b4b45d3aba04e59569f53600003db8d9ff"
17 16
18SRC_URI = "git://github.com/protobuf-c/protobuf-c.git \ 17SRC_URI = "git://github.com/protobuf-c/protobuf-c.git \
19 file://protobuf3-compatibility.patch \
20 " 18 "
21 19
22S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"