In case "encryption-openssl" PACKAGECONFIG is enabled, do_package_qa fails:

ERROR: open62541-1.3.8-r0 do_package_qa: QA Issue: File 
/usr/lib/cmake/open62541/open62541Targets.cmake in package open62541-dev 
contains reference to TMPDIR [buildpaths]

Fix it by changing the value of RECIPE_SYSROOT to CMAKE_SYSROOT variable,
so the qa check passes, and other CMake projects should be still able to find 
the
CMake package provided by this recipe.

Signed-off-by: Gyorgy Sarvari <[email protected]>
---
 meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb 
b/meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb
index 19a50aee3..1be0fc4ec 100644
--- a/meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb
+++ b/meta-networking/recipes-protocols/opcua/open62541_1.3.8.bb
@@ -51,3 +51,6 @@ do_configure:prepend:toolchain-clang:riscv32() {
     sed -i -e 's/set(CMAKE_INTERPROCEDURAL_OPTIMIZATION 
ON)/set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)/' ${S}/CMakeLists.txt
 }
 
+do_install:append(){
+    sed -i 's|${RECIPE_SYSROOT}|\$\{CMAKE_SYSROOT\}|g' 
${D}${libdir}/cmake/open62541/open62541Targets.cmake
+}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#115211): 
https://lists.openembedded.org/g/openembedded-devel/message/115211
Mute This Topic: https://lists.openembedded.org/mt/110935851/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to