On Fri, 2026-06-05 at 18:07 +0800, zhengruoqin via lists.openembedded.org wrote: > When vim-tiny was used in image, it lacks defaults.vim file which will cause > following error > root@qemux86-64:~# vi > E1187: Failed to source defaults.vim > Press ENTER or type command to continue > > So add a new patch to fix this issue. > > Signed-off-by: Zheng Ruoqin <[email protected]> > --- > ...e_defaults-when-Vim-is-invoked-as-vi.patch | 61 +++++++++++++++++++ > meta/recipes-support/vim/vim.inc | 3 + > 2 files changed, 64 insertions(+) > create mode 100644 > meta/recipes-support/vim/files/0001-skip-source_defaults-when-Vim-is-invoked-as-vi.patch > > diff --git > a/meta/recipes-support/vim/files/0001-skip-source_defaults-when-Vim-is-invoked-as-vi.patch > > b/meta/recipes-support/vim/files/0001-skip-source_defaults-when-Vim-is-invoked-as-vi.patch > new file mode 100644 > index 0000000000..7e7bfe0a6d > --- /dev/null > +++ > b/meta/recipes-support/vim/files/0001-skip-source_defaults-when-Vim-is-invoked-as-vi.patch > @@ -0,0 +1,61 @@ > +From 7dad45f751d4adbee480005a5546b32a97fdbfb2 Mon Sep 17 00:00:00 2001 > +From: Zheng Ruoqin <[email protected]> > +Date: Fri, 5 Jun 2026 09:34:18 +0000 > +Subject:[PATCH] Skip sourcing defaults.vim when Vim is invoked as > + vi > + > +This is used only in the vim-tiny package to skip "source_defaults" error > + E1187: Failed to source defaults.vim > +Press ENTER or type command to continue > + > +Upstream-Status: Inappropriate [oe specific] > + > +Signed-off-by: Zheng Ruoqin <[email protected]>
Why not directly import the Debian patch? You can find it at https://salsa.debian.org/vim-team/vim/-/blob/debian/sid/debian/patches/debian/Support-sourcing-a-vimrc.tiny-when-Vim-is-invoked-as-vi.patch?ref_type=heads Best regards, -- Paul Barker
signature.asc
Description: This is a digitally signed message part
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#238223): https://lists.openembedded.org/g/openembedded-core/message/238223 Mute This Topic: https://lists.openembedded.org/mt/119659939/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
