diff mbox series

[meta-oe] pcp: Fix contains reference to TMPDIR [buildpaths] warnings

Message ID 20240626092244.958663-1-alperyasinak1@gmail.com
State Accepted
Headers show
Series [meta-oe] pcp: Fix contains reference to TMPDIR [buildpaths] warnings | expand

Commit Message

alperak June 26, 2024, 9:22 a.m. UTC
WARNING: pcp-6.0.5-r0 do_package_qa: QA Issue: File /etc/pcp.conf in package pcp contains reference to TMPDIR [buildpaths]
WARNING: pcp-6.0.5-r0 do_package_qa: QA Issue: File /usr/include/pcp/builddefs in package pcp-dev contains reference to TMPDIR [buildpaths]

Signed-off-by: alperak <alperyasinak1@gmail.com>
---
 meta-oe/recipes-support/pcp/pcp_6.0.5.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/pcp/pcp_6.0.5.bb b/meta-oe/recipes-support/pcp/pcp_6.0.5.bb
index 10545b65e..f6f2a6575 100644
--- a/meta-oe/recipes-support/pcp/pcp_6.0.5.bb
+++ b/meta-oe/recipes-support/pcp/pcp_6.0.5.bb
@@ -93,6 +93,10 @@  do_install () {
 	sed -i "s#PCP_SORT_PROG=.*#PCP_SORT_PROG=sort#" ${D}/${sysconfdir}/pcp.conf
 	sed -i "s#PCP_ECHO_PROG=.*#PCP_ECHO_PROG=echo#" ${D}/${sysconfdir}/pcp.conf
 	sed -i "s#PCP_WHICH_PROG=.*#PCP_WHICH_PROG=which#" ${D}/${sysconfdir}/pcp.conf
+	sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}/${sysconfdir}/pcp.conf
+	sed -i -e 's#${RECIPE_SYSROOT}##g' \
+		-e 's#${RECIPE_SYSROOT_NATIVE}##g' \
+		-e 's#${TMPDIR}##g' ${D}${includedir}/pcp/builddefs
 }
 
 PACKAGES += " ${PN}-export-zabbix-agent ${PN}-testsuite \