Skip to contentSkip to conversation

soci: fix buildpaths warning

PATCH New Peter Marko 1 participant 1 message Mar 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soci: fix buildpaths warning

From: Peter Marko <[email protected]>

WARNING: soci-4.0.3-r0 do_package_qa: QA Issue: File /usr/lib/cmake/SOCI/SOCITargets-noconfig.cmake in package soci-dev contains reference to TMPDIR [buildpaths]

This is causing build failures in components depending on soci when building with rm_work or from sstate-cache.

---
 meta-oe/recipes-dbs/soci/soci_4.0.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-dbs/soci/soci_4.0.3.bb +4 -0
index 71ab80c48..25d67ff8b 100644
@@ -43,3 +43,7 @@ FILES:${PN}-mysql = "${libdir}/lib${BPN}_mysql.so.*"
 FILES:${PN}-postgresql = "${libdir}/lib${BPN}_postgresql.so.*"
 FILES:${PN}-odbc = "${libdir}/lib${BPN}_odbc.so.*"
 FILES:${PN}-oracle = "${libdir}/lib${BPN}_oracle.so.*"
+
+do_install:append() {
+    sed -i 's|${RECIPE_SYSROOT}${prefix}|${_IMPORT_PREFIX}|g' ${D}${libdir}/cmake/SOCI/SOCITargets*.cmake
+}
Signature · 1 line
2.30.2