gnu: gnupg: Patch out /bin/sh in generated file.
authorAndreas Enge <andreas@enge.fr>
Mon, 11 Feb 2013 22:17:07 +0000 (23:17 +0100)
committerAndreas Enge <andreas@enge.fr>
Tue, 12 Feb 2013 12:47:50 +0000 (13:47 +0100)
* gnu/packages/gnupg.scm (gnupg): Modify configure phase.

gnu/packages/gnupg.scm

index baf3227..c198f90 100644 (file)
@@ -155,6 +155,16 @@ specifications are building blocks of S/MIME and TLS.")
        ("libgpg-error" ,libgpg-error)
        ("zlib" ,guix:zlib)
        ("readline" ,readline)))
+   (arguments
+    `(#:phases
+       (alist-replace
+        'configure
+        (lambda* (#:key #:allow-other-keys #:rest args)
+         (let ((configure (assoc-ref %standard-phases 'configure)))
+           (substitute* "tests/openpgp/Makefile.in"
+             (("/bin/sh") (which "bash")))
+           (apply configure args)))
+       %standard-phases)))
     (home-page "http://gnupg.org/")
     (synopsis
      "GNU Privacy Guard (GnuPG), GNU Project's implementation of the OpenPGP standard")