Skip to contentSkip to conversation

pcp: Fix contains reference to TMPDIR [buildpaths] warnings

PATCH New alperak 1 participant 1 message Jun 26, 2024

lore
Share & tools
lore

alperak

author
#0 lore raw

PATCH 1/1 pcp: Fix contains reference to TMPDIR [buildpaths] warnings

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]

---
 meta-oe/recipes-support/pcp/pcp_6.0.5.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-support/pcp/pcp_6.0.5.bb +4 -0
index 10545b65e..f6f2a6575 100644
@@ -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 \
Signature · 1 line
2.25.1