package/grep: fix busybox aliasing
PATCH 1/1 package/grep: fix busybox aliasing
When 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. Busybox installs *grep executables in /bin, grep package in /usr/bin.
Moreover, egrep/fgrep is using autotools SHELL variable to execve the grep executable with correct options, SHELL is defaulted to /bin/bash which is usually not available on target.
--- package/grep/grep.mk | 1 + 1 file changed, 1 insertion(+)
package/grep/grep.mk +1 -0
@@ -10,6 +10,7 @@ GREP_SOURCE = grep-$(GREP_VERSION).tar.xz GREP_LICENSE = GPL-3.0+ GREP_LICENSE_FILES = COPYING GREP_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) +GREP_CONF_OPTS = SHELL=/bin/sh --exec-prefix=/ # link with iconv if enabled ifeq ($(BR2_PACKAGE_LIBICONV),y)
Signature · 1 line
2.7.4
PATCH 1/1 package/grep: fix busybox aliasing
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Angelo" == Angelo Compagnucci <[email protected]> writes:
When 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. Busybox installs *grep executables in /bin, grep package in
/usr/bin.Moreover, egrep/fgrep is using autotools SHELL variable to execve the grep executable with correct options, SHELL is defaulted to
/bin/bashwhich is usually not available on target.
"Moreover" in a commit message is quite a strong hint that the commit is doing several things ;)
Can you split it up into two commits, one for the prefix issue and one for the SHELL issue?
I take it that you checked that the configure logic works with SHELL=/bin/sh when that ISN'T bash?
Quoted 24 lines
Signed-off-by Angelo Compagnucci <[email protected]>--- package/grep/grep.mk | 1 + 1 file changed, 1 insertion(+)package/grep/grep.mk +1
-0@@ -10,6 +10,7 @@ GREP_SOURCE = grep-$(GREP_VERSION).tar.xz GREP_LICENSE = GPL-3.0+ GREP_LICENSE_FILES = COPYING GREP_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) +GREP_CONF_OPTS = SHELL=/bin/sh --exec-prefix=/ # link with iconv if enabled ifeq ($(BR2_PACKAGE_LIBICONV),y)Signature · 6 lines
2.7.4 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard