Skip to contentSkip to conversation

xmlsec1: Allow native builds

PATCH New [email protected] 1 participant 1 message Jan 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xmlsec1: Allow native builds

From: José Bollo <[email protected]>

When used in native builds, the variable STAGING_DIR_HOST expands to the empty string. This leads 'sed' to an error because the pattern is empty. Using STAGING_DIR instead of STAGING_DIR_HOST allows to use xmlsec1 in native builds with the correct behaviour.

Change-Id I55f40ac2413863c489d4219e0080f7e4e274a6db
---
 recipes-security/xmlsec1/xmlsec1_1.2.24.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-security/xmlsec1/xmlsec1_1.2.24.bb +1 -1
index 9798ce2..a34539b 100644
@@ -45,7 +45,7 @@ do_compile_ptest () {
 }
 
 do_install_append() {
-    sed -i -e "s@${STAGING_DIR_HOST}@@g" ${D}${bindir}/xmlsec1-config
+    sed -i -e "s@${STAGING_DIR}@@g" ${D}${bindir}/xmlsec1-config
 }
 
 do_install_ptest () {
Signature · 1 line
2.14.3