Skip to contentSkip to conversation

xmlsec1: fix build with gnutls or openssl PACKAGECONFIG not enabled

PATCH New [email protected] 1 participant 1 message Jul 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xmlsec1: fix build with gnutls or openssl PACKAGECONFIG not enabled

From: Martin Jansa <[email protected]>

the .pc files might not be installed based on the PACKAGECONFIG value

fixes:
https://git.openembedded.org/meta-openembedded/commit/?id=cce20b5124e28ee55adf03fe062084f38d065580

---
 meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/xmlsec1/xmlsec1_1.3.7.bb +1 -1
index 0f4ae205b1..3e97bde86c 100644
@@ -59,7 +59,7 @@ do_install:append() {
         ${libdir}/xmlsec1Conf.sh \
         ${libdir}/pkgconfig/xmlsec1-openssl.pc \
         ${libdir}/pkgconfig/xmlsec1-gnutls.pc; do
-        sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i
+        [ -f ${D}$i ] && sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i || true
     done
 }