Description
xbps-pkgdb -a reports a hash mismatch for vim-common:
ERROR: vim-common: hash mismatch for /usr/share/man/man1/vim.1.
ERROR: vim-common: files check FAILED.
Cause
vim-common does not register its man pages (e.g. vim.1) in xbps-alternatives. When neovim is installed and registered as an alternative to vi/vim, it replaces /usr/share/man/man1/vim.1 with its own version. Since vim-common owns that file in the package database but the file on disk now belongs to neovim, XBPS detects a hash mismatch.
Steps to reproduce
- Install
vim-common and neovim
- Run
xbps-alternatives -l — neovim is listed as an alternative to vim
- Run
xbps-pkgdb -a — hash mismatch reported for vim-common
Expected behavior
vim-common should register its man pages via xbps-alternatives so that when another package takes over those files through the alternatives system, no hash mismatch is reported.
Environment
xbps-query -p pkgver vim-common: vim-common-9.2.0280_1
xbps-query -p pkgver neovim: neovim-0.12.2_1
Description
xbps-pkgdb -areports a hash mismatch forvim-common:Cause
vim-commondoes not register its man pages (e.g.vim.1) inxbps-alternatives. Whenneovimis installed and registered as an alternative tovi/vim, it replaces/usr/share/man/man1/vim.1with its own version. Sincevim-commonowns that file in the package database but the file on disk now belongs to neovim, XBPS detects a hash mismatch.Steps to reproduce
vim-commonandneovimxbps-alternatives -l— neovim is listed as an alternative to vimxbps-pkgdb -a— hash mismatch reported forvim-commonExpected behavior
vim-commonshould register its man pages viaxbps-alternativesso that when another package takes over those files through the alternatives system, no hash mismatch is reported.Environment
xbps-query -p pkgver vim-common: vim-common-9.2.0280_1xbps-query -p pkgver neovim: neovim-0.12.2_1