Skip to contentSkip to conversation

civetweb: remove buildpaths from civetweb-targets.cmake

PATCH New Yi Zhao 1 participant 1 message Mar 19, 2024

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 civetweb: remove buildpaths from civetweb-targets.cmake

Fixes:
WARNING: civetweb-1.16-r0 do_package_qa: QA Issue: File /usr/lib/cmake/civetweb/civetweb-targets.cmake in package civetweb-dev contains reference to TMPDIR [buildpaths]

---
 .../recipes-connectivity/civetweb/civetweb_1.16.bb           | 5 +++++
 1 file changed, 5 insertions(+)
meta-networking/recipes-connectivity/civetweb/civetweb_1.16.bb +5 -0
index 0a654a10f..f5a699d5b 100644
@@ -40,4 +40,9 @@ PACKAGECONFIG[server] = "-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=ON -DCIVETWEB_INSTA
 PACKAGECONFIG[ssl] = "-DCIVETWEB_ENABLE_SSL=ON -DCIVETWEB_SSL_OPENSSL_API_1_1=OFF -DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF,-DCIVETWEB_ENABLE_SSL=OFF,openssl (=1.0.2%),"
 PACKAGECONFIG[websockets] = "-DCIVETWEB_ENABLE_WEBSOCKETS=ON,-DCIVETWEB_ENABLE_WEBSOCKETS=OFF,"
 
+do_install:append() {
+    sed -i -e 's|${RECIPE_SYSROOT_NATIVE}||g' \
+        -e 's|${RECIPE_SYSROOT}||g' ${D}${libdir}/cmake/civetweb/civetweb-targets.cmake
+}
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.25.1