guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: mdadm: Build without '-Werror'


From: Ludovic Courtès
Subject: 02/02: gnu: mdadm: Build without '-Werror'
Date: Wed, 3 Aug 2016 10:49:51 +0000 (UTC)

civodul pushed a commit to branch version-0.11.0
in repository guix.

commit d76f44e84c2add2d35375c4e0c18efe69a760562
Author: Ludovic Courtès <address@hidden>
Date:   Wed Aug 3 12:10:00 2016 +0200

    gnu: mdadm: Build without '-Werror'
    
    * gnu/packages/linux.scm (mdadm)[arguments]: Add 'remove-W-error'
    phase.
---
 gnu/packages/linux.scm |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index e65327c..f6352da 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -2363,7 +2363,15 @@ MPEG-2 and audio over Linux IEEE 1394.")
                      (substitute* "udev-md-raid-arrays.rules"
                        (("/usr/bin/(readlink|basename)" all program)
                         (string-append coreutils "/bin/" program)))))
-                 (alist-delete 'configure %standard-phases))
+                 (alist-cons-before
+                  'build 'remove-W-error
+                  (lambda _
+                    ;; We cannot build with -Werror on i686 due to a
+                    ;; 'sign-compare' warning in util.c.
+                    (substitute* "Makefile"
+                      (("-Werror") ""))
+                    #t)
+                  (alist-delete 'configure %standard-phases)))
        ;;tests must be done as root
        #:tests? #f))
     (home-page "http://neil.brown.name/blog/mdadm";)



reply via email to

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