package/s390-tools: fix build with netsnmp
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 28 Nov 2020 09:51:08 +0000 (10:51 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 1 Dec 2020 21:42:58 +0000 (22:42 +0100)
commitb5b3870c98df5570fc690577d1fdbd4ccc1e44b3
tree6f7e972d5a0d50c090569072acec8c17885f589d
parent9ef54b7d0bc7163b54f35c0ce618beb40a6ed22f
package/s390-tools: fix build with netsnmp

Fix the following build failure:

/bin/sh: net-snmp-config: command not found
/home/buildroot/autobuild/run/instance-2/output-1/host/lib/gcc/s390x-buildroot-linux-gnu/9.3.0/../../../../s390x-buildroot-linux-gnu/bin/ld: osasnmpd.o: in function `main':
osasnmpd.c:(.text.startup+0xcc): undefined reference to `snmp_log_perror'

Moreover, replace perl-net-snmp dependency by netsnmp as osasnmpd is an
SNMP subagent for the net-snmp package:
https://github.com/ibm-s390-tools/s390-tools/blob/master/osasnmpd/osasnmpd.8

Fixes:
 - http://autobuild.buildroot.org/results/00796f2ebd5fb0e08ac7a05a9ee566f2bc4bd1c3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/s390-tools/0002-osasnmpd-Makefile-fix-cross-compilation.patch [new file with mode: 0644]
package/s390-tools/s390-tools.mk