blob: 7f9e249de8a4c5b80ae3f52054909d8178288ea3 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001fix MakeMaker issues with using wrong SHELL/GREP
2
3A set of substitution is being processed to all target scripts with sed by
4replacing some key words with the detected values at configure time, this
5is exactly not compliant with cross compling, and will cause missing path
6errors at run time like:
7"/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory"
8
9Fixed by removing unneeded substitution and using real runtime paths
10instead.
11
12Signed-off-by: Ming Liu <ming.liu@windriver.com>
13
14Upstream-Status: Pending
15
16---
17 Makefile.am | 3 +--
18 1 file changed, 1 insertion(+), 2 deletions(-)
19
20diff --git a/Makefile.am b/Makefile.am
Patrick Williams58776372022-04-13 09:07:35 -050021index 4f51b61..80a5ddf 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040022--- a/Makefile.am
23+++ b/Makefile.am
Patrick Williams58776372022-04-13 09:07:35 -050024@@ -93,8 +93,7 @@ SUFFIXES = .in
Brad Bishop316dfdd2018-06-25 12:45:53 -040025 .in:
26 $(AM_V_GEN)rm -f $@-t $@ \
Patrick Williams58776372022-04-13 09:07:35 -050027 && sed \
Brad Bishop316dfdd2018-06-25 12:45:53 -040028- -e 's|/bin/sh|$(SHELL)|g' \
29- -e 's|[@]GREP@|$(GREP)|g' \
30+ -e 's|[@]GREP@|$(base_bindir)/grep|g' \
Patrick Williams58776372022-04-13 09:07:35 -050031 -e "s|'gzip'|$(GZIP_TRANSFORMED)|g" \
32 -e "s|'zdiff'|$(ZDIFF_TRANSFORMED)|g" \
33 -e "s|'zgrep'|$(ZGREP_TRANSFORMED)|g" \
34--
Brad Bishop316dfdd2018-06-25 12:45:53 -0400352.7.4
36