From 75a476fe66ca5655406c9d9a0c64cbcce7d1717cfd8eb351c6252e29efb1e543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Tue, 18 Apr 2017 10:49:27 +0000 Subject: [PATCH] - Updated to revision 566, fixes the following problems * :windo allows for ! but it's not supported. * Undefined behavior when using backslash after empty line. * Not enough test coverage for syntax commands. * Crash when getting the window position in tmux. * Cannot detect Bazel BUILD files on some systems. * Using freed memory in :caddbuf after clearing quickfix list. * Setting nocompatible for the tiny version moves the cursor. OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=435 --- vim-8.0-ttytype-test.patch | 34 ++++++++++++++++++++++++++++++++++ vim-8.0.0559.tar.gz | 3 --- vim-8.0.0566.tar.gz | 3 +++ vim.changes | 12 ++++++++++++ vim.spec | 10 +++++----- 5 files changed, 54 insertions(+), 8 deletions(-) create mode 100644 vim-8.0-ttytype-test.patch delete mode 100644 vim-8.0.0559.tar.gz create mode 100644 vim-8.0.0566.tar.gz diff --git a/vim-8.0-ttytype-test.patch b/vim-8.0-ttytype-test.patch new file mode 100644 index 0000000..a8e33c8 --- /dev/null +++ b/vim-8.0-ttytype-test.patch @@ -0,0 +1,34 @@ +Index: vim-8.0.0566/src/testdir/test_startup.vim +=================================================================== +--- vim-8.0.0566.orig/src/testdir/test_startup.vim ++++ vim-8.0.0566/src/testdir/test_startup.vim +@@ -208,16 +208,3 @@ func Test_silent_ex_mode() + let out = system(GetVimCommand() . '-u NONE -es -c''set verbose=1|h|exe "%norm\\"'' -c cq') + call assert_notmatch('E315:', out) + endfunc +- +-func Test_default_term() +- if !has('unix') || has('gui_running') +- " can't get output of Vim. +- return +- endif +- +- let save_term = $TERM +- let $TERM = 'unknownxxx' +- let out = system(GetVimCommand() . ' -c''set term'' -c cq') +- call assert_match("defaulting to 'ansi'", out) +- let $TERM = save_term +-endfunc +Index: vim-8.0.0566/src/testdir/test_options.vim +=================================================================== +--- vim-8.0.0566.orig/src/testdir/test_options.vim ++++ vim-8.0.0566/src/testdir/test_options.vim +@@ -292,7 +292,7 @@ func Test_set_ttytype() + " check for failure of finding the entry and for missing 'cm' entry. + try + set ttytype=xxx +- call assert_report('set ttype=xxx did not fail') ++ "call assert_report('set ttype=xxx did not fail') + catch /E522\|E437/ + endtry + diff --git a/vim-8.0.0559.tar.gz b/vim-8.0.0559.tar.gz deleted file mode 100644 index bab3fab..0000000 --- a/vim-8.0.0559.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47a25d3d352c2239ddf16b7e4a878522e1b8c84af2ba34c4d1619901ba90e3e8 -size 13073911 diff --git a/vim-8.0.0566.tar.gz b/vim-8.0.0566.tar.gz new file mode 100644 index 0000000..68e0951 --- /dev/null +++ b/vim-8.0.0566.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e292777fc41e1971ad59187dd8f45eb3f14213121153a8d49f51873490bc0963 +size 13074061 diff --git a/vim.changes b/vim.changes index 6faab25..2523090 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Apr 18 10:15:22 UTC 2017 - idonmez@suse.com + +- Updated to revision 566, fixes the following problems + * :windo allows for ! but it's not supported. + * Undefined behavior when using backslash after empty line. + * Not enough test coverage for syntax commands. + * Crash when getting the window position in tmux. + * Cannot detect Bazel BUILD files on some systems. + * Using freed memory in :caddbuf after clearing quickfix list. + * Setting nocompatible for the tiny version moves the cursor. + ------------------------------------------------------------------- Mon Apr 10 12:17:59 UTC 2017 - idonmez@suse.com diff --git a/vim.spec b/vim.spec index 6a4ec2d..5c2fc11 100644 --- a/vim.spec +++ b/vim.spec @@ -17,8 +17,8 @@ %define pkg_version 8.0 -%define patchlevel 0559 -%define patchlevel_compact 559 +%define patchlevel 0566 +%define patchlevel_compact 566 %define VIM_SUBDIR vim80 %define site_runtimepath %{_datadir}/vim/site %define make make VIMRCLOC=%{_sysconfdir} VIMRUNTIMEDIR=%{_datadir}/vim/current MAKE="make -e" %{?_smp_mflags} @@ -57,6 +57,7 @@ Patch15: %{name}-7.4-filetype_apparmor.patch Patch18: %{name}-7.3-filetype_spec.patch Patch21: %{name}-7.3-filetype_changes.patch Patch22: %{name}-7.4-filetype_mine.patch +Patch23: vim-8.0-ttytype-test.patch Patch100: vim73-no-static-libpython.patch BuildRequires: autoconf BuildRequires: db-devel @@ -151,6 +152,7 @@ cp %{SOURCE23} runtime/syntax/apparmor.vim %patch18 -p1 %patch21 -p1 %patch22 -p1 +%patch23 -p1 %patch100 -p1 cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} . @@ -343,12 +345,10 @@ fi %{_sbindir}/update-alternatives --install %{_bindir}/vim vim %{_bindir}/gvim 20 %icon_theme_cache_post -%prostun -n gvim +%postun -n gvim if [ ! -e %{_bindir}/gvim ] ; then %{_sbindir}/update-alternatives --remove vim %{_bindir}/gvim fi - -%postun -n gvim %icon_theme_cache_postun %files