summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-02-07 23:46:23 +0100
committerLudovic Courtès <ludo@gnu.org>2013-02-07 23:47:21 +0100
commit9589eecb400cbaeaf5a6451a08755ffc260ed2dc (patch)
treed371531b568a024bf53b9393f311f31ef3dd71a9
parent4dede022fd551615de219629f8b7652905855d4a (diff)
gnu: ed: Patch /bin/sh in the test suite.
* gnu/packages/ed.scm (ed): Add `patch-test-suite' phase.
-rw-r--r--gnu/packages/ed.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/ed.scm b/gnu/packages/ed.scm
index 83d8b21bfb..2350746b15 100644
--- a/gnu/packages/ed.scm
+++ b/gnu/packages/ed.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
+;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -37,7 +38,13 @@
(base32
"18gvhyhwpabmgv4lh21lg8vl3z7acdyhh2mr2kj9g75wksj39pcp"))))
(build-system gnu-build-system)
- (arguments '(#:configure-flags '("CC=gcc")))
+ (arguments
+ '(#:configure-flags '("CC=gcc")
+ #:phases (alist-cons-before 'patch-source-shebangs 'patch-test-suite
+ (lambda _
+ (substitute* "testsuite/check.sh"
+ (("/bin/sh") (which "sh"))))
+ %standard-phases)))
(home-page "http://www.gnu.org/software/ed/")
(synopsis
"GNU ed, an implementation of the standard Unix editor")