FS#78657 - [vim-runtime] vimdoc hook requires vim

Attached to Project: Arch Linux
Opened by Roland Ruckerbauer (ruabmbua) - Tuesday, 30 May 2023, 19:45 GMT
Last edited by Toolybird (Toolybird) - Sunday, 08 October 2023, 21:04 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Morten Linderud (Foxboron)
T.J. Townsend (blakkheim)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



I discovered, that the pacman hook /usr/share/libalpm/hooks/vimdoc.hook included in vim-runtime depends on the
/usr/bin/vim binary. This is a problem, since vim is not a requirement for the vim-runtime package, but the other way around.

When a user uninstalls vim, but not vim-runtime, so that only vim-runtime is installed (there may be other ways when this happens),
the pacman hook fails to execute, and generates an error e.g. on pacman -Syu.

Here is an exempt from the log:

(15/15) Updating Vim help tags...
Konnte execv nicht aufrufen (Datei oder Verzeichnis nicht gefunden)
Fehler: Befehl konnte nicht korrekt ausgeführt werden


Additional info:
* 9.0.1572-1 (probably irrelevant)

Steps to reproduce:
* Install only vim-runtime
* Upgrade a package that triggers the /usr/share/libalpm/hooks/vimdoc.hook hook
This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 08 October 2023, 21:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  vim 9.0.2002-1
Comment by Toolybird (Toolybird) - Tuesday, 30 May 2023, 23:10 GMT
It's worth noting errors in pacman hooks are non-fatal. Move the hook to vim?
Comment by Christian Heusel (gromit) - Saturday, 02 September 2023, 15:02 GMT
<this was a comment on the wrong issue>