FS#66318 - [vim] unneeded dependency on libffi

Attached to Project: Arch Linux
Opened by Eli Schwartz (eschwartz) - Sunday, 19 April 2020, 22:20 GMT
Last edited by Levente Polyak (anthraxx) - Monday, 26 April 2021, 21:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The vim/gvim package makedepends and depends on 'libffi', but there is no reason to. Nothing in vim uses libffi, it isn't linked to it and it isn't even invoked via a dlopen() interface.

The only mention of libffi in the code is in configure.ac: https://github.com/vim/vim/blob/f49e5640821d8ef752fb50d99edcf40bb62a4d4d/src/configure.ac#L989

It's guarded by --enable-mzschemeinterp which we don't enable (depends on racket) and all it does is add -lffi to the $MZSCHEME_LIBS, even though racket itself depends on and links to libffi as it should. It's quite unclear why vim needed to add this indirect and unused dependency in https://github.com/vim/vim/commit/9e902190328f5d90305828f10fd0806fc07477e2, but the answer will probably end up being "Ubuntu's racket install is broken"?
This task depends upon

Closed by  Levente Polyak (anthraxx)
Monday, 26 April 2021, 21:52 GMT
Reason for closing:  Implemented
Additional comments about closing:  8.2.2814-1

Loading...