* [Buildroot] [PATCH v2] package/grep: fix busybox aliasing
@ 2020-02-04 13:14 Angelo Compagnucci
2020-02-04 14:22 ` Peter Korsgaard
2020-03-10 20:30 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Angelo Compagnucci @ 2020-02-04 13:14 UTC (permalink / raw)
To: buildroot
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.
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
Changelog:
* Patch splitting as suggested by Peter
I tested manually chenghing the package to:
GREP_CONF_OPTS = SHELL=/bin/dash --exec-prefix=/
And this works. If /bin/sh is a link to /bin/zsh for example, it will
not work cause the configure is not able to run on zsh.
I suppose that changing the default /bin/sh to something not sh
compatible woulb break many other things.
package/grep/grep.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/grep/grep.mk b/package/grep/grep.mk
index 96685b0..be3e53b 100644
--- a/package/grep/grep.mk
+++ b/package/grep/grep.mk
@@ -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 = --exec-prefix=/
# link with iconv if enabled
ifeq ($(BR2_PACKAGE_LIBICONV),y)
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] package/grep: fix busybox aliasing
2020-02-04 13:14 [Buildroot] [PATCH v2] package/grep: fix busybox aliasing Angelo Compagnucci
@ 2020-02-04 14:22 ` Peter Korsgaard
2020-03-10 20:30 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-02-04 14:22 UTC (permalink / raw)
To: buildroot
>>>>> "Angelo" == Angelo Compagnucci <angelo@amarulasolutions.com> 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.
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Reworded slightly and committed, thanks.
> ---
> Changelog:
> * Patch splitting as suggested by Peter
> I tested manually chenghing the package to:
> GREP_CONF_OPTS = SHELL=/bin/dash --exec-prefix=/
> And this works. If /bin/sh is a link to /bin/zsh for example, it will
> not work cause the configure is not able to run on zsh.
> I suppose that changing the default /bin/sh to something not sh
> compatible woulb break many other things.
But that should never happen. A bunch of stuff will break if /bin/sh
isn't working.
So what about the 2nd fix? I take it that fgrep/egrep are still
installed with a #!/bin/bash shebang?
Either we do the SHELL= workaround or simply patch fgrep / egrep as a
GREP_POST_TARGET_INSTALL_HOOK.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] package/grep: fix busybox aliasing
2020-02-04 13:14 [Buildroot] [PATCH v2] package/grep: fix busybox aliasing Angelo Compagnucci
2020-02-04 14:22 ` Peter Korsgaard
@ 2020-03-10 20:30 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2020-03-10 20:30 UTC (permalink / raw)
To: buildroot
>>>>> "Angelo" == Angelo Compagnucci <angelo@amarulasolutions.com> 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.
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Committed to 2019.02.x and 2019.11.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-10 20:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 13:14 [Buildroot] [PATCH v2] package/grep: fix busybox aliasing Angelo Compagnucci
2020-02-04 14:22 ` Peter Korsgaard
2020-03-10 20:30 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.