From 2fb95b814f8392b3a3a75ed95c57ca2b989d2475 Mon Sep 17 00:00:00 2001 From: Jie Yang Date: Wed, 14 Oct 2020 22:57:40 +0800 Subject: [PATCH] Fix wrong path passed to --with-python3-config-dir The path passed to the parameter --with-python3-config-dir should be consistent with the one python3-devel rpm installed. Otherwise, some vim plugins such as YouCompleteMe will not work, complaining that python can not be loaded. Signed-off-by: Jie Yang --- vim.spec | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/vim.spec b/vim.spec index e6cf53b..c7a014c 100644 --- a/vim.spec +++ b/vim.spec @@ -12,7 +12,7 @@ Name: vim Epoch: 2 Version: 8.2 -Release: 4 +Release: 5 Summary: Vim is a highly configurable text editor for efficiently creating and changing any kind of text. License: Vim and MIT URL: http://www.vim.org @@ -136,7 +136,7 @@ sed -i 's/vimrc/virc/' os_unix.h %configure --with-features=small --with-x=no --enable-multibyte --disable-netbeans \ --disable-pythoninterp --disable-perlinterp --disable-tclinterp --with-tlib=ncurses \ --enable-gui=no --disable-gpm --exec-prefix=/ \ - --enable-fail-if-missing --with-python3-config-dir=/usr/lib/python%{python_ver}/config \ + --enable-fail-if-missing --with-python3-config-dir=/usr/lib64/python%{python_ver}/config-%{python_ver}-%{_arch}-linux-gnu \ %if %{_with_selinux__} --enable-selinux \ %else @@ -150,7 +150,7 @@ mv os_unix.h.bak os_unix.h %configure --with-features=huge --enable-pythoninterp=dynamic --enable-python3interp=dynamic \ --enable-perlinterp=dynamic --disable-tclinterp --with-x=yes --enable-xim --enable-multibyte \ --with-tlib=ncurses --enable-gtk3-check --enable-gui=gtk3 \ - --enable-cscope --enable-fail-if-missing --with-python3-config-dir=/usr/lib/python%{python_ver}/config \ + --enable-cscope --enable-fail-if-missing --with-python3-config-dir=/usr/lib64/python%{python_ver}/config-%{python_ver}-%{_arch}-linux-gnu \ %if %{_with_netbeans__} --enable-netbeans \ %else @@ -176,7 +176,7 @@ mv os_unix.h.bak os_unix.h %configure --with-features=huge --enable-pythoninterp=dynamic --enable-python3interp=dynamic \ --enable-perlinterp=dynamic --disable-tclinterp --with-x=no --enable-gui=no --enable-multibyte \ - --enable-cscope --with-tlib=ncurses --with-python3-config-dir=/usr/lib/python%{python_ver}/config \ + --enable-cscope --with-tlib=ncurses --with-python3-config-dir=/usr/lib64/python%{python_ver}/config-%{python_ver}-%{_arch}-linux-gnu \ --enable-fail-if-missing \ %if %{_with_netbeans__} --enable-netbeans \ @@ -422,6 +422,12 @@ popd %{_mandir}/man1/evim.* %changelog +* Wed Oct 14 2020 Jie Yang - 2:8.2-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Fix wrong path passed to --with-python3-config-dir. + * Sat Aug 15 2020 shixuantong - 2:8.2-4 - Type:bugfix - ID:NA -- Gitee