gnu: mdadm: Build without '-Werror'

* gnu/packages/linux.scm (mdadm)[arguments]: Add 'remove-W-error'
phase.
This commit is contained in:
Ludovic Courtès 2016-08-03 12:10:00 +02:00
parent 8aceca50cd
commit d76f44e84c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 9 additions and 1 deletions

View File

@ -2363,7 +2363,15 @@ MPEG-2 and audio over Linux IEEE 1394.")
(substitute* "udev-md-raid-arrays.rules" (substitute* "udev-md-raid-arrays.rules"
(("/usr/bin/(readlink|basename)" all program) (("/usr/bin/(readlink|basename)" all program)
(string-append coreutils "/bin/" 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 must be done as root
#:tests? #f)) #:tests? #f))
(home-page "http://neil.brown.name/blog/mdadm") (home-page "http://neil.brown.name/blog/mdadm")