gnu: vim: Update to 8.2.0066.
* gnu/packages/vim.scm (vim): Update to 8.2.0066. [arguments]: Work around new build-container-related test failures. Remove previous work-arounds. [native-inputs]: Add tzdata-for-tests. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>master
parent
365892e90f
commit
9efcc49481
|
@ -7,6 +7,7 @@
|
||||||
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2019 HiPhish <hiphish@posteo.de>
|
;;; Copyright © 2019 HiPhish <hiphish@posteo.de>
|
||||||
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
|
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
|
||||||
|
;;; Copyright © 2019 Jakub Kądziołka <kuba@kadziolka.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -67,7 +68,7 @@
|
||||||
(define-public vim
|
(define-public vim
|
||||||
(package
|
(package
|
||||||
(name "vim")
|
(name "vim")
|
||||||
(version "8.1.0644")
|
(version "8.2.0066")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
|
@ -76,7 +77,7 @@
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1xksb2v8rw1zgrd5fwqvrh44lf277k85sad2y4ia1z17y7i8j2fl"))))
|
"1yrmbqfwyj2ri61ahgzrglznpy1p6f1ldqkazhyxpwl4azk4n7zx"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:test-target "test"
|
`(#:test-target "test"
|
||||||
|
@ -92,18 +93,31 @@
|
||||||
"src/testdir/test_terminal.vim")
|
"src/testdir/test_terminal.vim")
|
||||||
(("/bin/sh") (which "sh")))
|
(("/bin/sh") (which "sh")))
|
||||||
#t))
|
#t))
|
||||||
(add-before 'check 'patch-failing-tests
|
(add-before 'check 'set-TZDIR
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
;; One of the tests tests timezone-dependent functions.
|
||||||
|
(setenv "TZDIR"
|
||||||
|
(string-append (assoc-ref inputs "tzdata")
|
||||||
|
"/share/zoneinfo"))
|
||||||
|
#t))
|
||||||
|
(add-before 'check 'skip-failing-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
;; XXX A single test fails with “Can't create file /dev/stdout” (at
|
;; This test assumes that PID 1 is run as root and that the user
|
||||||
;; Test_writefile_sync_dev_stdout line 5) while /dev/stdout exists.
|
;; running the test suite does not have permission to kill(1, 0)
|
||||||
(substitute* "src/testdir/test_writefile.vim"
|
;; it. This is not true in the build container, where both PID 1
|
||||||
(("/dev/stdout") "a-regular-file"))
|
;; and the test suite are run as the same user. Skip the test.
|
||||||
|
;; An alternative fix would be to patch the PID used to a random
|
||||||
|
;; 32-bit value and hope it never shows up in the test environment.
|
||||||
|
(substitute* "src/testdir/test_swap.vim"
|
||||||
|
(("if !IsRoot\\(\\)") "if 0"))
|
||||||
|
|
||||||
;; XXX: This test fails when run in the build container:
|
;; This test checks how the terminal looks after executing some
|
||||||
;; <https://github.com/vim/vim/issues/3348>.
|
;; actions. The path of the bash binary is shown, which results in
|
||||||
(substitute* "src/testdir/test_search.vim"
|
;; a difference being detected. Patching the expected result is
|
||||||
((".*'Test_incsearch_substitute_03'.*" all)
|
;; non-trivial due to the special format used, so skip the test.
|
||||||
(string-append "\"" all "\n")))
|
(substitute* "src/testdir/test_terminal.vim"
|
||||||
|
((".*Test_terminal_postponed_scrollback.*" line)
|
||||||
|
(string-append line "return\n")))
|
||||||
#t)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("gawk" ,gawk)
|
`(("gawk" ,gawk)
|
||||||
|
@ -111,7 +125,10 @@
|
||||||
("perl" ,perl)
|
("perl" ,perl)
|
||||||
("tcsh" ,tcsh))) ; For runtime/tools/vim32
|
("tcsh" ,tcsh))) ; For runtime/tools/vim32
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("libtool" ,libtool)))
|
`(("libtool" ,libtool)
|
||||||
|
|
||||||
|
;; For tests.
|
||||||
|
("tzdata" ,tzdata-for-tests)))
|
||||||
(home-page "https://www.vim.org/")
|
(home-page "https://www.vim.org/")
|
||||||
(synopsis "Text editor based on vi")
|
(synopsis "Text editor based on vi")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue