package/dhcp: add host-gawk to global dependencies and build environment
authorSergey Matyukevich <geomatsi@gmail.com>
Thu, 20 May 2021 21:52:24 +0000 (00:52 +0300)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 21 May 2021 07:52:33 +0000 (09:52 +0200)
commit9ec60e877e3cf9bb1a11f59ae18976f3f7087fed
treee3a714125b0814500d85cbc6064024be849ee271
parentcfb83cc5a1a7defda1a04b1b014e55bd72fb77fa
package/dhcp: add host-gawk to global dependencies and build environment

DHCP package may silently fail to install binaries to the target image.
The problem occurs when buildroot output/host and build server provide
different flavors of awk. For instance, mawk on build server and gawk
in buildroot output/host. In this case isc-dhcp configure script detects
gawk in output/host and generates Makefiles specifying gawk without
absolute path. During Buildroot installation phase, those Makefiles
are used to install dhcp binaries. They attempt to use gawk without
absolute path. However build host does not have gawk.

To resolve the issue add host-gawk to dependencies and specify absolute
path to host-gawk in dhcp configure script using DHCP_CONF_ENV.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/dhcp/dhcp.mk