xmlsec1: avoid hardcoded ${RECIPE_SYSROOT} in xmlsec1-gnutls.pc

Fix do_package_qa error by removing ${RECIPE_SYSROOT} from the installed xmlsec1-gnutls.pc file.
This ensures the generated .pc file does not leak build-time paths, complying with QA checks.

Fixes QA error:
ERROR: xmlsec1-1.3.7-r0.wr2500 do_package_qa: QA Issue: File /usr/lib/pkgconfig/xmlsec1-gnutls.pc in package xmlsec1-dev contains reference to TMPDIR [buildpaths]

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Jiaying Song 2025-06-20 12:12:55 +08:00 committed by Armin Kuster
parent 372974d170
commit f919d11962

View File

@ -54,8 +54,11 @@ do_compile_ptest () {
}
do_install:append() {
for i in ${bindir}/xmlsec1-config ${libdir}/xmlsec1Conf.sh \
${libdir}/pkgconfig/xmlsec1-openssl.pc; do
for i in \
${bindir}/xmlsec1-config \
${libdir}/xmlsec1Conf.sh \
${libdir}/pkgconfig/xmlsec1-openssl.pc \
${libdir}/pkgconfig/xmlsec1-gnutls.pc; do
sed -i -e "s@${RECIPE_SYSROOT}@@g" ${D}$i
done
}