[Buildroot] [PATCH 1/1] package/netsnmp: fix script net-snmp-create-v3-user's usage of 'ps'.
Peter Korsgaard
peter at korsgaard.com
Sun Apr 4 09:25:02 UTC 2021
>>>>> "Nicolas" == Nicolas Cavallari <nicolas.cavallari at green-communications.fr> writes:
> 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 at green-communications.fr>
Committed to 2020.02.x, 2020.11.x and 2021.02.x, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list