[Buildroot] [git commit branch/2021.02.x] package/dhcp: add host-gawk optional dependency

Peter Korsgaard peter at korsgaard.com
Sun May 23 18:26:50 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=fc2dfa025083d29d9cdf5d19c4ed03d24d90b54e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.02.x

On hosts where gawk is not available, it is not possible to build the
package with server option (BR2_PACKAGE_DHCP_SERVER).
The build goes through without errors but the binaries are not created
and installed. The reason is that autotools cannot find gawk.

Fixes: Bug 13781

Reported-by: Kay Jeschonneck <kay.jeschonneck at airbus.com>
Signed-off-by: Heiko Thiery <heiko.thiery at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
(cherry picked from commit 085d20e5e684a83736897332a7ec9d3363ea3e51)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/dhcp/dhcp.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk
index 988c7792dc..8d7157f357 100644
--- a/package/dhcp/dhcp.mk
+++ b/package/dhcp/dhcp.mk
@@ -55,6 +55,7 @@ define DHCP_INSTALL_LIBS
 endef
 
 ifeq ($(BR2_PACKAGE_DHCP_SERVER),y)
+DHCP_DEPENDENCIES += host-gawk
 define DHCP_INSTALL_CTL_LIBS
 	$(MAKE) -C $(@D)/dhcpctl install-exec DESTDIR=$(TARGET_DIR)
 endef


More information about the buildroot mailing list