From: Martin Jansa <martin.jansa@gmail.com>
To: Pascal Bach <pascal.bach@siemens.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] protobuf: 1.3.1 -> 1.3.2
Date: Tue, 2 Jul 2019 16:46:28 +0200 [thread overview]
Message-ID: <20190702144628.GA1484@jama> (raw)
In-Reply-To: <20190702111032.999-1-pascal.bach@siemens.com>
[-- Attachment #1: Type: text/plain, Size: 4903 bytes --]
On Tue, Jul 02, 2019 at 01:10:32PM +0200, Pascal Bach wrote:
> The patch can be dropped as it is included in this release.
> Also drop the +git suffix as the version matches the version exactly.
The subject should be protobuf-c, not protobuf.
I'll retest if this fixes the issues I was seeing with
protobuf-c-native.
> Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
> ---
> .../protobuf-c/protobuf3-compatibility.patch | 55 ----------------------
> .../{protobuf-c_1.3.1.bb => protobuf-c_1.3.2.bb} | 4 +-
> 2 files changed, 1 insertion(+), 58 deletions(-)
> delete mode 100644 meta-oe/recipes-devtools/protobuf/protobuf-c/protobuf3-compatibility.patch
> rename meta-oe/recipes-devtools/protobuf/{protobuf-c_1.3.1.bb => protobuf-c_1.3.2.bb} (90%)
>
> 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 35914952d..000000000
> --- a/meta-oe/recipes-devtools/protobuf/protobuf-c/protobuf3-compatibility.patch
> +++ /dev/null
> @@ -1,55 +0,0 @@
> -From 7456d1621223d425b8a3fd74e435a79c046169fb Mon Sep 17 00:00:00 2001
> -From: Robert Edmonds <edmonds@users.noreply.github.com>
> -Date: Wed, 10 Apr 2019 20:47:48 -0400
> -Subject: [PATCH] t/generated-code2/cxx-generate-packed-data.cc: Fix build
> - failure on newer protobuf
> -
> - Upstream-Status: Backport [https://github.com/protobuf-c/protobuf-c/pull/369]
> -
> -google::protobuf::Message::Reflection has been removed in newer versions
> -of protobuf. The replacement is google::protobuf::Reflection.
> -
> -protobuf in commit 779f61c6a3ce02a119e28e802f229e61b69b9046 ("Integrate
> -recent changes from google3.", from August 2008) changed the following
> -in message.h:
> -
> - @@ -336,7 +337,8 @@ class LIBPROTOBUF_EXPORT Message {
> -
> - // Introspection ---------------------------------------------------
> -
> - - class Reflection; // Defined below.
> - + // Typedef for backwards-compatibility.
> - + typedef google::protobuf::Reflection Reflection;
> -
> -The "typedef for backwards-compatibility" apparently lasted ten years
> -until protobuf commit 6bbe197e9c1b6fc38cbdc45e3bf83fa7ced792a3
> -("Down-integrate from google3.", from August 2018) which finally removed
> -the typedef:
> -
> - @@ -327,8 +344,6 @@ class LIBPROTOBUF_EXPORT Message : public MessageLite {
> -
> - // Introspection ---------------------------------------------------
> -
> - - // Typedef for backwards-compatibility.
> - - typedef google::protobuf::Reflection Reflection;
> -
> -This commit updates the only use of this typedef (in the test suite) to
> -directly refer to the replacement, google::protobuf::Reflection. This
> -fixes the build failure in the test suite.
> ----
> - t/generated-code2/cxx-generate-packed-data.cc | 2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -diff --git a/t/generated-code2/cxx-generate-packed-data.cc b/t/generated-code2/cxx-generate-packed-data.cc
> -index 4fd3e25..0865d2e 100644
> ---- a/t/generated-code2/cxx-generate-packed-data.cc
> -+++ b/t/generated-code2/cxx-generate-packed-data.cc
> -@@ -998,7 +998,7 @@ static void dump_test_packed_repeated_enum (void)
> - 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/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.1.bb b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.2.bb
> similarity index 90%
> rename from meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.1.bb
> rename to meta-oe/recipes-devtools/protobuf/protobuf-c_1.3.2.bb
> index 1d1782306..6d1ffc3f4 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"
>
> DEPENDS = "protobuf-native protobuf"
>
> -PV .= "+git${SRCPV}"
> -SRCREV = "269771b4b45d3aba04e59569f53600003db8d9ff"
> +SRCREV = "1390409f4ee4e26d0635310995b516eb702c3f9e"
>
> SRC_URI = "git://github.com/protobuf-c/protobuf-c.git \
> - file://protobuf3-compatibility.patch \
> "
>
> S = "${WORKDIR}/git"
> --
> 2.11.0
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 201 bytes --]
prev parent reply other threads:[~2019-07-02 14:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-02 11:10 [meta-oe][PATCH] protobuf: 1.3.1 -> 1.3.2 Pascal Bach
2019-07-02 14:46 ` Martin Jansa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190702144628.GA1484@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=pascal.bach@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox