Skip to content

vim-common: missing alternatives for man pages causes hash mismatch #60625

@jrvieira

Description

@jrvieira

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

  1. Install vim-common and neovim
  2. Run xbps-alternatives -l — neovim is listed as an alternative to vim
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions