[Buildroot] [git commit] package/gawk: create awk symlink for host-gawk

Yann E. MORIN yann.morin.1998 at free.fr
Thu Jun 24 21:35:51 UTC 2021

commit: https://git.buildroot.net/buildroot/commit/?id=150038166fafae5c596e1e8ca7572bf8b6793a6d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This is to make sure that host packages that depend on `host-gawk` and that use
`awk` end up using `gawk`, instead of the `awk` symlink installed on the host

On recent Debian-based distributions, `awk` is still symlinked to `mawk` [1].

[1] https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1841654

Signed-off-by: Hubert Lacote <hubert.lacote at youview.com>
Co-authored-by: Hubert Lacote <hubert.lacote at youview.com>
Co-authored-by: Vicente Olivert Riera <vincent.olivert.riera at youview.com>
[yann.morin.1998 at free.fr: move after the target symlink hook]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
 package/gawk/gawk.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/gawk/gawk.mk b/package/gawk/gawk.mk
index 16906f6f93..ae2bbe5422 100644
--- a/package/gawk/gawk.mk
+++ b/package/gawk/gawk.mk
@@ -39,5 +39,11 @@ endef
+	ln -sf gawk $(HOST_DIR)/usr/bin/awk
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))

More information about the buildroot mailing list