summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-linking-error-with-ld-gold.patch69
-rw-r--r--meta-oe/recipes-devtools/protobuf/protobuf_4.23.4.bb (renamed from meta-oe/recipes-devtools/protobuf/protobuf_4.22.2.bb)16
2 files changed, 10 insertions, 75 deletions
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-linking-error-with-ld-gold.patch b/meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-linking-error-with-ld-gold.patch
deleted file mode 100644
index 2bc44c898b..0000000000
--- a/meta-oe/recipes-devtools/protobuf/protobuf/0001-Fix-linking-error-with-ld-gold.patch
+++ /dev/null
@@ -1,69 +0,0 @@
1From a91130bb95528743a3f7253f8fe945b7505047d5 Mon Sep 17 00:00:00 2001
2From: Kyungjik Min <dp.min@lge.com>
3Date: Mon, 28 Dec 2020 15:56:09 +0900
4Subject: [PATCH] Fix linking error with ld-gold
5
6:Release Notes:
7
8:Detailed Notes:
9https://github.com/protocolbuffers/protobuf/issues/6113
10There's a bug in the CMake build leading it to not use the version
11scripts, which hides the problem (because all symbols are now public)
12but doesn't solve it properly.
13
14:Testing Performed:
15
16:QA Notes:
17N/A
18
19:Issues Addressed:
20[PLAT-130467] Fix build error for libgoogleassistant with latest
21 protobuf-3.11.4
22
23---
24Upstream-Status: Pending
25
26 src/libprotobuf-lite.map | 2 ++
27 src/libprotobuf.map | 2 ++
28 src/libprotoc.map | 2 ++
29 3 files changed, 6 insertions(+)
30
31diff --git a/src/libprotobuf-lite.map b/src/libprotobuf-lite.map
32index 391554669..a1853ca6c 100644
33--- a/src/libprotobuf-lite.map
34+++ b/src/libprotobuf-lite.map
35@@ -3,6 +3,8 @@
36 extern "C++" {
37 *google*;
38 };
39+ scc_info_*;
40+ descriptor_table_*;
41
42 local:
43 *;
44diff --git a/src/libprotobuf.map b/src/libprotobuf.map
45index 391554669..a1853ca6c 100644
46--- a/src/libprotobuf.map
47+++ b/src/libprotobuf.map
48@@ -3,6 +3,8 @@
49 extern "C++" {
50 *google*;
51 };
52+ scc_info_*;
53+ descriptor_table_*;
54
55 local:
56 *;
57diff --git a/src/libprotoc.map b/src/libprotoc.map
58index 391554669..a1853ca6c 100644
59--- a/src/libprotoc.map
60+++ b/src/libprotoc.map
61@@ -3,6 +3,8 @@
62 extern "C++" {
63 *google*;
64 };
65+ scc_info_*;
66+ descriptor_table_*;
67
68 local:
69 *;
diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_4.22.2.bb b/meta-oe/recipes-devtools/protobuf/protobuf_4.23.4.bb
index b5c3d87c98..06d73d648f 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf_4.22.2.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf_4.23.4.bb
@@ -10,12 +10,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b"
10DEPENDS = "zlib abseil-cpp" 10DEPENDS = "zlib abseil-cpp"
11DEPENDS:append:class-target = " protobuf-native" 11DEPENDS:append:class-target = " protobuf-native"
12 12
13SRCREV = "81f89d509d6771dcccb619cbe26ac86cec472582" 13SRCREV = "2c5fa078d8e86e5f4bd34e6f4c9ea9e8d7d4d44a"
14 14
15SRC_URI = "gitsm://github.com/protocolbuffers/protobuf.git;branch=22.x;protocol=https \ 15SRC_URI = "gitsm://github.com/protocolbuffers/protobuf.git;branch=23.x;protocol=https \
16 file://run-ptest \ 16 file://run-ptest \
17 file://0001-examples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch \ 17 file://0001-examples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch \
18 file://0001-Fix-linking-error-with-ld-gold.patch \
19 " 18 "
20SRC_URI:append:mips:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch " 19SRC_URI:append:mips:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch "
21SRC_URI:append:mipsel:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch " 20SRC_URI:append:mipsel:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch "
@@ -51,13 +50,18 @@ do_compile_ptest() {
51 cp ${S}/${TEST_SRC_DIR}/*.proto "${B}/${TEST_SRC_DIR}/" 50 cp ${S}/${TEST_SRC_DIR}/*.proto "${B}/${TEST_SRC_DIR}/"
52 cp ${S}/${TEST_SRC_DIR}/*.py "${B}/${TEST_SRC_DIR}/" 51 cp ${S}/${TEST_SRC_DIR}/*.py "${B}/${TEST_SRC_DIR}/"
53 cp ${S}/${TEST_SRC_DIR}/Makefile "${B}/${TEST_SRC_DIR}/" 52 cp ${S}/${TEST_SRC_DIR}/Makefile "${B}/${TEST_SRC_DIR}/"
53 # Adapt protobuf.pc
54 sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" 54 sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
55 sed -e 's|Cflags:|Cflags: -I${S}/src|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" 55 sed -e 's|Cflags:|Cflags: -I${S}/src |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
56 sed -e 's|Cflags:|Cflags: -I${WORKDIR}/recipe-sysroot{includedir} |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" 56 sed -e 's|Cflags:|Cflags: -I${WORKDIR}/recipe-sysroot${includedir} |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
57 sed -e 's|Libs:|Libs: -L${B}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" 57 sed -e 's|Libs:|Libs: -L${B}|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
58 sed -e 's|Libs:|Libs: -L${WORKDIR}/recipe-sysroot/usr/lib|' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" 58 sed -e 's|Libs:|Libs: -L${WORKDIR}/recipe-sysroot/usr/lib |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
59 sed -e 's|Libs:|Libs: -labsl_log_internal_check_op |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" 59 sed -e 's|Libs:|Libs: -labsl_log_internal_check_op |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
60 sed -e 's|Libs:|Libs: -labsl_log_internal_message |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc" 60 sed -e 's|Libs:|Libs: -labsl_log_internal_message |' -i "${B}/${TEST_SRC_DIR}/protobuf.pc"
61 # Adapt uf8_range.pc
62 cp "${B}/third_party/utf8_range/utf8_range.pc" "${B}/${TEST_SRC_DIR}/utf8_range.pc"
63 sed -e 's|libdir=|libdir=${PKG_CONFIG_SYSROOT_DIR}|' -i "${B}/${TEST_SRC_DIR}/utf8_range.pc"
64 sed -e 's|Libs:|Libs= -L${B}/third_party/utf8_range |' -i "${B}/${TEST_SRC_DIR}/utf8_range.pc"
61 # Until out-of-tree build of examples is supported, we have to use this approach 65 # Until out-of-tree build of examples is supported, we have to use this approach
62 sed -e 's|../src/google/protobuf/.libs/timestamp.pb.o|${B}/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o|' -i "${B}/${TEST_SRC_DIR}/Makefile" 66 sed -e 's|../src/google/protobuf/.libs/timestamp.pb.o|${B}/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o|' -i "${B}/${TEST_SRC_DIR}/Makefile"
63 export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}" 67 export PKG_CONFIG_PATH="${B}/${TEST_SRC_DIR}"