8f9f48acd2
egrep/fgrep are wrapper scripts, calling the grep binary with the correct arguments. The shell wrappers use the value of SHELL at build time as the shebang value in these wrapper scripts, which in Buildroot points to /bin/bash. The target may not have bash available, causing runtime errors. As a fix, add a post-install hook to change this to /bin/sh. If the target does not have /bin/sh, simply remove the aliases. Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
15 lines
367 B
Plaintext
15 lines
367 B
Plaintext
config BR2_PACKAGE_GREP
|
|
bool "grep"
|
|
depends on BR2_USE_WCHAR
|
|
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
|
help
|
|
The GNU regular expression matcher.
|
|
|
|
egrep/fgrep aliases need /bin/sh to be available.
|
|
|
|
http://www.gnu.org/software/grep/grep.html
|
|
|
|
comment "grep needs a toolchain w/ wchar"
|
|
depends on !BR2_USE_WCHAR
|
|
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|