From 244eb56d7f214ebc477f564dc6ff959d9e09f61d3eed6361c538e907fa5454ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 23 Jul 2021 15:46:55 +0000 Subject: [PATCH 1/2] =?UTF-8?q?-=20Updated=20to=20version=208.2.3204,=20fi?= =?UTF-8?q?xes=20the=20following=20problems=20-=20enable=20test=5Frecover?= =?UTF-8?q?=20-=20disable-unreliable-tests.patch=20=20=20*=20Xxd=20always?= =?UTF-8?q?=20reports=20an=20old=20version=20string.=20(=C3=85smund=20Ervi?= =?UTF-8?q?k)=20=20=20*=20Vim9:=20using=20try=20in=20catch=20block=20cause?= =?UTF-8?q?s=20a=20hang.=20=20=20*=20Vim9:=20an=20error=20in=20a=20catch?= =?UTF-8?q?=20block=20is=20not=20reported.=20=20=20*=20Vim9:=20profile=20t?= =?UTF-8?q?est=20fails.=20=20=20*=20Powershell=20core=20not=20supported=20?= =?UTF-8?q?by=20default.=20=20=20*=20Recover=20test=20fails=20on=2032bit?= =?UTF-8?q?=20systems.=20(Ond=C5=99ej=20S=C3=BAkup)=20=20=20*=20Cannot=20c?= =?UTF-8?q?atch=20errors=20in=20a=20channel=20command.=20=20=20*=20A=20cha?= =?UTF-8?q?nnel=20command=20"echoerr"=20does=20not=20show=20anything.=20?= =?UTF-8?q?=20=20*=20Crash=20when=20passing=20null=20string=20to=20charcla?= =?UTF-8?q?ss().=20=20=20*=20Vim9:=20builtin=20function=20argument=20types?= =?UTF-8?q?=20are=20not=20checked=20at=20compile=20time.=20=20=20*=20JSONC?= =?UTF-8?q?=20files=20are=20not=20recognized.=20=20=20*=20Vim9:=20breakpoi?= =?UTF-8?q?nt=20on=20"for"=20does=20not=20work.=20=20=20*=20Gemtext=20file?= =?UTF-8?q?s=20are=20not=20recognized.=20=20=20*=20With=20'virtualedit'=20?= =?UTF-8?q?set=20to=20"block"=20Visual=20highlight=20is=20wrong=20after=20?= =?UTF-8?q?using=20=20=20"$".=20=20(Marco=20Trosi)=20=20=20*=20Garbage=20c?= =?UTF-8?q?ollection=20has=20useless=20code.=20=20=20*=20With=20concealing?= =?UTF-8?q?=20enabled=20and=20indirectly=20closing=20a=20fold=20the=20curs?= =?UTF-8?q?or=20may=20be=20=20=20somewhere=20in=20a=20folded=20line.=20=20?= =?UTF-8?q?=20*=20Vim9:=20default=20argument=20expression=20cannot=20use?= =?UTF-8?q?=20previous=20argument=20=20=20*=20Vim9:=20builtin=20function?= =?UTF-8?q?=20test=20fails=20without=20the=20+channel=20feature.=20=20=20*?= =?UTF-8?q?=20tablabel=5Ftooltip=20test=20fails=20with=20Athena.=20(Domini?= =?UTF-8?q?que=20Pell=C3=A9)=20=20=20*=20Test=5Fpopup=5Fatcursor=5Fpos()?= =?UTF-8?q?=20fails=20without=20the=20conceal=20feature.=20=20=20*=20With?= =?UTF-8?q?=20'virtualedit'=20set=20to=20"block"=20block=20selection=20is?= =?UTF-8?q?=20wrong=20after=20using=20=20=20"$".=20=20(Marco=20Trosi)=20?= =?UTF-8?q?=20=20*=20Temp=20files=20remain=20after=20running=20tests.=20?= =?UTF-8?q?=20=20*=20Crash=20when=20using=20"quit"=20at=20recovery=20promp?= =?UTF-8?q?t=20and=20autocommands=20are=20triggered.=20=20=20*=20Popup=20w?= =?UTF-8?q?indow=20test=20is=20flaky=20on=20MS-Windows=20with=20GUI.=20=20?= =?UTF-8?q?=20*=20Vim9:=20missing=20catch/finally=20not=20reported=20at=20?= =?UTF-8?q?script=20level.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=670 --- disable-unreliable-tests.patch | 16 ---- vim-8.2.3075.tar.gz | 3 - vim-8.2.3204.tar.gz | 3 + vim.changes | 147 +++++++++++++++++++++++++++++++++ vim.spec | 2 +- 5 files changed, 151 insertions(+), 20 deletions(-) delete mode 100644 vim-8.2.3075.tar.gz create mode 100644 vim-8.2.3204.tar.gz diff --git a/disable-unreliable-tests.patch b/disable-unreliable-tests.patch index a4bcf85..c7f5d76 100644 --- a/disable-unreliable-tests.patch +++ b/disable-unreliable-tests.patch @@ -18,14 +18,6 @@ Index: vim-8.2.3075/src/testdir/Make_all.mak test_packadd \ test_partial \ test_paste \ -@@ -223,7 +221,6 @@ NEW_TESTS = \ - test_quickfix \ - test_quotestar \ - test_random \ -- test_recover \ - test_regex_char_classes \ - test_regexp_latin \ - test_regexp_utf8 \ @@ -323,7 +320,6 @@ NEW_TESTS_RES = \ test_autocmd.res \ test_autoload.res \ @@ -34,14 +26,6 @@ Index: vim-8.2.3075/src/testdir/Make_all.mak test_balloon_gui.res \ test_blob.res \ test_blockedit.res \ -@@ -460,7 +456,6 @@ NEW_TESTS_RES = \ - test_quickfix.res \ - test_quotestar.res \ - test_random.res \ -- test_recover.res \ - test_regex_char_classes.res \ - test_registers.res \ - test_rename.res \ Index: vim-8.2.3075/src/testdir/Makefile =================================================================== --- vim-8.2.3075.orig/src/testdir/Makefile diff --git a/vim-8.2.3075.tar.gz b/vim-8.2.3075.tar.gz deleted file mode 100644 index ccbe5ca..0000000 --- a/vim-8.2.3075.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:500d52af2cacfd39d403547c68677d99f2c7cfb3e18d99bc374d7a89d5d5d6b2 -size 15605722 diff --git a/vim-8.2.3204.tar.gz b/vim-8.2.3204.tar.gz new file mode 100644 index 0000000..153e229 --- /dev/null +++ b/vim-8.2.3204.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c41381e7492485ef6cee202e3d6148f147e19e969f6f1ad78f8da379b55cff9a +size 15648080 diff --git a/vim.changes b/vim.changes index 28c3ee0..4eb9e0d 100644 --- a/vim.changes +++ b/vim.changes @@ -1,3 +1,150 @@ +------------------------------------------------------------------- +Fri Jul 23 15:44:04 UTC 2021 - Ondřej Súkup + +- Updated to version 8.2.3204, fixes the following problems +- enable test_recover - disable-unreliable-tests.patch + * Xxd always reports an old version string. (Åsmund Ervik) + * Vim9: using try in catch block causes a hang. + * Vim9: an error in a catch block is not reported. + * Vim9: profile test fails. + * Powershell core not supported by default. + * Recover test fails on 32bit systems. (Ondřej Súkup) + * Cannot catch errors in a channel command. + * A channel command "echoerr" does not show anything. + * Crash when passing null string to charclass(). + * Vim9: builtin function argument types are not checked at compile time. + * JSONC files are not recognized. + * Vim9: breakpoint on "for" does not work. + * Gemtext files are not recognized. + * With 'virtualedit' set to "block" Visual highlight is wrong after using + "$". (Marco Trosi) + * Garbage collection has useless code. + * With concealing enabled and indirectly closing a fold the cursor may be + somewhere in a folded line. + * Vim9: default argument expression cannot use previous argument + * Vim9: builtin function test fails without the +channel feature. + * tablabel_tooltip test fails with Athena. (Dominique Pellé) + * Test_popup_atcursor_pos() fails without the conceal feature. + * With 'virtualedit' set to "block" block selection is wrong after using + "$". (Marco Trosi) + * Temp files remain after running tests. + * Crash when using "quit" at recovery prompt and autocommands are triggered. + * Popup window test is flaky on MS-Windows with GUI. + * Vim9: missing catch/finally not reported at script level. + * Vim9: no error when using type with unknown number of arguments. + * Missing function prototype for vim_round(). + * Test for crash fix does not fail without the fix. + * Swap test may fail on some systems when jobs take longer to exit. + * Vim9: unspecified function type causes type error. + * Vim9: type of partial is wrong when it has arguments. + * Vim9: confusing line number reported for error. + * Vim9: error for arguments while type didn't specify arguments. + * Test for remote_foreground() fails. (Elimar Riesebieter) + * Check for $DISPLAY never fails. + * A pattern that matches the cursor position is bit complicated. + * Vim9: confusing error with extra whitespace before colon. + * With concealing enabled and indirectly closing a fold the cursor may be + somewhere in a folded line when it is not on the first line of + the fold. + * No error when for loop variable shadows script variable. + * Amiga-like systems: build error using stat(). + * Coverity complains about free_wininfo() use. + * Vim9: crash when debugging a function with line continuation. + * Vim9: type not properly checked in for loop. + * Vim9: "any" type not handled correctly in for loop. + * Compiler warning for unused argument. + * Crypt with sodium test fails on MS-Windows. + * 'listchars' "exceeds" character appears in foldcolumn. Window separator + is missing. (Leonid V. Fedorenchik) + * With 'nowrap' cursor position is unexected in narrow window. (Leonid V. + Fedorenchik) + * Vim9: confusing error when using white space after option, before one of + "!&<". + * Vim9: no error for white space between option and "=9". + * Variables are set but not used. + * Vim9: for loop error reports wrong line number. + * Vim9: no error when adding number to list of string. + * Vim9: uninitialzed list does not get type checked. + * Vim9: imported uninitialized list does not get type checked. + * Vim9: import test fails. + * Compiler warns for size_t to colnr_T conversion. (Randall W. Morris) + * Vim9: memory leak when add() fails. + * Crash when using typename() on a function reference. (Naohiro Ono) + * Vim9: builtin function arguments not checked at compile time. + * No test for E187 and "No swap file". + * Vim9: no error when a line only has a variable name. + * Debugger test fails. + * Functions for string manipulation are spread out. + * No error when using :complete for :command without -nargs. + * Vim9: type check for has_key() argument is too strict. + * Vim9: A lambda may be compiled with the wrong context if it is called + from a profiled function. + * Vim9: no error when using an invalid value for a line number. + * Vim9: profile test fails without profile feature. + * Vim9: line number wrong for :execute argument. + * Vim9: profiling does not work with a nested function. + * Vim9: function arg type check does not handle base offset. + * Some plugins have a problem with the error check for using :command with + -complete but without -nargs. + * Vim9: argument types are not checked at compile time. + * Vim9: profiling fails if nested function is also profiled. + * Vim9: accessing "s:" results in an error. + * URLs with a dash in the scheme are not recognized. + * Vim9: some type checks for builtin functions fail. + * Some option related code not covered by tests. + * Vim9: term_getansicolors() test fails without +termguicolors. + * Crypt test may fail on MS-Windows. + * Strange error message when using islocked() with a number. (Yegappan + Lakshmanan) + * Cursor displayed in wrong position after deleting line. + * 'breakindent' does not work well for bulleted and numbered lists. + * Vim9: no error when reltime() has invalid arguments. + * Vim9: argument types are not checked at compile time. + * Location list window may open a wrong file. + * Vim9: in a || expression the error line number may be wrong. + * Vim9: nested autoload call error overruled by "Unknown error". + * Get E12 in a job callback when searching for tags. (Andy Stewart) + * Vim9: type error for constant of type any. + * Vim9: cannot handle nested inline function. + * Illegal memory access in test. + * Another illegal memory access in test. + * MzScheme test fails. (Christian Brabandt) + * Vim9: argument types are not checked at compile time. + * Vim9: "legacy undo" finds "undo" variable. + * Vim9: using illegal pointer with inline function inside a lambda. + * Vim9: no type error for comparing number with string. + * Vim9: can not use "for _ in expr" at script level. + * Vim9: the file name of an :import cannot be an expression. + * Vim9: cannot assign to an imported variable at script level. + * Vim9: memory leak when concatenating to an imported string. + * Vim9: builtin function test fails without channel feature. + * Vim9: crash when using removing items from a constant list. (Yegappan + Lakshmanan) + * Duplicate error numbers. + * Cannot add a digraph with a leading space. It is not easy to list + existing digraphs. + * Vim9: start of inline function found in comment line. + * Vim9: not all failures for import tested + * Vim9: popup timer callback is not compiled. + * Vim9: argument types are not checked at compile time. + * Vim9: error when using "try|". + * Error messages are spread out. + * Vim9: not enough code is tested. + * Build failure with small version (Tony Mechelynck). + * screenpos() is wrong when the last line is partially visible and 'display' + is "lastline". + * Vim9: argument types are not checked at compile time. + * Vim9: unclear error when passing too many arguments to lambda. + * Vim9: bool expression with numbers only fails at runtime. + * Error messages are spread out. + * Cannot use 'formatlistpat' for breakindent. + * Vim9: execution speed can be improved. + * Vim9: hard to guess where a type error is given. + * Crash in test. + * Vim9: tests are only executed for legacy script. + * Vim9: compiled string expression causes type error. (Yegappan Lakshmanan) + * Display garbled when 'cursorline' is set and lines wrap. (Gabriel Dupras) + ------------------------------------------------------------------- Wed Jun 30 09:15:27 UTC 2021 - Ondřej Súkup diff --git a/vim.spec b/vim.spec index c93b3a4..70d9aa6 100644 --- a/vim.spec +++ b/vim.spec @@ -17,7 +17,7 @@ %define pkg_version 8.2 -%define patchlevel 3075 +%define patchlevel 3204 %define patchlevel_compact %{patchlevel} %define VIM_SUBDIR vim82 %define site_runtimepath %{_datadir}/vim/site From ae668d4ca16c76c5241ac47bf86433efffcb3d80c0a80055ef5bd80682392672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 23 Jul 2021 16:29:17 +0000 Subject: [PATCH 2/2] - enable test_recover on x86_64/i586/ppc64* - disable-unreliable-tests.patch - disable faulty tests on arm and s390x arch - disable-unreliable-tests-arch.patch OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=671 --- disable-unreliable-tests-arch.patch | 42 +++++++++++++++++++++++++++++ vim.changes | 3 ++- vim.spec | 4 +++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 disable-unreliable-tests-arch.patch diff --git a/disable-unreliable-tests-arch.patch b/disable-unreliable-tests-arch.patch new file mode 100644 index 0000000..b4c4a29 --- /dev/null +++ b/disable-unreliable-tests-arch.patch @@ -0,0 +1,42 @@ +Index: vim-8.2.3204/src/testdir/Make_all.mak +=================================================================== +--- vim-8.2.3204.orig/src/testdir/Make_all.mak ++++ vim-8.2.3204/src/testdir/Make_all.mak +@@ -30,21 +30,17 @@ SCRIPTS_TINY_OUT = \ + + # Tests for Vim9 script. + TEST_VIM9 = \ +- test_vim9_assign \ + test_vim9_builtin \ + test_vim9_cmd \ + test_vim9_disassemble \ +- test_vim9_expr \ + test_vim9_fails \ + test_vim9_func \ + test_vim9_script + + TEST_VIM9_RES = \ +- test_vim9_assign.res \ + test_vim9_builtin.res \ + test_vim9_cmd.res \ + test_vim9_disassemble.res \ +- test_vim9_expr.res \ + test_vim9_fails.res \ + test_vim9_func.res \ + test_vim9_script.res +@@ -221,7 +217,6 @@ NEW_TESTS = \ + test_quickfix \ + test_quotestar \ + test_random \ +- test_recover \ + test_regex_char_classes \ + test_regexp_latin \ + test_regexp_utf8 \ +@@ -457,7 +452,6 @@ NEW_TESTS_RES = \ + test_quickfix.res \ + test_quotestar.res \ + test_random.res \ +- test_recover.res \ + test_regex_char_classes.res \ + test_registers.res \ + test_rename.res \ diff --git a/vim.changes b/vim.changes index 4eb9e0d..deb022c 100644 --- a/vim.changes +++ b/vim.changes @@ -2,7 +2,8 @@ Fri Jul 23 15:44:04 UTC 2021 - Ondřej Súkup - Updated to version 8.2.3204, fixes the following problems -- enable test_recover - disable-unreliable-tests.patch +- enable test_recover on x86_64/i586/ppc64* - disable-unreliable-tests.patch +- disable faulty tests on arm and s390x arch - disable-unreliable-tests-arch.patch * Xxd always reports an old version string. (Åsmund Ervik) * Vim9: using try in catch block causes a hang. * Vim9: an error in a catch block is not reported. diff --git a/vim.spec b/vim.spec index 70d9aa6..2c88269 100644 --- a/vim.spec +++ b/vim.spec @@ -66,6 +66,7 @@ Patch21: %{name}-7.3-filetype_changes.patch Patch22: %{name}-7.4-filetype_mine.patch Patch23: vim-8.0-ttytype-test.patch Patch24: disable-unreliable-tests.patch +Patch25: disable-unreliable-tests-arch.patch Patch100: vim73-no-static-libpython.patch Patch101: vim-8.0.1568-defaults.patch # https://github.com/vim/vim/issues/3348 - problem more probadly in buildenv than in test @@ -188,6 +189,9 @@ cp %{SOURCE23} runtime/syntax/apparmor.vim %patch22 -p1 %patch23 -p1 %patch24 -p1 +%ifarch s390x %{arm} aarch64 +%patch25 -p1 +%endif %patch100 -p1 %patch101 -p1 %patch102 -p1