Skip to contentSkip to conversation

dlt-daemon: fix do_install failure

PATCH New Changqing Li 1 participant 1 message Mar 27

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dlt-daemon: fix do_install failure

Fix do_install failure:
sed: can't read ../dlt-daemon/3.0.0/image/usr/lib/pkgconfig/automotive-dlt.pc: No such file or directory

---
 meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/dlt-daemon/dlt-daemon_3.0.0.bb +3 -1
index 5e80acd67e..431e9f3067 100644
@@ -72,5 +72,7 @@ FILES:${PN}-doc += "${datadir}/dlt-filetransfer"
 
 do_install:append() {
     rm -f ${D}${bindir}/dlt-test-*
-    sed -i -e 's:${RECIPE_SYSROOT}::g' ${D}/usr/lib/pkgconfig/automotive-dlt.pc
+    if [ -f ${D}${libdir}/pkgconfig/automotive-dlt.pc ]; then
+        sed -i -e 's:${RECIPE_SYSROOT}::g' ${D}${libdir}/pkgconfig/automotive-dlt.pc
+    fi
 }
Signature · 1 line
2.34.1