When vim-tiny was individually installed, link of vim will point to 
/usr/bin/vim.tiny
which causes "lack of defaults.vim" error

root@qemux86-64:~# ls -alh /bin/vim
lrwxrwxrwx 1 root root 17 Apr  5  2011 /bin/vim -> /usr/bin/vim.tiny

root@qemux86-64:~# vim
E1187: Failed to source defaults.vim
root@qemux86-64:~# ls -alh /bin/vim

In this situation, the link of vim should not be created, so fix it.

Signed-off-by: Zheng Ruoqin <[email protected]>
---
 meta/recipes-support/vim/vim-tiny_9.2.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/vim/vim-tiny_9.2.bb 
b/meta/recipes-support/vim/vim-tiny_9.2.bb
index 658f627d7d..1d66491433 100644
--- a/meta/recipes-support/vim/vim-tiny_9.2.bb
+++ b/meta/recipes-support/vim/vim-tiny_9.2.bb
@@ -10,5 +10,6 @@ do_install() {
     install -D -m 0755 ${S}/src/vim ${D}/${bindir}/vim.tiny
 }
 
+ALTERNATIVE:${PN} = "vi"
 ALTERNATIVE_PRIORITY = "90"
 ALTERNATIVE_TARGET = "${bindir}/vim.tiny"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#241111): 
https://lists.openembedded.org/g/openembedded-core/message/241111
Mute This Topic: https://lists.openembedded.org/mt/120309094/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to