diff mbox

Fix gnome-autogen.sh on gnome-common

Message ID 20160611213431.6cc05351@riseup.net
State New
Headers show

Commit Message

Jovany Leandro G.C June 12, 2016, 2:34 a.m. UTC
hi,

This patch fix /bin/sh for gnome-autogen.sh

Comments

=?utf-8?B?5a6L5paH5q2m?= June 12, 2016, 11:34 a.m. UTC | #1
"Jovany Leandro G.C" <bit4bit@riseup.net> writes:

> hi,
>
> This patch fix /bin/sh for gnome-autogen.sh
>
>
Hi, this is unnecessary, the '/bin/sh' shebang will be patched by
the 'patch-source-shebangs' phase of gnu-build-system.
diff mbox

Patch

From f9d585eb60a5261dd38d6a4fc5e5d443abc91ed9 Mon Sep 17 00:00:00 2001
From: "Jovany Leandro G.C" <bit4bit@riseup.net>
Date: Sat, 11 Jun 2016 21:07:13 -0500
Subject: [PATCH] gnu: gnome: Fix gnome-autogen.sh

* gnu/packages/gnome.scm (gnome-common):
[arguments]: Use modify-phases. substitute harcode "/bin/sh"
---
 gnu/packages/gnome.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index c87c371..b371d0b 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -228,6 +228,13 @@  formats like PNG, SVG, PDF and EPS.")
         (base32
          "1kzqi8qvh5p1zncj8msazlmvcwsczjz2hqxp4x2y0mg718vrwmi2"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'autogen
+                    (lambda _
+                      (substitute* "macros2/gnome-autogen.sh"
+                        (("/bin/sh") (which "sh")))
+                      #t)))))
     (home-page "https://www.gnome.org/")
     (synopsis "Bootstrap GNOME modules built from Git")
     (description "gnome-common contains various files needed to bootstrap
-- 
2.7.4