diff options
Diffstat (limited to 'meta/recipes-extended/gzip/gzip-1.14/wrong-path-fix.patch')
-rw-r--r-- | meta/recipes-extended/gzip/gzip-1.14/wrong-path-fix.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/gzip/gzip-1.14/wrong-path-fix.patch b/meta/recipes-extended/gzip/gzip-1.14/wrong-path-fix.patch new file mode 100644 index 0000000000..4d5e7a8e02 --- /dev/null +++ b/meta/recipes-extended/gzip/gzip-1.14/wrong-path-fix.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From eda9b1d08c517acbdc5b26c24c94a3985f29c749 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ming Liu <ming.liu@windriver.com> | ||
3 | Date: Fri, 21 Nov 2014 04:50:57 -0500 | ||
4 | Subject: [PATCH] fix MakeMaker issues with using wrong SHELL/GREP | ||
5 | |||
6 | A set of substitution is being processed to all target scripts with sed by | ||
7 | replacing some key words with the detected values at configure time, this | ||
8 | is exactly not compliant with cross compling, and will cause missing path | ||
9 | errors at run time like: | ||
10 | "/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory" | ||
11 | |||
12 | Fixed by removing unneeded substitution and using real runtime paths | ||
13 | instead. | ||
14 | |||
15 | Signed-off-by: Ming Liu <ming.liu@windriver.com> | ||
16 | |||
17 | Upstream-Status: Pending | ||
18 | --- | ||
19 | Makefile.am | 3 +-- | ||
20 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
21 | |||
22 | diff --git a/Makefile.am b/Makefile.am | ||
23 | index 23e0d3e..3455878 100644 | ||
24 | --- a/Makefile.am | ||
25 | +++ b/Makefile.am | ||
26 | @@ -95,8 +95,7 @@ SUFFIXES = .in | ||
27 | .in: | ||
28 | $(AM_V_GEN)rm -f $@-t $@ \ | ||
29 | && sed \ | ||
30 | - -e 's|/bin/sh|$(SHELL)|g' \ | ||
31 | - -e 's|[@]GREP@|$(GREP)|g' \ | ||
32 | + -e 's|[@]GREP@|$(base_bindir)/grep|g' \ | ||
33 | -e "s|'gzip'|$(GZIP_TRANSFORMED)|g" \ | ||
34 | -e "s|'zdiff'|$(ZDIFF_TRANSFORMED)|g" \ | ||
35 | -e "s|'zgrep'|$(ZGREP_TRANSFORMED)|g" \ | ||