Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | fix MakeMaker issues with using wrong SHELL/GREP |
| 2 | |
| 3 | A set of substitution is being processed to all target scripts with sed by |
| 4 | replacing some key words with the detected values at configure time, this |
| 5 | is exactly not compliant with cross compling, and will cause missing path |
| 6 | errors at run time like: |
| 7 | "/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory" |
| 8 | |
| 9 | Fixed by removing unneeded substitution and using real runtime paths |
| 10 | instead. |
| 11 | |
| 12 | Signed-off-by: Ming Liu <ming.liu@windriver.com> |
| 13 | |
| 14 | Upstream-Status: Pending |
| 15 | |
| 16 | Index: gzip-1.3.12/Makefile.am |
| 17 | =================================================================== |
| 18 | diff -urpN a/Makefile.am b/Makefile.am |
| 19 | --- a/Makefile.am 2013-11-30 10:06:09.402234871 +0800 |
| 20 | +++ b/Makefile.am 2013-11-30 10:13:42.952236025 +0800 |
| 21 | @@ -81,9 +81,8 @@ gzip.doc.gz: gzip.doc $(bin_PROGRAMS) |
| 22 | SUFFIXES = .in |
| 23 | .in: |
| 24 | $(AM_V_GEN)sed \ |
| 25 | - -e 's|/bin/sh|$(SHELL)|g' \ |
| 26 | -e 's|[@]bindir@|'\''$(bindir)'\''|g' \ |
| 27 | - -e 's|[@]GREP@|$(GREP)|g' \ |
| 28 | + -e 's|[@]GREP@|$(base_bindir)/grep|g' \ |
| 29 | -e 's|[@]VERSION@|$(VERSION)|g' \ |
| 30 | $(srcdir)/$@.in >$@-t \ |
| 31 | && chmod a+x $@-t \ |