Skip to contentSkip to conversation

net-snmp: fix some invalid paths

PATCH New Catalin Enache 1 participant 1 message Mar 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-snmp: fix some invalid paths

Because the package is not built in place @srcdir@ is an absolute path to the source directory instead of ".".

Because of this some target scripts like net-snmp-create-v3-user and net-snmp-config that are using thisvariable in their *.in files (NSC_SRCDIR=@srcdir@) contain invalid paths.

---
 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 06f3707..63e0fc7 100644
@@ -78,6 +78,10 @@ do_install_append() {
     install -d ${D}${systemd_unitdir}/system
     install -m 0644 ${WORKDIR}/snmpd.service ${D}${systemd_unitdir}/system
     install -m 0644 ${WORKDIR}/snmptrapd.service ${D}${systemd_unitdir}/system
+    sed    -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
+        -i ${D}${bindir}/net-snmp-create-v3-user
+    sed    -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g" \
+        -i ${D}${bindir}/net-snmp-config
 }
 
 do_install_ptest() {
Signature · 1 line
2.7.4