Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim: only link to the perl DLL _dynamically_ #4058

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

dscho
Copy link
Contributor

@dscho dscho commented Sep 18, 2023

The major Perl version is encoded in the file name of the Perl DLL, which makes it much more desirable to link dynamically to the DLL, i.e. on demand. Otherwise vim.exe would not even start unless Perl is installed, and the exact expected version at that.

However, due to a bug, even --enable-perlinterop=dynamic would let vim.exe link to the Perl DLL, defeating the purpose of the dynamic part.

This was fixed in the VIM project, via vim/vim@55460da26c27, and here is a backport to get this fix into MSYS2.

This PR addresses git-for-windows#115 (comment).

The major Perl version is encoded in the file name of the Perl DLL,
which makes it much more desirable to link _dynamically_ to the DLL,
i.e. on demand. Otherwise `vim.exe` would not even start unless Perl is
installed, at the exact expected version.

However, due to a bug, even `--enable-perlinterop=dynamic` would let
`vim.exe` link to the Perl DLL, defeating the purpose of the `dynamic`
part.

This was fixed in the VIM project, via
vim/vim@55460da26c27, and here is a backport
to get this fix into MSYS2.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho changed the title vim: avoid linking to the perl DLL non-dynamically vim: only link to the perl DLL _dynamically_ Sep 18, 2023
@lazka
Copy link
Member

lazka commented Sep 18, 2023

thanks.

fyi, our vim is a bit outdated right now since newer versions fail to build for a few months, and I wasn't motivated enough to look into it.

@dscho
Copy link
Contributor Author

dscho commented Sep 18, 2023

our vim is a bit outdated right now since newer versions fail to build for a few months

I noticed, and will have a quick look at it now.

In the meantime, maybe we can go with this PR, as a band-aid until we get current VIM versions to build again?

@dscho dscho marked this pull request as ready for review September 18, 2023 09:09
@lazka lazka merged commit 479c2bd into msys2:master Sep 18, 2023
2 checks passed
@dscho dscho deleted the avoid-linking-vim-to-the-perl-dll branch September 18, 2023 09:33
@dscho
Copy link
Contributor Author

dscho commented Sep 18, 2023

@lazka FWIW my current progress getting current VIM to build can be viewed in this here peanut gallery: #4059

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants