gnu: vim: Fix build on CoW file systems.

* gnu/packages/vim.scm (vim)[arguments]: Add disable-CoW phase.
This commit is contained in:
Tobias Geerinckx-Rice 2020-02-23 17:15:12 +01:00
parent c917c23e72
commit b947ba77e6
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -84,6 +84,12 @@ (define-public vim
#:parallel-tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-CoW
;; Disable copy-on-write (CoW) in the build directory. Tests fail on
;; btrfs (and possibly other CoW file systems) for unclear reasons.
;; This needs to be run early as it only affects newly-created files.
(lambda _
(invoke "chattr" "-R" "+C" ".")))
(add-after 'configure 'patch-config-files
(lambda _
(substitute* "runtime/tools/mve.awk"
@ -128,6 +134,7 @@ (define-public vim
`(("libtool" ,libtool)
;; For tests.
("e2fsprogs" ,e2fsprogs) ; for chattr in disable-CoW above
("tzdata" ,tzdata-for-tests)))
(home-page "https://www.vim.org/")
(synopsis "Text editor based on vi")