mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: vim: Update to 8.2.1101.
* gnu/packages/vim.scm (vim): Update to 8.2.1101. [arguments]: In 'patch-config-files patch more shell calls. Rename custom 'set-TZDIR phase to 'set-environment-variables phase and also set TERM. Adjust 'skip-failing-tests to skip more tests.
This commit is contained in:
parent
d277c00ec9
commit
4e133f4fe4
1 changed files with 17 additions and 3 deletions
|
@ -70,7 +70,7 @@ (define-module (gnu packages vim)
|
|||
(define-public vim
|
||||
(package
|
||||
(name "vim")
|
||||
(version "8.2.0411")
|
||||
(version "8.2.1101")
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
|
@ -79,7 +79,7 @@ (define-public vim
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0idjbf15yqk5jz2dqbh2lzj7glxcwn1jl5pp9kk908ps02vzqyai"))))
|
||||
"170k855vscixnk6rz01i3k22crjiz8b2h83fnm2b2ccha0jyn9mf"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:test-target "test"
|
||||
|
@ -92,15 +92,21 @@ (define-public vim
|
|||
(("/usr/bin/nawk") (which "gawk")))
|
||||
(substitute* '("src/testdir/Makefile"
|
||||
"src/testdir/test_normal.vim"
|
||||
"src/testdir/test_system.vim"
|
||||
"src/testdir/test_terminal.vim")
|
||||
(("/bin/sh") (which "sh")))
|
||||
(substitute* "src/testdir/test_autocmd.vim"
|
||||
(("/bin/kill") (which "kill")))
|
||||
#t))
|
||||
(add-before 'check 'set-TZDIR
|
||||
(add-before 'check 'set-environment-variables
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; One of the tests tests timezone-dependent functions.
|
||||
(setenv "TZDIR"
|
||||
(string-append (assoc-ref inputs "tzdata")
|
||||
"/share/zoneinfo"))
|
||||
|
||||
;; Make sure the TERM environment variable is set for the tests
|
||||
(setenv "TERM" "xterm")
|
||||
#t))
|
||||
(add-before 'check 'skip-failing-tests
|
||||
(lambda _
|
||||
|
@ -113,6 +119,14 @@ (define-public vim
|
|||
(substitute* "src/testdir/test_swap.vim"
|
||||
(("if !IsRoot\\(\\)") "if 0"))
|
||||
|
||||
;; These tests fail on upstream's CI on FreeBSD because they are
|
||||
;; run as root. They fail for us because PID 1 and the test suite
|
||||
;; are run by the same user.
|
||||
(substitute* '("src/testdir/test_backup.vim"
|
||||
"src/testdir/test_writefile.vim")
|
||||
(("CheckNotBSD") "throw 'Skipped: this test fails on Guix'")
|
||||
(("'bsd'") "'unix'"))
|
||||
|
||||
;; This test checks how the terminal looks after executing some
|
||||
;; actions. The path of the bash binary is shown, which results in
|
||||
;; a difference being detected. Patching the expected result is
|
||||
|
|
Loading…
Reference in a new issue