Skip to contentSkip to conversation

net-snmp: fix invalid paths in target net-snmp-config

PATCH Superseded Ovidiu Panait 1 participant 1 message Dec 12, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-snmp: fix invalid paths in target net-snmp-config

Remove build host paths form target net-snmp-config.

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +4 -0
index af6fd1b..9401c7e 100644
@@ -116,6 +116,10 @@ do_install_append() {
     sed    -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
         -i ${D}${bindir}/net-snmp-create-v3-user
     sed    -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
+           -e "s@${STAGING_DIR_NATIVE}[=]*@@g" \
+           -e "s@${STAGING_DIR_HOST}[=]*@@g" \
+           -e "s@${WORKDIR}[=]*@@g" \
+           -e "s@${D}@@g" \
         -i ${D}${bindir}/net-snmp-config
 
     if [ "${HAS_PERL}" = "1" ]; then
Signature · 1 line
2.10.2