guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/09: gnu: vim: Fix build on CoW file systems.


From: guix-commits
Subject: 04/09: gnu: vim: Fix build on CoW file systems.
Date: Sun, 23 Feb 2020 11:57:04 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit b947ba77e60d3d3c5cc6a1c914096e7dab1f7db7
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Sun Feb 23 17:15:12 2020 +0100

    gnu: vim: Fix build on CoW file systems.
    
    * gnu/packages/vim.scm (vim)[arguments]: Add disable-CoW phase.
---
 gnu/packages/vim.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 67f245b..579b215 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -84,6 +84,12 @@
        #: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 @@
      `(("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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]