package/netsnmp: fix script net-snmp-create-v3-user's usage of 'ps'.
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Wed, 31 Mar 2021 08:14:47 +0000 (10:14 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 31 Mar 2021 19:49:09 +0000 (21:49 +0200)
commit57d339f20bdb46f509fff37629b0e0725241b26d
treea3c8936d77bc5d2c753011367a7378c578a4b2d9
parentab6d38ab8fb9461db8a189fb3efa2c13dfa5dc2f
package/netsnmp: fix script net-snmp-create-v3-user's usage of 'ps'.

net-snmp-create-v3-user uses ps to check if snmpd is running.  To know
how to invoke 'ps', the build system use 'which ps' and does other
checks for the output format of 'ps', therefore inspecting 'ps' on the
build machine instead of the target.

If the build machine runs a OS like Debian, that uses a merged-usr and a
PATH of '/usr/bin:/bin', then 'which ps' returns /usr/bin/ps, which will
not work on the target if it does not also use a merged-usr.

Hardcode 'ps' to be /bin/ps to fix this issue and to improve build
reproducibility.

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/netsnmp/netsnmp.mk