Since 3048ebedec added a autoreconfig fixup to
procps-ng, the build fails on certain systems with errors like
configure.ac:72: error: possibly undefined macro: AM_GNU_GETTEXT_VERSION
or
configure:14998: error: possibly undefined macro: AM_ICONV_LINKFLAGS_BODY
Fix the issue by adding build time dependencies on the `gettext` and `libiconv`
stub libraries to ensure that `gettext.m4` and `iconv.m4` are installed into
the staging directory before `procps-ng` is getting reconfigured.
Fixes https://github.com/openwrt/packages/issues/2890#issuecomment-231115844
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
The current procps-ng Makefile calls the shipped autogen.sh script which
introduces incorrect implicit dependencies on host utilities, leading to
the following error observed on a minimal build system:
(cd .../procps-ng-3.3.11; echo "3.3.11" > ".../procps-ng-3.3.11/.tarball-version"; ./autogen.sh );
You must have autopoint installed to generate procps-ng build system.
The autopoint command is part of the GNU gettext package.
Makefile:96: recipe for target '.../procps-ng-3.3.11/.configured_yynyyyyy' failed
make[3]: *** [.../procps-ng-3.3.11/.configured_yynyyyyy] Error 1
Apply the following changes in order to fix compilation:
- Apply the generic autoreconf fixup to generate configure and Makefiles
- Use Build/Prepare to populate .tarball-version and revert Build/Configure
to its default implementation
- Disable to build of docs and tests as those require additional utilities
not guaranteed to be present
Fixes#2890.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This contains format string fixes among others. procps-ng was not properly
displaying cpu usage in top and ps.
Signed-off-by: Rob Mosher nyt-lede@countercultured.net