summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/vim
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/vim')
-rw-r--r--meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch13
-rw-r--r--meta/recipes-support/vim/files/disable_acl_header_check.patch17
-rw-r--r--meta/recipes-support/vim/files/no-path-adjust.patch29
-rw-r--r--meta/recipes-support/vim/files/racefix.patch33
-rw-r--r--meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch13
-rw-r--r--meta/recipes-support/vim/vim-tiny_9.1.bb (renamed from meta/recipes-support/vim/vim-tiny_8.2.bb)0
-rw-r--r--meta/recipes-support/vim/vim.inc74
-rw-r--r--meta/recipes-support/vim/vim_9.1.bb (renamed from meta/recipes-support/vim/vim_8.2.bb)12
8 files changed, 86 insertions, 105 deletions
diff --git a/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch b/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch
index 63a7b78f12..2fc11dbdc2 100644
--- a/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch
+++ b/meta/recipes-support/vim/files/0001-src-Makefile-improve-reproducibility.patch
@@ -16,11 +16,11 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
16 src/Makefile | 14 ++++---------- 16 src/Makefile | 14 ++++----------
17 1 file changed, 4 insertions(+), 10 deletions(-) 17 1 file changed, 4 insertions(+), 10 deletions(-)
18 18
19diff --git a/src/Makefile b/src/Makefile 19Index: git/src/Makefile
20index f2fafa4dc..7148d4bd9 100644 20===================================================================
21--- a/src/Makefile 21--- git.orig/src/Makefile
22+++ b/src/Makefile 22+++ git/src/Makefile
23@@ -2845,16 +2845,10 @@ auto/pathdef.c: Makefile auto/config.mk 23@@ -3101,16 +3101,10 @@ auto/pathdef.c: Makefile auto/config.mk
24 -@echo '#include "vim.h"' >> $@ 24 -@echo '#include "vim.h"' >> $@
25 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@ 25 -@echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' | $(QUOTESED) >> $@
26 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@ 26 -@echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' | $(QUOTESED) >> $@
@@ -41,6 +41,3 @@ index f2fafa4dc..7148d4bd9 100644
41 -@sh $(srcdir)/pathdef.sh 41 -@sh $(srcdir)/pathdef.sh
42 42
43 GUI_GTK_RES_INPUTS = \ 43 GUI_GTK_RES_INPUTS = \
44--
452.17.1
46
diff --git a/meta/recipes-support/vim/files/disable_acl_header_check.patch b/meta/recipes-support/vim/files/disable_acl_header_check.patch
index 33089162b4..ee1ea0f390 100644
--- a/meta/recipes-support/vim/files/disable_acl_header_check.patch
+++ b/meta/recipes-support/vim/files/disable_acl_header_check.patch
@@ -5,7 +5,7 @@ Subject: [PATCH] disable acl header check
5 5
6Don't check 'sys/acl.h' if acl support disabled for vim/vim-tiny. 6Don't check 'sys/acl.h' if acl support disabled for vim/vim-tiny.
7 7
8Upstream-Status: pending 8Upstream-Status: Pending
9 9
10Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> 10Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
11Signed-off-by: Changqing Li <changqing.li@windriver.com> 11Signed-off-by: Changqing Li <changqing.li@windriver.com>
@@ -13,11 +13,11 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
13 src/configure.ac | 3 ++- 13 src/configure.ac | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-) 14 1 file changed, 2 insertions(+), 1 deletion(-)
15 15
16diff --git a/src/configure.ac b/src/configure.ac 16Index: git/src/configure.ac
17index 2d409b3ca06a..dbcaf6140263 100644 17===================================================================
18--- a/src/configure.ac 18--- git.orig/src/configure.ac
19+++ b/src/configure.ac 19+++ git/src/configure.ac
20@@ -3257,7 +3257,7 @@ AC_CHECK_HEADERS(stdint.h stdlib.h string.h \ 20@@ -3292,7 +3292,7 @@ AC_CHECK_HEADERS(stdint.h stdlib.h strin
21 sys/systeminfo.h locale.h sys/stream.h termios.h \ 21 sys/systeminfo.h locale.h sys/stream.h termios.h \
22 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 22 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
23 utime.h sys/param.h sys/ptms.h libintl.h libgen.h \ 23 utime.h sys/param.h sys/ptms.h libintl.h libgen.h \
@@ -26,7 +26,7 @@ index 2d409b3ca06a..dbcaf6140263 100644
26 sys/access.h sys/sysinfo.h wchar.h wctype.h) 26 sys/access.h sys/sysinfo.h wchar.h wctype.h)
27 27
28 dnl sys/ptem.h depends on sys/stream.h on Solaris 28 dnl sys/ptem.h depends on sys/stream.h on Solaris
29@@ -3886,6 +3886,7 @@ AC_ARG_ENABLE(acl, 29@@ -3974,6 +3974,7 @@ AC_ARG_ENABLE(acl,
30 , [enable_acl="yes"]) 30 , [enable_acl="yes"])
31 if test "$enable_acl" = "yes"; then 31 if test "$enable_acl" = "yes"; then
32 AC_MSG_RESULT(no) 32 AC_MSG_RESULT(no)
@@ -34,6 +34,3 @@ index 2d409b3ca06a..dbcaf6140263 100644
34 AC_CHECK_LIB(posix1e, acl_get_file, [LIBS="$LIBS -lposix1e"], 34 AC_CHECK_LIB(posix1e, acl_get_file, [LIBS="$LIBS -lposix1e"],
35 AC_CHECK_LIB(acl, acl_get_file, [LIBS="$LIBS -lacl" 35 AC_CHECK_LIB(acl, acl_get_file, [LIBS="$LIBS -lacl"
36 AC_CHECK_LIB(attr, fgetxattr, LIBS="$LIBS -lattr",,)],,),) 36 AC_CHECK_LIB(attr, fgetxattr, LIBS="$LIBS -lattr",,)],,),)
37--
382.7.4
39
diff --git a/meta/recipes-support/vim/files/no-path-adjust.patch b/meta/recipes-support/vim/files/no-path-adjust.patch
index 05c2d803f6..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,22 +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
17diff --git a/src/Makefile b/src/Makefile
18index c9513a632..7a7cbdc43 100644
10--- a/src/Makefile 19--- a/src/Makefile
11+++ b/src/Makefile 20+++ b/src/Makefile
12@@ -2507,11 +2507,14 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_ 21@@ -2534,11 +2534,7 @@ installtools: $(TOOLS) $(DESTDIR)$(exec_prefix) $(DEST_BIN) \
13 rm -rf $$cvs; \ 22 rm -rf $$cvs; \
14 fi 23 fi
15 -chmod $(FILEMOD) $(DEST_TOOLS)/* 24 -chmod $(FILEMOD) $(DEST_TOOLS)/*
16-# replace the path in some tools 25-# replace the path in some tools
17+ 26- perlpath=`./which.sh perl` && sed -e "s+/usr/bin/perl+$$perlpath+" $(TOOLSSOURCE)/efm_perl.pl >$(DEST_TOOLS)/efm_perl.pl
18+# 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 \
19+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 \
20 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
21 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
22 awkpath=`./which.sh gawk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; if test -z "$$awkpath"; then \
23 awkpath=`./which.sh awk` && sed -e "s+/usr/bin/nawk+$$awkpath+" $(TOOLSSOURCE)/mve.awk >$(DEST_TOOLS)/mve.awk; fi; fi
24+endif
25 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*` 31 -chmod $(SCRIPTMOD) `grep -l "^#!" $(DEST_TOOLS)/*`
26 32
27 # 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
diff --git a/meta/recipes-support/vim/files/racefix.patch b/meta/recipes-support/vim/files/racefix.patch
deleted file mode 100644
index 48dca44cad..0000000000
--- a/meta/recipes-support/vim/files/racefix.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1The creation of the LINGUAS file is duplicated for each desktop file
2which can lead the commands to race against each other. Rework
3the makefile to avoid this as the expense of leaving the file on disk.
4
5Upstream-Status: Pending
6RP 2021/2/15
7
8Index: git/src/po/Makefile
9===================================================================
10--- git.orig/src/po/Makefile
11+++ git/src/po/Makefile
12@@ -165,17 +165,16 @@ $(PACKAGE).pot: ../*.c ../if_perl.xs ../
13 po/gvim.desktop.in po/vim.desktop.in
14 mv -f ../$(PACKAGE).po $(PACKAGE).pot
15
16-vim.desktop: vim.desktop.in $(POFILES)
17+LINGUAS:
18 echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
19+
20+vim.desktop: vim.desktop.in $(POFILES) LINGUAS
21 $(MSGFMT) --desktop -d . --template vim.desktop.in -o tmp_vim.desktop
22- rm -f LINGUAS
23 if command -v desktop-file-validate; then desktop-file-validate tmp_vim.desktop; fi
24 mv tmp_vim.desktop vim.desktop
25
26-gvim.desktop: gvim.desktop.in $(POFILES)
27- echo $(LANGUAGES) | tr " " "\n" |sed -e '/\./d' | sort > LINGUAS
28+gvim.desktop: gvim.desktop.in $(POFILES) LINGUAS
29 $(MSGFMT) --desktop -d . --template gvim.desktop.in -o tmp_gvim.desktop
30- rm -f LINGUAS
31 if command -v desktop-file-validate; then desktop-file-validate tmp_gvim.desktop; fi
32 mv tmp_gvim.desktop gvim.desktop
33
diff --git a/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch b/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch
index 37914d4cd9..5284ba45b6 100644
--- a/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch
+++ b/meta/recipes-support/vim/files/vim-add-knob-whether-elf.h-are-checked.patch
@@ -14,11 +14,11 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
14 src/configure.ac | 7 +++++++ 14 src/configure.ac | 7 +++++++
15 1 file changed, 7 insertions(+) 15 1 file changed, 7 insertions(+)
16 16
17diff --git a/src/configure.ac b/src/configure.ac 17Index: git/src/configure.ac
18index 0ee86ad..64736f0 100644 18===================================================================
19--- a/src/configure.ac 19--- git.orig/src/configure.ac
20+++ b/src/configure.ac 20+++ git/src/configure.ac
21@@ -3192,11 +3192,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [int x __attribute__((unused));], 21@@ -3264,11 +3264,18 @@ AC_TRY_COMPILE([#include <stdio.h>], [in
22 AC_MSG_RESULT(no)) 22 AC_MSG_RESULT(no))
23 23
24 dnl Checks for header files. 24 dnl Checks for header files.
@@ -37,6 +37,3 @@ index 0ee86ad..64736f0 100644
37 37
38 AC_HEADER_DIRENT 38 AC_HEADER_DIRENT
39 39
40--
412.7.4
42
diff --git a/meta/recipes-support/vim/vim-tiny_8.2.bb b/meta/recipes-support/vim/vim-tiny_9.1.bb
index e4c26d23f6..e4c26d23f6 100644
--- a/meta/recipes-support/vim/vim-tiny_8.2.bb
+++ b/meta/recipes-support/vim/vim-tiny_9.1.bb
diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc
index d57f784da5..071deed338 100644
--- a/meta/recipes-support/vim/vim.inc
+++ b/meta/recipes-support/vim/vim.inc
@@ -1,29 +1,37 @@
1SUMMARY = "Vi IMproved - enhanced vi editor" 1SUMMARY = "Vi IMproved - enhanced vi editor"
2DESCRIPTION = "Vim is a greatly improved version of the good old UNIX editor Vi. Many new features have been added: multi-level undo, syntax highlighting, command line history, on-line help, spell checking, filename completion, block operations, script language, etc. There is also a Graphical User Interface (GUI) available."
2SECTION = "console/utils" 3SECTION = "console/utils"
3 4
5HOMEPAGE = "https://www.vim.org/"
6BUGTRACKER = "https://github.com/vim/vim/issues"
7
4DEPENDS = "ncurses gettext-native" 8DEPENDS = "ncurses gettext-native"
5# vimdiff doesn't like busybox diff 9# vimdiff doesn't like busybox diff
6RSUGGESTS_${PN} = "diffutils" 10RSUGGESTS:${PN} = "diffutils"
7LICENSE = "vim" 11
8LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=a19edd7ec70d573a005d9e509375a99a" 12LICENSE = "Vim"
13LIC_FILES_CHKSUM = "file://LICENSE;md5=d1a651ab770b45d41c0f8cb5a8ca930e"
9 14
10SRC_URI = "git://github.com/vim/vim.git \ 15SRC_URI = "git://github.com/vim/vim.git;branch=master;protocol=https \
11 file://disable_acl_header_check.patch \ 16 file://disable_acl_header_check.patch \
12 file://vim-add-knob-whether-elf.h-are-checked.patch \ 17 file://vim-add-knob-whether-elf.h-are-checked.patch \
13 file://0001-src-Makefile-improve-reproducibility.patch \ 18 file://0001-src-Makefile-improve-reproducibility.patch \
14 file://no-path-adjust.patch \ 19 file://no-path-adjust.patch \
15 file://racefix.patch \ 20 "
16" 21
17SRCREV = "98056533b96b6b5d8849641de93185dd7bcadc44" 22PV .= ".0114"
23SRCREV = "fcaed6a70faf73bff3e5405ada556d726024f866"
18 24
19# Do not consider .z in x.y.z, as that is updated with every commit 25# Do not consider .z in x.y.z, as that is updated with every commit
20UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0" 26UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+)\.0"
27# Ignore that the upstream version .z in x.y.z is always newer
28UPSTREAM_VERSION_UNKNOWN = "1"
21 29
22S = "${WORKDIR}/git" 30S = "${WORKDIR}/git"
23 31
24VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" 32VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}"
25 33
26inherit autotools-brokensep update-alternatives mime-xdg 34inherit autotools-brokensep update-alternatives mime-xdg pkgconfig
27 35
28CLEANBROKEN = "1" 36CLEANBROKEN = "1"
29 37
@@ -32,29 +40,24 @@ do_configure () {
32 cd src 40 cd src
33 rm -f auto/* 41 rm -f auto/*
34 touch auto/config.mk 42 touch auto/config.mk
43 # git timestamps aren't reliable, so touch the shipped .po files so they aren't regenerated
44 touch -c po/cs.cp1250.po po/ja.euc-jp.po po/ja.sjis.po po/ko.po po/pl.UTF-8.po po/pl.cp1250.po po/ru.cp1251.po po/sk.cp1250.po po/uk.cp1251.po po/zh_CN.po po/zh_CN.cp936.po po/zh_TW.po
45 # ru.cp1251.po uses CP1251 rather than cp1251, fix that
46 sed -i -e s/CP1251/cp1251/ po/ru.cp1251.po
35 aclocal 47 aclocal
36 autoconf 48 autoconf
37 cd .. 49 cd ..
38 oe_runconf 50 oe_runconf
39 touch src/auto/configure 51 touch src/auto/configure
40 touch src/auto/config.mk src/auto/config.h 52 touch src/auto/config.mk src/auto/config.h
53 # need a native tool, not a target one
54 ${BUILD_CC} src/po/sjiscorr.c -o src/po/sjiscorr
41} 55}
42 56
43do_compile() { 57PACKAGECONFIG ??= "\
44 # We do not support fully / correctly the following locales. Attempting
45 # to use these with msgfmt in order to update the ".desktop" files exposes
46 # this problem and leads to the compile failing.
47 for LOCALE in cs fr ko pl sk zh_CN zh_TW;do
48 echo -n > src/po/${LOCALE}.po
49 done
50 autotools_do_compile
51}
52
53#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny
54PACKAGECONFIG ??= ""
55PACKAGECONFIG += " \
56 ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ 58 ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
57 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ 59 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \
60 nls \
58" 61"
59 62
60PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" 63PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3"
@@ -63,6 +66,8 @@ PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
63PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,," 66PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,,"
64PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux," 67PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
65PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," 68PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
69PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,,"
70PACKAGECONFIG[sound] = "--enable-canberra,--disable-canberra,canberra,"
66 71
67EXTRA_OECONF = " \ 72EXTRA_OECONF = " \
68 --disable-gpm \ 73 --disable-gpm \
@@ -71,6 +76,7 @@ EXTRA_OECONF = " \
71 --disable-netbeans \ 76 --disable-netbeans \
72 --disable-desktop-database-update \ 77 --disable-desktop-database-update \
73 --with-tlib=ncurses \ 78 --with-tlib=ncurses \
79 --with-modified-by='${MAINTAINER}' \
74 ac_cv_small_wchar_t=no \ 80 ac_cv_small_wchar_t=no \
75 ac_cv_path_GLIB_COMPILE_RESOURCES=no \ 81 ac_cv_path_GLIB_COMPILE_RESOURCES=no \
76 vim_cv_getcwd_broken=no \ 82 vim_cv_getcwd_broken=no \
@@ -83,6 +89,10 @@ EXTRA_OECONF = " \
83 STRIP=/bin/true \ 89 STRIP=/bin/true \
84" 90"
85 91
92# Some host distros don't have it, disable consistently
93EXTRA_OECONF:append:class-native = " vim_cv_timer_create=no"
94EXTRA_OECONF:append:class-target = " vim_cv_timer_create=yes"
95
86do_install() { 96do_install() {
87 autotools_do_install 97 autotools_do_install
88 98
@@ -109,18 +119,18 @@ do_install() {
109PARALLEL_MAKEINST = "" 119PARALLEL_MAKEINST = ""
110 120
111PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" 121PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools"
112FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" 122FILES:${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax"
113FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" 123FILES:${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc"
114FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" 124FILES:${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor"
115FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" 125FILES:${PN}-vimrc = "${datadir}/${BPN}/vimrc"
116FILES_${PN}-data = "${datadir}/${BPN}" 126FILES:${PN}-data = "${datadir}/${BPN}"
117 127
118# We do not want to complain if perl or gawk are not on the target. 128# We do not want to complain if perl or gawk are not on the target.
119# 129#
120FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" 130FILES:${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools"
121INSANE_SKIP_${PN}-tools = "file-rdeps" 131INSANE_SKIP:${PN}-tools = "file-rdeps"
122 132
123FILES_${PN}-common = " \ 133FILES:${PN}-common = " \
124 ${datadir}/${BPN}/${VIMDIR}/*.vim \ 134 ${datadir}/${BPN}/${VIMDIR}/*.vim \
125 ${datadir}/${BPN}/${VIMDIR}/autoload \ 135 ${datadir}/${BPN}/${VIMDIR}/autoload \
126 ${datadir}/${BPN}/${VIMDIR}/colors \ 136 ${datadir}/${BPN}/${VIMDIR}/colors \
@@ -136,11 +146,7 @@ FILES_${PN}-common = " \
136 ${datadir}/icons \ 146 ${datadir}/icons \
137" 147"
138 148
139RDEPENDS_${BPN} = "ncurses-terminfo-base" 149ALTERNATIVE:${PN} = "vi vim"
140# Recommend that runtime data is installed along with vim
141RRECOMMENDS_${BPN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common"
142
143ALTERNATIVE_${PN} = "vi vim"
144ALTERNATIVE_PRIORITY = "100" 150ALTERNATIVE_PRIORITY = "100"
145ALTERNATIVE_TARGET = "${bindir}/${BPN}.${BPN}" 151ALTERNATIVE_TARGET = "${bindir}/${BPN}.${BPN}"
146ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi" 152ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi"
diff --git a/meta/recipes-support/vim/vim_8.2.bb b/meta/recipes-support/vim/vim_9.1.bb
index 7e4654e472..fee9f055e9 100644
--- a/meta/recipes-support/vim/vim_8.2.bb
+++ b/meta/recipes-support/vim/vim_9.1.bb
@@ -2,10 +2,18 @@ require vim.inc
2 2
3PROVIDES = "xxd" 3PROVIDES = "xxd"
4 4
5PACKAGECONFIG_class-native = "" 5RDEPENDS:${PN} = "ncurses-terminfo-base ${PN}-xxd"
6# Recommend that runtime data is installed along with vim
7RRECOMMENDS:${PN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common"
8
9PACKAGECONFIG:class-native = ""
6BBCLASSEXTEND = "native nativesdk" 10BBCLASSEXTEND = "native nativesdk"
7 11
8ALTERNATIVE_${PN}_append = " xxd" 12PACKAGES =+ "${PN}-xxd"
13FILES:${PN}-xxd = "${bindir}/xxd"
14RPROVIDES:${PN}-xxd = "xxd"
15
16ALTERNATIVE:${PN}-xxd = "xxd"
9ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" 17ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
10ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" 18ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
11 19