Subject: [PATCH] gnu: [email-masked]: Fix build.
From: Liliana Marie Prikler <[email-masked]>
To: [email-masked]
Date: Mon, 12 Jun 2023 20:23:31 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/maven.scm (maven-3.0-model-builder)[#:phases]: Add
‘add-components-shebang’.
---
 gnu/packages/maven.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index a805bda8e5..dc25f7640e 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2424,6 +2424,10 @@ (define-public maven-3.0-model-builder
       (substitute-keyword-arguments (package-arguments maven-model-builder)
         ((#:phases phases)
          `(modify-phases ,phases
+            (add-after 'unpack 'add-components-shebang
+              (lambda _
+                (substitute* "components.sh"
+                  (("^## T") "#!/bin/sh\n## T"))))
             (add-before 'build 'generate-components.xml
               (lambda _
                 (mkdir-p "build/classes/META-INF/plexus")

base-commit: 3fc26c6dc4b6bbf558a17b5e3ef8092ea0eeeacd
-- 
2.40.1