aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/net-snmp
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2017-12-12 15:15:12 +0200
committerJoe MacDonald <joe_macdonald@mentor.com>2018-01-08 12:05:05 -0500
commit3b0b5aa94a363d8046c6edac5868174ddd69c2eb (patch)
tree6bad1cca18176121f5e8d7987326db18f482f4f7 /meta-networking/recipes-protocols/net-snmp
parent3da22ee40420fbea6c75ff07225470353fb0a5e8 (diff)
downloadmeta-openembedded-contrib-3b0b5aa94a363d8046c6edac5868174ddd69c2eb.tar.gz
net-snmp: fix invalid paths in target net-snmp-config
Remove build host paths form target net-snmp-config. Signed-off-by: Catalin Enache <catalin.enache@windriver.com> Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-protocols/net-snmp')
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
index 849ae0763c..3c05874690 100644
--- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb
@@ -118,6 +118,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