FS#74940 - [vim] should depend on perl

Attached to Project: Arch Linux
Opened by Patrick Reader (pxeger) - Thursday, 02 June 2022, 11:06 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 07 June 2022, 01:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

/usr/bin/vim is linked to libperl.so

$ ldd $(which vim)
...
libperl.so => /usr/lib/perl5/5.36/core_perl/CORE/libperl.so (0x00007f5f85f1c000)
...

but it does not depend on the perl package (which provides libperl.so). Therefore, when running vim without perl installed, you get an error:

vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

Because perl is such a common dependency (e.g., it is installed via base-devel), it tends to already exist on the system, so this problem does not manifest itself much. But the dependency should still be added, because when installing in minimal environments (e.g. containers), perl may not necessarily be there.

Or, maybe it's an accident of configuration that vim depends on perl in the first place?

Additional info:
* extra/vim 8.2.5046-1

Steps to reproduce:
* use a fresh Arch Linux installation, without base-devel installed
$ docker run --rm -it --pull always archlinux bash
* install vim
# pacman -Syu vim
* attempt to start vim
# vim
vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 07 June 2022, 01:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  vim 8.2.5046-2 temporarily adds perl as a hard dep.
Comment by loqs (loqs) - Thursday, 02 June 2022, 15:46 GMT
vim is built with --enable-perlinterp=dynamic so libperl.so will be dlopened however vim is linked with -lperl as well.
Appears to be some issue in the configure script.
Comment by Morten Linderud (Foxboron) - Thursday, 02 June 2022, 15:56 GMT
There are new symbols so this patch doesn't work anymore; https://github.com/vim/vim/pull/6310/files

Loading...