diff mbox series

[meta-oe] libcppkafka: Remove RECIPE_SYSROOT from packageconfig .pc file

Message ID 20230528180433.1831671-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe] libcppkafka: Remove RECIPE_SYSROOT from packageconfig .pc file | expand

Commit Message

Khem Raj May 28, 2023, 6:04 p.m. UTC
Fixes
WARNING: libcppkafka-git-r0 do_package_qa: QA Issue: File /usr/share/pkgconfig/cppkafka.pc in package libcppkafka-dev contains reference to TMPDIR [buildpaths]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb b/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb
index 0cb33fcd50..fd57e4e283 100644
--- a/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb
+++ b/meta-oe/recipes-support/libcppkafka/libcppkafka_git.bb
@@ -21,4 +21,5 @@  S = "${WORKDIR}/git"
 
 do_install:append(){
     chrpath -d ${D}${libdir}/libcppkafka.so.0.3.1
+    sed -i -e 's|${STAGING_INCDIR}|\$\{includedir\}|g' ${D}${datadir}/pkgconfig/cppkafka.pc
 }