What to do with vim in openembedded-core?
Hi all,
We have a vim recipe in openembedded-core to provide:
- An editor without the limitations of busybox vi.
- The xxd command, used as a runtime dependency of dosfstools-ptest.
However, vim is difficult to maintain in our stable releases. There is a regular stream of CVEs that need fixing due to the large UI and input surface of vim, and backporting fixes has proven difficult. This isn't just a Yocto Project issue, the Debian tracker [1] currently shows 14 unresolved CVEs in Trixie and 15 unresolved CVEs in Bookworm. And, it's very difficult to share work between distros, as vim tags every commit as a new release, every distro ends up on a different release and needs to re-validate any backported patches.
So, I propose we drop vim from openembedded-core on the master branch, post-wrynose.
We can use tinyxxd [2] to provide xxd, this is based on the vim codebase and frequently merges changes from upstream.
We can use GNU Nano as our default editor where something more capable than busybox vi is needed, this has a sensible release model. The much simpler input model and lack of scripting facility means that CVEs in nano are much fewer and further between.
If we do this, what should we do with vim? We could move it back to meta-oe, but that would simply be moving the maintenance burden. We could stop backporting CVE fixes to vim and recommend that an LTS mixin layer is used to provide newer versions of vim for stable branches. I'm open to ideas.
[1]: https://tracker.debian.org/pkg/vim
[2]: https://github.com/xyproto/tinyxxd
Best regards,
Signature · 1 line
Paul Barker
Quoted 5 lines · Paul Barker via lists.openembedded.org
If we do this, what should we do with vim? We could move it back to meta-oe, but that would simply be moving the maintenance burden. We could stop backporting CVE fixes to vim and recommend that an LTS mixin layer is used to provide newer versions of vim for stable branches. I'm open to ideas.
We can try to open a ticket upstream, with the goal of convincing the upstream to maintain stable branches with cve backports, or at least getting a statement on the subject out of them.
At the same time, I'd drop vim from both meta-oe and core, and if anyone wants it, they can set up meta-vim, and maintain it there as they see fit.
Alex
I understand the pain points you mention, as I have tried to help maintain vim in oe-core.
However, I have a LIFETIME of muscle memory using vim and for me personally forcing me to use nano is a non starter.
So then I would be constantly needing to pull it in from wherever else it gets moved.
I don't have any good suggestions for how to deal with the problem, however.
Quoted 53 lines · Paul Barker via lists.openembedded.org
Hi all,
We have a vim recipe in openembedded-core to provide:
- An editor without the limitations of busybox vi.
- Thexxdcommand, used as a runtime dependency of dosfstools-ptest.However, vim is difficult to maintain in our stable releases. There is a regular stream of CVEs that need fixing due to the large UI and input surface of vim, and backporting fixes has proven difficult. This isn't just a Yocto Project issue, the Debian tracker [1] currently shows 14 unresolved CVEs in Trixie and 15 unresolved CVEs in Bookworm. And, it's very difficult to share work between distros, as vim tags every commit as a new release, every distro ends up on a different release and needs to re-validate any backported patches.
So, I propose we drop vim from openembedded-core on the master branch, post-wrynose.
We can use tinyxxd [2] to provide xxd, this is based on the vim codebase and frequently merges changes from upstream.
We can use GNU Nano as our default editor where something more capable than busybox vi is needed, this has a sensible release model. The much simpler input model and lack of scripting facility means that CVEs in nano are much fewer and further between.
If we do this, what should we do with vim? We could move it back to meta-oe, but that would simply be moving the maintenance burden. We could stop backporting CVE fixes to vim and recommend that an LTS mixin layer is used to provide newer versions of vim for stable branches. I'm open to ideas.
[1]: https://tracker.debian.org/pkg/vim
[2]: https://github.com/xyproto/tinyxxdBest regards,
--
Paul Barker-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#2336):
https://lists.openembedded.org/g/openembedded-architecture/message/2336
Mute This Topic: https://lists.openembedded.org/mt/119214237/924729
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-architecture/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hello,
Know I'm just a drive by contributor, but I agree with Tim. Think having a separate layer for just one recipe is over kill.
Would it be fine to stop applying CVE patches to vim and keep the recipe in oe-core? I and i'm assuming most people solely use it for development purposes anyways. Then remove vim from production builds.
Given the package do CVE patches really matter?
Vincent
Quoted 69 lines · Tim Orling via lists.openembedded.org
I understand the pain points you mention, as I have tried to help maintain vim in oe-core.
However, I have a LIFETIME of muscle memory using vim and for me personally forcing me to use nano is a non starter.
So then I would be constantly needing to pull it in from wherever else it gets moved.I don't have any good suggestions for how to deal with the problem, however.
Quoted 32 lines · Paul Barker via lists.openembedded.org
Hi all,
We have a vim recipe in openembedded-core to provide:
- An editor without the limitations of busybox vi.
- Thexxdcommand, used as a runtime dependency of dosfstools-ptest.However, vim is difficult to maintain in our stable releases. There is a regular stream of CVEs that need fixing due to the large UI and input surface of vim, and backporting fixes has proven difficult. This isn't just a Yocto Project issue, the Debian tracker [1] currently shows 14 unresolved CVEs in Trixie and 15 unresolved CVEs in Bookworm. And, it's very difficult to share work between distros, as vim tags every commit as a new release, every distro ends up on a different release and needs to re-validate any backported patches.
So, I propose we drop vim from openembedded-core on the master branch, post-wrynose.
We can use tinyxxd [2] to provide xxd, this is based on the vim codebase and frequently merges changes from upstream.
We can use GNU Nano as our default editor where something more capable than busybox vi is needed, this has a sensible release model. The much simpler input model and lack of scripting facility means that CVEs in nano are much fewer and further between.
If we do this, what should we do with vim? We could move it back to meta-oe, but that would simply be moving the maintenance burden. We could stop backporting CVE fixes to vim and recommend that an LTS mixin layer is used to provide newer versions of vim for stable branches. I'm open to ideas.
Quoted 12 lines
[1]: https://tracker.debian.org/pkg/vim
[2]: https://github.com/xyproto/tinyxxdBest regards,
--
Paul Barker-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#236726):
https://lists.openembedded.org/g/openembedded-core/message/236726
Mute This Topic: https://lists.openembedded.org/mt/119215860/7072109
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 1 line · Vincent Davis Jr via lists.openembedded.org
Would it be fine to stop applying CVE patches to vim and keep the recipe in oe-core? I and i'm assuming most people solely use it for development purposes anyways. Then remove vim from production builds.
I'm afraid it would not be fine, and this is why we're even considering these drastic changes. If vim CVEs are not patched, it would quickly start dominating CVE reports, dwarfing everything else, including significant single issues in other components, and it would make the yocto project look bad, regardless of explanations offered.
I agree otherwise: this constant never-ending stream of CVEs feels like vim is misusing CVEs for minor issues that other projects fix quietly and without CVE fuss. It also feels like people want them fixed to make CVE reports better, not to improve actual security. Whenever I raise this and try to press the matter, they go silent, as if the subject makes them uncomfortable.
Alex
Maybe package an alternative to vim that provides vim and is more friendly wrt version-releasing ?
I have heard good things of nvim, though I don't use it myself...
Regards
Jeremy
Quoted 4 lines · Jérémy Rosen
Maybe package an alternative to vim that provides vim and is more friendly wrt version-releasing ?
I have heard good things of nvim, though I don't use it myself...
I use neovim as my main editor, I've also briefly looked at writing a recipe for it. Unfortunately it has a bunch more dependencies, some of which were non-trivial to write a good recipe for. So I don't think neovim is a good option for an editor in OE-core right now.
Best regards,
Signature · 1 line
Paul Barker
Quoted 7 lines · Tim Orling
I understand the pain points you mention, as I have tried to help maintain vim in oe-core.
However, I have a LIFETIME of muscle memory using vim and for me personally forcing me to use nano is a non starter.
So then I would be constantly needing to pull it in from wherever else it gets moved.
My general feeling on editors is "Give me vim or give me death!".
But it is really a pain, especially on stable branches. Perhaps we need a separate layer for perpetually unstable recipes, which will accept version bumps instead of CVE backports on stable branches.
Best regards,
Signature · 1 line
Paul Barker
Quoted 1 line · Paul Barker via lists.openembedded.org
My general feeling on editors is "Give me vim or give me death!".
As a lifetime user of nano/pico, I say 'Give me CUA'. Which neither nano nor vim (without plugins) fulfil, but neverthless, this is the one key binding scheme that everyone knows, uses, and can (at least in theory :) agree on. Arrows for cursor movement, shift-arrows for selection, ctrl-c/x/v to copy/cut/paste.
What CUA editor is suitable for core? I don't know :)
Alex
Quoted 26 lines · Paul Barker
Hi all,
We have a vim recipe in openembedded-core to provide:
- An editor without the limitations of busybox vi.
- Thexxdcommand, used as a runtime dependency of dosfstools-ptest.However, vim is difficult to maintain in our stable releases. There is a regular stream of CVEs that need fixing due to the large UI and input surface of vim, and backporting fixes has proven difficult. This isn't just a Yocto Project issue, the Debian tracker [1] currently shows 14 unresolved CVEs in Trixie and 15 unresolved CVEs in Bookworm. And, it's very difficult to share work between distros, as vim tags every commit as a new release, every distro ends up on a different release and needs to re-validate any backported patches.
So, I propose we drop vim from openembedded-core on the master branch, post-wrynose.
We can use tinyxxd [2] to provide xxd, this is based on the vim codebase and frequently merges changes from upstream.
We can use GNU Nano as our default editor where something more capable than busybox vi is needed, this has a sensible release model. The much simpler input model and lack of scripting facility means that CVEs in nano are much fewer and further between.
Quoted 8 lines
If we do this, what should we do with vim? We could move it back to meta-oe, but that would simply be moving the maintenance burden. We could stop backporting CVE fixes to vim and recommend that an LTS mixin layer is used to provide newer versions of vim for stable branches. I'm open to ideas.
[1]: https://tracker.debian.org/pkg/vim
[2]: https://github.com/xyproto/tinyxxd
Not an objection, but a note. The motivation behind bringing vim in was for "exclude busybox, have identical functionality". Changing that to "almost identical functionality" and pulling in nano is probably fine. Probably just means adding another virtual which busybox provides with "vi" and nano can also provide.
Signature · 1 line
Tom
Why not always updating to the latest version also in stable releases? It is usually used in debug images and it is mostly used interactively by a user. This will reduce the effort on backporting CVEs and we let the AUH update it.
Is there any other component that depends on it to keep backward compatibility?
Daniel
Quoted 90 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Tom Rini via lists.openembedded.org
Sent: Friday, 8 May 2026 21:19
To: Paul Barker <[email protected]>
Cc: [email protected]; openembedded- [email protected]
Subject: Re: [Openembedded-architecture] What to do with vim in openembedded-core?Quoted 26 lines · Paul Barker
Hi all,
We have a vim recipe in openembedded-core to provide:
- An editor without the limitations of busybox vi.
- Thexxdcommand, used as a runtime dependency of dosfstools-ptest.However, vim is difficult to maintain in our stable releases. There is a regular stream of CVEs that need fixing due to the large UI and input surface of vim, and backporting fixes has proven difficult. This isn't just a Yocto Project issue, the Debian tracker [1] currently shows 14 unresolved CVEs in Trixie and 15 unresolved CVEs in Bookworm. And, it's very difficult to share work between distros, as vim tags every commit as a new release, every distro ends up on a different release and needs to re-validate any backported patches.
So, I propose we drop vim from openembedded-core on the master branch, post-wrynose.
We can use tinyxxd [2] to provide xxd, this is based on the vim codebase and frequently merges changes from upstream.
We can use GNU Nano as our default editor where something more capable than busybox vi is needed, this has a sensible release model. The much simpler input model and lack of scripting facility means that CVEs in nano are much fewer and further between.
Quoted 9 lines
If we do this, what should we do with vim? We could move it back to meta-oe, but that would simply be moving the maintenance burden. We could stop backporting CVE fixes to vim and recommend that an LTS mixin layer is used to provide newer versions of vim for stable branches. I'm open to ideas.
[1]:
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftracker.debian.org%2Fpkg%2Fvim&data=05%7C02%7Cdaniel.turull%40ericsson.c om
Quoted 1 line
%7C1653ce92c13f4675f7cb08dead36aa5b%7C92e84cebfbfd47abbe52080c6b 87953f
Quoted 1 line
%7C0%7C0%7C639138647461125793%7CUnknown%7CTWFpbGZsb3d8eyJFb XB0eU1hcGki
Quoted 1 line
OnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoy fQ
Quoted 1 line
%3D%3D%7C0%7C%7C%7C&sdata=ivfBqDK0zeNVe8j%2By3%2FZqDxzC0%2BF 6y1UakQImB
Quoted 4 lines
marrA%3D&reserved=0
[2]:
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fxyproto%2Ftinyxxd&data=05%7C02%7Cdaniel.turull%40ericsson.c om
Quoted 1 line
%7C1653ce92c13f4675f7cb08dead36aa5b%7C92e84cebfbfd47abbe52080c6b 87953f
Quoted 1 line
%7C0%7C0%7C639138647461144379%7CUnknown%7CTWFpbGZsb3d8eyJFb XB0eU1hcGki
Quoted 1 line
OnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoy fQ
Quoted 1 line
%3D%3D%7C0%7C%7C%7C&sdata=aCR%2BfMIOOrKXnP0F%2Fp1qXrjyKw%2B NQGUn96G6%2
Quoted 1 line
FnAYrOg%3D&reserved=0
Not an objection, but a note. The motivation behind bringing vim in was for "exclude busybox, have identical functionality". Changing that to "almost identical functionality" and pulling in nano is probably fine. Probably just means adding another virtual which busybox provides with "vi" and nano can also provide.
--
Tom
Quoted 4 lines · Daniel Turull via lists.openembedded.org
Why not always updating to the latest version also in stable releases? It is usually used in debug images and it is mostly used interactively by a user. This will reduce the effort on backporting CVEs and we let the AUH update it.
Is there any other component that depends on it to keep backward compatibility?
It wouldn't be updated to latest version, it would be updated to a latest commit in the middle of a development cycle. Vim upstream tags every commit they make. It might be okay for master (although even in master such random commits in general aren't acceptable), but it's not okay for LTS.
Alex
Hello,
Quoted 32 lines · Paul Barker
Hi all,
We have a vim recipe in openembedded-core to provide:
- An editor without the limitations of busybox vi.
- Thexxdcommand, used as a runtime dependency of dosfstools-ptest.However, vim is difficult to maintain in our stable releases. There is a regular stream of CVEs that need fixing due to the large UI and input surface of vim, and backporting fixes has proven difficult. This isn't just a Yocto Project issue, the Debian tracker [1] currently shows 14 unresolved CVEs in Trixie and 15 unresolved CVEs in Bookworm. And, it's very difficult to share work between distros, as vim tags every commit as a new release, every distro ends up on a different release and needs to re-validate any backported patches.
So, I propose we drop vim from openembedded-core on the master branch, post-wrynose.
We can use tinyxxd [2] to provide xxd, this is based on the vim codebase and frequently merges changes from upstream.
We can use GNU Nano as our default editor where something more capable than busybox vi is needed, this has a sensible release model. The much simpler input model and lack of scripting facility means that CVEs in nano are much fewer and further between.
If we do this, what should we do with vim? We could move it back to meta-oe, but that would simply be moving the maintenance burden. We could stop backporting CVE fixes to vim and recommend that an LTS mixin layer is used to provide newer versions of vim for stable branches. I'm open to ideas.
Quoted 5 lines
[1]: https://tracker.debian.org/pkg/vim
[2]: https://github.com/xyproto/tinyxxdBest regards,
Last week I prepared a series splitting vim and xxd in different recipes, but I didn't have the time to send it. I will try to do it ASAP and I think this could avoid dropping vim from oe-core, since xxd would then be handled in a much simpler way.
I hope I'm not too late in this discussion...
Signature · 2 lines
Best regards, João Marcos Costa