Skip to content

rebuild(main/vim,x11/vim-gtk): rebuild against Python 3.13#28826

Closed
TomJo2000 wants to merge 1 commit into
termux:masterfrom
TomJo2000:vim-python3.13
Closed

rebuild(main/vim,x11/vim-gtk): rebuild against Python 3.13#28826
TomJo2000 wants to merge 1 commit into
termux:masterfrom
TomJo2000:vim-python3.13

Conversation

@TomJo2000
Copy link
Copy Markdown
Member

@thunder-coding
Copy link
Copy Markdown
Member

Ah, this doesn't fix this properly. Our python3.pc is missing -lpython3.13 in it's Libs: . I've sent a PR upstream to fix this in python/cpython#144776 (but even that is wrong, it should be LDLIBRARY instead of BLDLIBRARY in LIBPYTHON= line). Let me just fix it

@TomJo2000
Copy link
Copy Markdown
Member Author

Anything I can do in the meantime to get this fixed for our Vim package?
The Python section of Vim's configure script starts here.
https://github.com/vim/vim/blob/v9.2.0100/src/configure.ac#L1302

But I'm not entirely sure which of the override variables, if any, is the appropriate one here.

@TomJo2000 TomJo2000 marked this pull request as draft March 6, 2026 20:10
@thunder-coding
Copy link
Copy Markdown
Member

thunder-coding commented Mar 6, 2026

I have just completed the proper fix. Merging this directly on master. Might take upto 15 minutes for me to commit it with proper comments

@robertkirkman
Copy link
Copy Markdown
Member

There seems to be an additional problem that the current settings of vim make it dynamically load Python rather than dynamically link to it, but for some reason the dynamic loading has stopped working. This is confirmed by my test here which works around the problem for me by switching it to dynamic linking instead:

however, that might not be optimal because it would increase the size of storage space required to install vim for people who don't use python.

@robertkirkman
Copy link
Copy Markdown
Member

This should also be closed now, since the problem is fixed, I think

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.

[Bug]: Vim fails to load python3 after upgrade to python 3.13

3 participants