1*4882a593Smuzhiyunfix MakeMaker issues with using wrong SHELL/GREP 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunA set of substitution is being processed to all target scripts with sed by 4*4882a593Smuzhiyunreplacing some key words with the detected values at configure time, this 5*4882a593Smuzhiyunis exactly not compliant with cross compling, and will cause missing path 6*4882a593Smuzhiyunerrors at run time like: 7*4882a593Smuzhiyun"/usr/bin/zgrep: line 230: /usr/bin/grep: No such file or directory" 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunFixed by removing unneeded substitution and using real runtime paths 10*4882a593Smuzhiyuninstead. 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSigned-off-by: Ming Liu <ming.liu@windriver.com> 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunUpstream-Status: Pending 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun--- 17*4882a593Smuzhiyun Makefile.am | 3 +-- 18*4882a593Smuzhiyun 1 file changed, 1 insertion(+), 2 deletions(-) 19*4882a593Smuzhiyun 20*4882a593Smuzhiyundiff --git a/Makefile.am b/Makefile.am 21*4882a593Smuzhiyunindex 4f51b61..80a5ddf 100644 22*4882a593Smuzhiyun--- a/Makefile.am 23*4882a593Smuzhiyun+++ b/Makefile.am 24*4882a593Smuzhiyun@@ -93,8 +93,7 @@ SUFFIXES = .in 25*4882a593Smuzhiyun .in: 26*4882a593Smuzhiyun $(AM_V_GEN)rm -f $@-t $@ \ 27*4882a593Smuzhiyun && sed \ 28*4882a593Smuzhiyun- -e 's|/bin/sh|$(SHELL)|g' \ 29*4882a593Smuzhiyun- -e 's|[@]GREP@|$(GREP)|g' \ 30*4882a593Smuzhiyun+ -e 's|[@]GREP@|$(base_bindir)/grep|g' \ 31*4882a593Smuzhiyun -e "s|'gzip'|$(GZIP_TRANSFORMED)|g" \ 32*4882a593Smuzhiyun -e "s|'zdiff'|$(ZDIFF_TRANSFORMED)|g" \ 33*4882a593Smuzhiyun -e "s|'zgrep'|$(ZGREP_TRANSFORMED)|g" \ 34*4882a593Smuzhiyun-- 35*4882a593Smuzhiyun2.7.4 36*4882a593Smuzhiyun 37