gnu: stress-make: Patch default shell.

* gnu/packages/debug.scm (stress-make)[arguments]: Add 'set-default-shell
phase.
This commit is contained in:
Eric Bavier 2017-08-08 21:46:19 -05:00
parent bd5b5ac0c5
commit 05cca6ce90
No known key found for this signature in database
GPG Key ID: FD73CAC719D32566
1 changed files with 21 additions and 15 deletions

View File

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2016 Eric Bavier <bavier@member.fsf.org> ;;; Copyright © 2014, 2015, 2016, 2017 Eric Bavier <bavier@member.fsf.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -287,20 +287,26 @@ down the road.")
;; not accept a directory name instead. To let the gnu-build-system's ;; not accept a directory name instead. To let the gnu-build-system's
;; patch-* phases work properly, we unpack the source first, then ;; patch-* phases work properly, we unpack the source first, then
;; repack before the configure phase. ;; repack before the configure phase.
`(#:configure-flags '("--with-make-tar=./make.tar.xz") (let ((make-dir (string-append "make-" (package-version gnu-make))))
#:phases `(#:configure-flags '("--with-make-tar=./make.tar.xz")
(modify-phases %standard-phases #:phases
(add-after 'unpack 'unpack-make (modify-phases %standard-phases
(lambda* (#:key inputs #:allow-other-keys) (add-after 'unpack 'unpack-make
(zero? (system* "tar" "xf" (assoc-ref inputs "make-source"))))) (lambda* (#:key inputs #:allow-other-keys)
(add-before 'configure 'repack-make (zero? (system* "tar" "xf" (assoc-ref inputs "make-source")))))
(lambda _ (add-after 'unpack-make 'set-default-shell
(zero? (system* "tar" "cJf" "./make.tar.xz" (lambda _
(string-append "make-" ;; Taken mostly directly from (@ (gnu packages base) gnu-make)
,(package-version gnu-make)))))) (substitute* (string-append ,make-dir "/job.c")
(add-before 'configure 'bootstrap (("default_shell = .*$")
(lambda _ (format #f "default_shell = \"~a\";\n"
(zero? (system* "autoreconf" "-vfi"))))))) (which "sh"))))))
(add-before 'configure 'repack-make
(lambda _
(zero? (system* "tar" "cJf" "./make.tar.xz" ,make-dir))))
(add-before 'configure 'bootstrap
(lambda _
(zero? (system* "autoreconf" "-vfi"))))))))
(home-page "https://github.com/losalamos/stress-make") (home-page "https://github.com/losalamos/stress-make")
(synopsis "Expose race conditions in Makefiles") (synopsis "Expose race conditions in Makefiles")
(description (description