Subject: [PATCH core-updates] gnu: git-minimal: Patch 'sh' command in git-send-email script.

From: Maxim Cournoyer <[email-masked]>
Date: Sat, 14 Sep 2024 23:32:56 +0900

* 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(-)

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"

base-commit: 258aab2c9b3cf320fc025c282934f215a0d9ea3e
-- 
2.46.0