From 21b93650e431c9217376d837db23e093c6f61a59 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Tue, 4 Apr 2023 10:53:05 +0800 Subject: [PATCH] fix(vim): apply vim patch v8.0.1635 when change to ubuntu-20.04 without this patch, can not build vim. --- .ci/install/linux.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.ci/install/linux.sh b/.ci/install/linux.sh index 4485207a7..2551a49de 100755 --- a/.ci/install/linux.sh +++ b/.ci/install/linux.sh @@ -15,6 +15,12 @@ install_vim() { mkdir -p $out git clone --depth 1 --single-branch $ext $URL $tmp cd $tmp + + # Apply Vim patch v8.0.1635 to fix build with Python. + if grep -q _POSIX_THREADS src/if_python3.c; then + sed -i '/#ifdef _POSIX_THREADS/,+2 d' src/if_python3.c + fi + ./configure \ --with-features=huge \ --enable-pythoninterp \