Skip to contentSkip to conversation

net-snmp: fix build with dash

PATCH New Martin Jansa 1 participant 1 message Feb 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net-snmp: fix build with dash

* fixes:

  | make[1]: Leaving directory 'net-snmp/5.9-r0/net-snmp-5.9/mibs'
  | sed: can't read net-snmp/5.9-r0/image/usr/lib/pkgconfig/{netsnmp-agent.pc,netsnmp.pc}: No such file or directory
  | WARNING: exit code 2 from a shell command.
---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.bb +1 -1
index ac78ed2d5f..6a4d5b1eff 100644
@@ -133,7 +133,7 @@ do_install_append() {
         -i ${D}${bindir}/net-snmp-config
 
     sed -e 's@${STAGING_DIR_HOST}@@g' \
-        -i ${D}${libdir}/pkgconfig/{netsnmp-agent.pc,netsnmp.pc}
+        -i ${D}${libdir}/pkgconfig/netsnmp*.pc
 
     if [ "${HAS_PERL}" = "1" ]; then
         sed -e "s@^NSC_INCLUDEDIR=.*@NSC_INCLUDEDIR=\$\{includedir\}@g" \
Signature · 1 line
2.27.0