[oe] [meta-oe][PATCH] protobuf: Fix ptest compilation

Khem Raj raj.khem at gmail.com
Sat May 18 19:41:53 UTC 2019


On Thu, May 16, 2019 at 2:04 AM Oleksiy Obitotskyi -X (oobitots -
GLOBALLOGIC INC at Cisco) via Openembedded-devel
<openembedded-devel at lists.openembedded.org> wrote:
>
> Tests require c++11 support, so add -std=c++11
> to compiler flags.
>
This does not apply cleanly on top of master, can you rebase and send again ?

> Upstream-Status: Pending
> Signed-off-by: Oleksiy Obitotskyy <oobitots at cisco.com>
> ---
> meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
> b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
> index cf72d9ca7..4791e13ca 100644
> --- a/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
> +++ b/meta-oe/recipes-devtools/protobuf/protobuf_3.6.1.bb
> @@ -40,8 +40,8 @@ do_compile_ptest() {
> # which haven't been installed yet.
> cp "${B}/protobuf.pc" "${B}/${TEST_SRC_DIR}/protobuf.pc"
> sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> - sed -e 's|Cflags:|Cflags: -I${S}/src|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> - sed -e 's|Libs:|Libs: -L${B}/src/.libs|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> + sed -e 's|Cflags:|Cflags: -std=c++11 -I${S}/src|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> + sed -e 's|Libs:|Libs: -std=c++11 -L${B}/src/.libs|' -i
> "${B}/${TEST_SRC_DIR}/protobuf.pc"
> export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"
> # Save the pkgcfg sysroot variable, and update it to nothing so
>
> --
> 2.19.1
>
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


More information about the Openembedded-devel mailing list