diff mbox series

[bug#73252,core-updates] gnu: git-minimal: Patch 'sh' command in git-send-email script.

Message ID 61756e44d4cc91e285ee94a716a8abf64e6bb2fb.1726324376.git.maxim.cournoyer@gmail.com
State New
Headers show
Series [bug#73252,core-updates] gnu: git-minimal: Patch 'sh' command in git-send-email script. | expand

Commit Message

Maxim Cournoyer Sept. 14, 2024, 2:32 p.m. UTC
* gnu/packages/version-control.scm (git-minimal)
[phases] <patch-commands>: Extend to patch 'sh' command in
git-send-email.perl.

Change-Id: Ie60d206a4ab33cd894c8bfb6c20d12f52654707c
---

This causes a rebuild of GTK+ and all its dependents.

 gnu/packages/version-control.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


base-commit: 258aab2c9b3cf320fc025c282934f215a0d9ea3e
diff mbox series

Patch

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 852879901a..b7fa5b0f0b 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -366,7 +366,12 @@  (define-public git-minimal
                 (("\\$\\(basename")
                  (string-append "$(" (search-input-file inputs "bin/basename")))
                 (("sed -e")
-                 (string-append (search-input-file inputs "bin/sed") " -e")))))
+                 (string-append (search-input-file inputs "bin/sed") " -e")))
+
+              ;; git-send-email invokes the editor via 'sh'; patch it.
+              (substitute* "git-send-email.perl"
+                (("'sh'")
+                 (format #f "'~a'" (search-input-file inputs "bin/sh"))))))
           (add-after 'configure 'patch-makefiles
             (lambda _
               (substitute* "Makefile"