diff options
| -rw-r--r-- | meta-oe/recipes-devtools/grpc/grpc/0001-Revert-Changed-GRPCPP_ABSEIL_SYNC-to-GPR_ABSEIL_SYNC.patch | 60 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/grpc/grpc_1.41.0.bb | 1 |
2 files changed, 61 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/grpc/grpc/0001-Revert-Changed-GRPCPP_ABSEIL_SYNC-to-GPR_ABSEIL_SYNC.patch b/meta-oe/recipes-devtools/grpc/grpc/0001-Revert-Changed-GRPCPP_ABSEIL_SYNC-to-GPR_ABSEIL_SYNC.patch new file mode 100644 index 0000000000..2f1483f97c --- /dev/null +++ b/meta-oe/recipes-devtools/grpc/grpc/0001-Revert-Changed-GRPCPP_ABSEIL_SYNC-to-GPR_ABSEIL_SYNC.patch | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | From dc593958e556dd496b774f35c5992285510d6859 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 3 | Date: Tue, 19 Oct 2021 17:09:55 +0200 | ||
| 4 | Subject: [PATCH] Revert "Changed GRPCPP_ABSEIL_SYNC to GPR_ABSEIL_SYNC | ||
| 5 | (#25681)" | ||
| 6 | |||
| 7 | This reverts commit 931f91b745cd5b2864a0d1787815871d0bd844ae. | ||
| 8 | |||
| 9 | Fixes sysdig from meta-oe and other recipes (like com.webos.service.tts | ||
| 10 | libgoogleassistant from meta-webosose) failing with: | ||
| 11 | |||
| 12 | | FAILED: userspace/sysdig/sysdig | ||
| 13 | | : && /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-sec | ||
| 14 | urity --sysroot=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -f | ||
| 15 | debug-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot= -fdebug-prefix-map=/OE/bu | ||
| 16 | ild/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/OE/build | ||
| 17 | /oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot -Wall -ggdb -std=c++0x -O3 -fno-strict-aliasing -DNDEBUG -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security | ||
| 18 | --sysroot=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -fdebug-p | ||
| 19 | refix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot= -fdebug-prefix-map=/OE/build/oe- | ||
| 20 | core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/OE/build/oe-cor | ||
| 21 | e/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -fdebug-prefix-map=/OE/build/oe-cor | ||
| 22 | e/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot= -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2- | ||
| 23 | 64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -fdebug-prefix-map=/OE/build/ | ||
| 24 | oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0=/usr/src/debug/sysdig/0.27.1-r0 -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot= -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/work/ | ||
| 25 | core2-64-oe-linux/sysdig/0.27.1-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -rdynamic userspace/sysdig/CMakeFiles/sysdig.dir/fields_info.cpp.o userspace/sysdig/CMakeFiles/sysdig.dir/sysdig.cpp.o -o userspace/sysdig/sysdig userspace/libsinsp/libsinsp.a userspace/libscap/libscap.a | ||
| 26 | -lelf -lz -lcurl -ljsoncpp -ltbb -lcares -lgrpc++_unsecure -lgrpc_unsecure -lprotobuf -lcares -lgrpc++_unsecure -lgrpc_unsecure -lprotobuf -ljq -lb64 -lrt -lanl -lssl -lcrypto -lluajit-5.1 -ldl -lpthread && : | ||
| 27 | | /usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()' | ||
| 28 | | /usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()' | ||
| 29 | | /usr/include/grpcpp/impl/codegen/completion_queue.h:121: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()' | ||
| 30 | | /usr/include/grpcpp/impl/codegen/completion_queue.h:259: error: undefined reference to 'absl::lts_20210324::Mutex::~Mutex()' | ||
| 31 | | collect2: error: ld returned 1 exit status | ||
| 32 | |||
| 33 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
| 34 | |||
| 35 | --- | ||
| 36 | include/grpcpp/impl/codegen/sync.h | 4 ++-- | ||
| 37 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 38 | |||
| 39 | diff --git a/include/grpcpp/impl/codegen/sync.h b/include/grpcpp/impl/codegen/sync.h | ||
| 40 | index 4cb8133c7c..3d10d9a3a0 100644 | ||
| 41 | --- a/include/grpcpp/impl/codegen/sync.h | ||
| 42 | +++ b/include/grpcpp/impl/codegen/sync.h | ||
| 43 | @@ -47,7 +47,7 @@ | ||
| 44 | namespace grpc { | ||
| 45 | namespace internal { | ||
| 46 | |||
| 47 | -#ifdef GPR_ABSEIL_SYNC | ||
| 48 | +#ifdef GRPCPP_ABSEIL_SYNC | ||
| 49 | |||
| 50 | using Mutex = absl::Mutex; | ||
| 51 | using MutexLock = absl::MutexLock; | ||
| 52 | @@ -142,7 +142,7 @@ class CondVar { | ||
| 53 | gpr_cv cv_; | ||
| 54 | }; | ||
| 55 | |||
| 56 | -#endif // GPR_ABSEIL_SYNC | ||
| 57 | +#endif // GRPCPP_ABSEIL_SYNC | ||
| 58 | |||
| 59 | template <typename Predicate> | ||
| 60 | GRPC_DEPRECATED("incompatible with thread safety analysis") | ||
diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.41.0.bb b/meta-oe/recipes-devtools/grpc/grpc_1.41.0.bb index 3385e2ada6..f961c533e0 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.41.0.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.41.0.bb | |||
| @@ -24,6 +24,7 @@ SRCREV_grpc = "fc662b7964384b701af5bd3ce6994d2180080eb4" | |||
| 24 | BRANCH = "v1.41.x" | 24 | BRANCH = "v1.41.x" |
| 25 | SRC_URI = "git://github.com/grpc/grpc.git;protocol=https;name=grpc;branch=${BRANCH} \ | 25 | SRC_URI = "git://github.com/grpc/grpc.git;protocol=https;name=grpc;branch=${BRANCH} \ |
| 26 | file://0001-cmake-revert-db88fb0ee826e73323e06ac6166ac038ee71f6a.patch \ | 26 | file://0001-cmake-revert-db88fb0ee826e73323e06ac6166ac038ee71f6a.patch \ |
| 27 | file://0001-Revert-Changed-GRPCPP_ABSEIL_SYNC-to-GPR_ABSEIL_SYNC.patch \ | ||
| 27 | " | 28 | " |
| 28 | # Fixes build with older compilers 4.8 especially on ubuntu 14.04 | 29 | # Fixes build with older compilers 4.8 especially on ubuntu 14.04 |
| 29 | CXXFLAGS:append:class-native = " -Wl,--no-as-needed" | 30 | CXXFLAGS:append:class-native = " -Wl,--no-as-needed" |
