guix-devel
[Top][All Lists]
Advanced

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

[PATCH 2/2] gnu: libtool: Restore ltmain.sh shebang.


From: ng0
Subject: [PATCH 2/2] gnu: libtool: Restore ltmain.sh shebang.
Date: Sun, 1 Jan 2017 15:24:28 +0000

This fixes <http://bugs.gnu.org/25304>

 * gnu/packages/autotools.scm (libtool): Restore ltmain.sh shebang.
 [arguments]: Add new phase 'restory-ltmain-shebang'.
---
 gnu/packages/autotools.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index 1c9e062d6..217517ade 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -330,7 +330,12 @@ Makefile, simplifying the entire process for the 
developer.")
                        (let ((bash (assoc-ref inputs "bash")))
                          (substitute* "tests/testsuite"
                            (("/bin/sh")
-                            (string-append bash "/bin/bash")))))))))
+                            (string-append bash "/bin/bash"))))))
+         (add-after 'patch-source-shebangs 'restore-ltmain-shebang
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (substitute* "build-aux/ltmain.in"
+                        (((string-append (assoc-ref inputs "bash") "/bin/sh"))
+                         "/bin/sh")))))))
 
     (synopsis "Generic shared library support tools")
     (description
-- 
2.11.0




reply via email to

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