summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/vim
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2022-07-08 16:00:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-12 23:56:10 +0100
commit666a30a5beb0c201a34ed359cd06de427ecaebf1 (patch)
tree45faf719ca65066117a955968901343b36c93e24 /meta/recipes-support/vim
parent64fc7b21684223f3cbd02b3f730b2ec0c0a2abdf (diff)
downloadpoky-666a30a5beb0c201a34ed359cd06de427ecaebf1.tar.gz
vim: not adjust script pathnames for native scripts either
After the below commit introduced, the shebang size of native scripts is also checked, so rework the patch to fix the gap. 377fe11bc0 insane.bbclass: Make do_qa_staging check shebangs Fixes: ERROR: QA Issue: : /work/x86_64-linux/vim-native/9.0.0005-r0/sysroot-destdir/work/x86_64-linux/vim-native/9.0.0005-r0/recipe-sysroot-native/usr/share/vim/vim90/tools/mve.awk maximum shebang size exceeded, the maximum size is 128. [shebang-size] ERROR: QA Issue: : /work/x86_64-linux/vim-native/9.0.0005-r0/sysroot-destdir/work/x86_64-linux/vim-native/9.0.0005-r0/recipe-sysroot-native/usr/share/vim/vim90/tools/efm_perl.pl maximum shebang size exceeded, the maximum size is 128. [shebang-size] (From OE-Core rev: 79232458b9cdc741a2049d83839af73f58a5554c) Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/vim')
-rw-r--r--meta/recipes-support/vim/files/no-path-adjust.patch35
1 files changed, 21 insertions, 14 deletions
diff --git a/meta/recipes-support/vim/files/no-path-adjust.patch b/meta/recipes-support/vim/files/no-path-adjust.patch
index 9d6da80913..908459a95e 100644
--- a/meta/recipes-support/vim/files/no-path-adjust.patch
+++ b/meta/recipes-support/vim/files/no-path-adjust.patch
@@ -1,4 +1,7 @@
1vim: do not adjust script pathnames 1From 4125a1ccb82fd53d003acdc34e462f238f0c4f0d Mon Sep 17 00:00:00 2001
2From: Joe Slater <joe.slater@windriver.com>
3Date: Fri, 8 Jul 2022 11:03:22 +0800
4Subject: [PATCH] vim: do not adjust script pathnames
2 5
3When cross-compiling, we do not want to reference the host versions of 6When cross-compiling, we do not want to reference the host versions of
4things like perl and awk. 7things like perl and awk.
@@ -6,24 +9,28 @@ things like perl and awk.
6Upstream-Status: Pending 9Upstream-Status: Pending
7 10
8Signed-off-by: Joe Slater <joe.slater@windriver.com> 11Signed-off-by: Joe Slater <joe.slater@windriver.com>
12Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
13---
14 src/Makefile | 6 +-----
15 1 file changed, 1 insertion(+), 5 deletions(-)
9 16
10Index: git/src/Makefile 17diff --git a/src/Makefile b/src/Makefile
11=================================================================== 18index c9513a632..7a7cbdc43 100644
12--- git.orig/src/Makefile 19--- a/src/Makefile
13+++ git/src/Makefile 20+++ b/src/Makefile
14@@ -2565,11 +2565,14 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_ 21@@ -2534,11 +2534,7 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
15 rm -rf $$cvs; \ 22 rm -rf $$cvs; \
16 fi 23 fi
17 -chmod $(FILEMOD) $(DEST_TOOLS)/* 24 -chmod $(FILEMOD) $(DEST_TOOLS)/*
18-# replace the path in some tools 25-# replace the path in some tools
19+ 26- perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
20+# replace the path in some tools, but not when cross-compiling 27- awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
21+ifneq ($(CROSS_COMPILING),1) 28- awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
22 perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl 29- awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
23 awkpath=`./which.sh nawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \ 30+# not replace the path in some tools
24 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
25 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
26+endif
27 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*` 31 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
28 32
29 # install the language specific files for tools, if they were unpacked 33 # install the language specific files for tools, if they were unpacked
34--
352.25.1
36