Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app-editors/vim: remove warning due to missing defaults.vim #23115

Closed
wants to merge 2 commits into from

Conversation

dongsupark
Copy link
Contributor

@dongsupark dongsupark commented Nov 29, 2021

vim >= 8.2.3428 prints out a warning on missing file, when it is built with USE="minimal" and app-editors/vim-core is not installed.

$ vim
E1187: Failed to source defaults.vim
Press ENTER or type command to continue

To remove the warning, explicitly install /usr/share/vim/vim82/defaults.vim.

Closes: https://bugs.gentoo.org/820356
Signed-off-by: Dongsu Park dpark@linux.microsoft.com

@gentoo-bot
Copy link

Pull Request assignment

Submitter: @dongsupark
Areas affected: ebuilds
Packages affected: app-editors/vim

app-editors/vim: @gentoo/vim

Linked bugs

Bugs linked: 820356


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Nov 29, 2021
@thesamesam
Copy link
Member

Won't this collide with vim-core?

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-11-29 16:40 UTC
Newest commit scanned: de72a36
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/4c56603513/output.html

@dongsupark
Copy link
Contributor Author

@thesamesam
It should not.
I have added the check for use minimal to avoid colliding with vim-core.
AFAICT vim-core is pulled in when minimal is not set.

@thesamesam
Copy link
Member

@thesamesam It should not. I have added the check for use minimal to avoid colliding with vim-core. AFAICT vim-core is pulled in when minimal is not set.

I could have vim-core installed independently though, I think (even if this seems unlikely)? It seems like it would then collide.

vim >= 8.2.3428 prints out a warning on missing file, when
it is built with USE="minimal" and `app-editors/vim-core` is not
installed.

```
$ vim
E1187: Failed to source defaults.vim
Press ENTER or type command to continue
```

To remove warning, explicitly install /usr/share/vim/vim82/defaults.vim.

Closes: https://bugs.gentoo.org/820356
Signed-off-by: Dongsu Park <dpark@linux.microsoft.com>
@dongsupark
Copy link
Contributor Author

Thanks, you are right.
I updated the PR, so that vim and vim-core do not conflict with each other.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-11-30 15:20 UTC
Newest commit scanned: c4f82f2
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/337abf01eb/output.html

@thesamesam
Copy link
Member

This looks good now (we need || die on external commands like 'sed', see https://devmanual.gentoo.org/ebuild-writing/error-handling/) but could you verify gvim is okay now?

i.e. Does gvim use the file that vim-core used to install? Or does it not affect gvim?

Delete skip_defaults_vim config options from /etc/vimrc, to avoid
conflicts with vim[minimal].
Delete /usr/share/vim/vim82/defaults.vim, to avoid conflicts with
vim[minimal].

Signed-off-by: Dongsu Park <dpark@linux.microsoft.com>
@dongsupark
Copy link
Contributor Author

Thanks, updated the PR to add || die to sed and rm commands.

Checked also gvim. That is not affected by vim-core at all.

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2021-12-01 17:05 UTC
Newest commit scanned: bae0189
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/0124f518fb/output.html

@gentoo-bot gentoo-bot closed this in 74eaf6b Dec 1, 2021
@thesamesam
Copy link
Member

Thanks for being thorough here! Really appreciate the PR.

@thesamesam
Copy link
Member

Oh, note for future: we should've possibly revbumped here (it changes the installed files/runtime behaviour of these) but it seems like a trivial issue and we're going to end up bumping for the never-ending CVEs shortly enough I suspect, so not worth it.

dongsupark added a commit to flatcar-archive/portage-stable that referenced this pull request Dec 9, 2021
vim >= 8.2.3428 prints out a warning on missing file, when
it is built with USE="minimal" and `app-editors/vim-core` is not
installed.

```
$ vim
E1187: Failed to source defaults.vim
Press ENTER or type command to continue
```

To remove warning, explicitly install /usr/share/vim/vim82/defaults.vim.

This issue was fixed via gentoo/gentoo#23115.
That fix was already included in
#255, but only for
main.
That's why we need to fix it also in maintenance branches.

Gentoo ref: fc72192754c8a1ff9014fd739a2d07056b25ed1e
dongsupark added a commit to flatcar-archive/portage-stable that referenced this pull request Dec 9, 2021
Delete skip_defaults_vim config options from /etc/vimrc, to avoid
conflicts with vim[minimal].
Delete /usr/share/vim/vim82/defaults.vim, to avoid conflicts with
vim[minimal].

 To remove warning, explicitly install
 /usr/share/vim/vim82/defaults.vim.

This issue was fixed via gentoo/gentoo#23115.
That fix was already included in
#255, but only for
main.
That's why we need to fix it also in maintenance branches.

Gentoo ref: 74eaf6b7cbab24337eae5c07d42871aeb21a330e
dongsupark added a commit to flatcar-archive/portage-stable that referenced this pull request Dec 10, 2021
vim >= 8.2.3428 prints out a warning on missing file, when
it is built with USE="minimal" and `app-editors/vim-core` is not
installed.

```
$ vim
E1187: Failed to source defaults.vim
Press ENTER or type command to continue
```

To remove warning, explicitly install /usr/share/vim/vim82/defaults.vim.

This issue was fixed via gentoo/gentoo#23115.
That fix was already included in
#255, but only for
main.
That's why we need to fix it also in maintenance branches.

Gentoo ref: fc72192754c8a1ff9014fd739a2d07056b25ed1e
dongsupark added a commit to flatcar-archive/portage-stable that referenced this pull request Dec 10, 2021
Delete skip_defaults_vim config options from /etc/vimrc, to avoid
conflicts with vim[minimal].
Delete /usr/share/vim/vim82/defaults.vim, to avoid conflicts with
vim[minimal].

 To remove warning, explicitly install
 /usr/share/vim/vim82/defaults.vim.

This issue was fixed via gentoo/gentoo#23115.
That fix was already included in
#255, but only for
main.
That's why we need to fix it also in maintenance branches.

Gentoo ref: 74eaf6b7cbab24337eae5c07d42871aeb21a330e
@dongsupark dongsupark deleted the dongsu/vim-minimal-defaults branch February 18, 2022 11:30
t-lo pushed a commit to flatcar/scripts that referenced this pull request Apr 13, 2023
vim >= 8.2.3428 prints out a warning on missing file, when
it is built with USE="minimal" and `app-editors/vim-core` is not
installed.

```
$ vim
E1187: Failed to source defaults.vim
Press ENTER or type command to continue
```

To remove warning, explicitly install /usr/share/vim/vim82/defaults.vim.

This issue was fixed via gentoo/gentoo#23115.
That fix was already included in
flatcar-archive/portage-stable#255, but only for
main.
That's why we need to fix it also in maintenance branches.

Gentoo ref: fc72192754c8a1ff9014fd739a2d07056b25ed1e
t-lo pushed a commit to flatcar/scripts that referenced this pull request Apr 13, 2023
Delete skip_defaults_vim config options from /etc/vimrc, to avoid
conflicts with vim[minimal].
Delete /usr/share/vim/vim82/defaults.vim, to avoid conflicts with
vim[minimal].

 To remove warning, explicitly install
 /usr/share/vim/vim82/defaults.vim.

This issue was fixed via gentoo/gentoo#23115.
That fix was already included in
flatcar-archive/portage-stable#255, but only for
main.
That's why we need to fix it also in maintenance branches.

Gentoo ref: 74eaf6b7cbab24337eae5c07d42871aeb21a330e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.
Projects
None yet
4 participants