xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-support/vim/files/no-path-adjust.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunvim: do not adjust script pathnames
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunWhen cross-compiling, we do not want to reference the host versions of
4*4882a593Smuzhiyunthings like perl and awk.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunUpstream-Status: Pending
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSigned-off-by: Joe Slater <joe.slater@windriver.com>
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunIndex: git/src/Makefile
11*4882a593Smuzhiyun===================================================================
12*4882a593Smuzhiyun--- git.orig/src/Makefile
13*4882a593Smuzhiyun+++ git/src/Makefile
14*4882a593Smuzhiyun@@ -2565,11 +2565,14 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_
15*4882a593Smuzhiyun 		 rm -rf $$cvs; \
16*4882a593Smuzhiyun 	      fi
17*4882a593Smuzhiyun 	-chmod $(FILEMOD) $(DEST_TOOLS)/*
18*4882a593Smuzhiyun-# replace the path in some tools
19*4882a593Smuzhiyun+
20*4882a593Smuzhiyun+# replace the path in some tools, but not when cross-compiling
21*4882a593Smuzhiyun+ifneq ($(CROSS_COMPILING),1)
22*4882a593Smuzhiyun 	perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
23*4882a593Smuzhiyun 	awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
24*4882a593Smuzhiyun 		awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
25*4882a593Smuzhiyun 		awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
26*4882a593Smuzhiyun+endif
27*4882a593Smuzhiyun 	-chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun # install the language specific files for tools, if they were unpacked
30