configure detects protoc based on some pkgconfig logic which confuses
cross compilation and ends up choosing /usr/bin/protoc causing build
failures when host system has version mismatched protoc installed, it
works ok as long as compatible protoc is installed

Fixes
./protobuf-c/protobuf-c.pb.h:17:2: error: This file was generated by an older 
version of protoc which is
 ^

Signed-off-by: Khem Raj <raj.k...@gmail.com>
---
 meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb 
b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb
index 3932805248..b3423ba84d 100644
--- a/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb
+++ b/meta-oe/recipes-devtools/protobuf/protobuf-c_1.4.0.bb
@@ -19,6 +19,8 @@ S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig
 
+export PROTOC = "${STAGING_BINDIR_NATIVE}/protoc"
+
 # After several fix attempts there is still a race between generating
 # t.test-full.pb.h and compiling cxx_generate_packed_data.c despite
 # BUILT_SOURCES and explicit dependencies.
-- 
2.33.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#93902): 
https://lists.openembedded.org/g/openembedded-devel/message/93902
Mute This Topic: https://lists.openembedded.org/mt/86951665/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to