xmlsec1: fix build with gnutls or openssl PACKAGECONFIG not enabled

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

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

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Martin Jansa 2025-07-08 12:51:54 +02:00 committed by Khem Raj
parent 6914e20d63
commit 8f6d4090e2
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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
}