[Buildroot] [git commit] package/grep: install to /bin to fix busybox aliasing

Peter Korsgaard peter at korsgaard.com
Tue Feb 4 14:23:22 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=10bc79c612dd945af236f23e11b4df79b3c76257
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

When the grep package is selected, it should be installed at the same exact
location where busybox installs it too, this way the grep/egrep/fgrep
executables will end up overwriting the busybox provided ones.

Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/grep/grep.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/grep/grep.mk b/package/grep/grep.mk
index 96685b0276..eefdfe6a74 100644
--- a/package/grep/grep.mk
+++ b/package/grep/grep.mk
@@ -10,6 +10,8 @@ GREP_SOURCE = grep-$(GREP_VERSION).tar.xz
 GREP_LICENSE = GPL-3.0+
 GREP_LICENSE_FILES = COPYING
 GREP_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
+# install into /bin like busybox grep
+GREP_CONF_OPTS = --exec-prefix=/
 
 # link with iconv if enabled
 ifeq ($(BR2_PACKAGE_LIBICONV),y)


More information about the buildroot mailing list