From e8deb92b7bfa2f2219c3f23a3fa52e506ef5d233 Mon Sep 17 00:00:00 2001 From: zhengruoqin Date: Tue, 2 Mar 2021 15:47:27 +0800 Subject: Fix do_package error when enable multilib. ERROR: grpc-1.35.0-r0 do_package: QA Issue: grpc: Files/directories were installed but not shipped in any package: /usr/lib /usr/lib/pkgconfig /usr/lib/pkgconfig/grpc.pc /usr/lib/pkgconfig/grpc_unsecure.pc /usr/lib/pkgconfig/grpc++.pc /usr/lib/pkgconfig/gpr.pc /usr/lib/pkgconfig/grpc++_unsecure.pc Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. grpc: 7 installed and not shipped files. [installed-vs-shipped] ERROR: grpc-1.35.0-r0 do_package: Fatal QA errors found, failing task. Signed-off-by: Zheng Ruoqin Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/grpc/grpc_1.35.0.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-oe/recipes-devtools') diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.35.0.bb b/meta-oe/recipes-devtools/grpc/grpc_1.35.0.bb index 5097b2b1b8..363e2b4680 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.35.0.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.35.0.bb @@ -35,6 +35,11 @@ EXTRA_OECMAKE = " \ -DgRPC_INSTALL_CMAKEDIR=${baselib}/cmake/${BPN} \ " +do_configure_prepend() { + sed -i -e "s#lib/pkgconfig/#${baselib}/pkgconfig/#g" ${S}/CMakeLists.txt +} + + do_configure_prepend_mipsarch() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt } -- cgit 1.2.3-korg