summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gzip/gzip-1.14/wrong-path-fix.patch
diff options
context:
space:
mode:
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.patch35
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 @@
1From eda9b1d08c517acbdc5b26c24c94a3985f29c749 Mon Sep 17 00:00:00 2001
2From: Ming Liu <ming.liu@windriver.com>
3Date: Fri, 21 Nov 2014 04:50:57 -0500
4Subject: [PATCH] fix MakeMaker issues with using wrong SHELL/GREP
5
6A set of substitution is being processed to all target scripts with sed by
7replacing some key words with the detected values at configure time, this
8is exactly not compliant with cross compling, and will cause missing path
9errors at run time like:
10"/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory"
11
12Fixed by removing unneeded substitution and using real runtime paths
13instead.
14
15Signed-off-by: Ming Liu <ming.liu@windriver.com>
16
17Upstream-Status: Pending
18---
19 Makefile.am | 3 +--
20 1 file changed, 1 insertion(+), 2 deletions(-)
21
22diff --git a/Makefile.am b/Makefile.am
23index 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" \