From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: /bin/sh in configure tests Date: Sun, 13 Jan 2013 23:17:42 +0100 Message-ID: <877gngram1.fsf@gnu.org> References: <201301132306.27948.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuVsB-0008I5-G9 for bug-guix@gnu.org; Sun, 13 Jan 2013 17:17:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuVs9-0007zQ-6T for bug-guix@gnu.org; Sun, 13 Jan 2013 17:17:47 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:57340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuVs8-0007z1-WF for bug-guix@gnu.org; Sun, 13 Jan 2013 17:17:45 -0500 In-Reply-To: <201301132306.27948.andreas@enge.fr> (Andreas Enge's message of "Sun, 13 Jan 2013 23:06:27 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Andreas Enge Cc: bug-guix@gnu.org Andreas Enge skribis: > A package I am trying to build contains the following lines in its=20 > configure: > > case `/bin/sh -c "echo -n x"` in > -n*) > case `/bin/sh -c "echo 'x\c'"` in > ... > > Would it make sense to globally add a rule to patch-shebangs so that > "`/bin/sh" is replaced? If not, how can this be handled? If by globally you mean in gnu-build-system.scm, then I think that may be too risky. But in the package itself, you can add a phase that does: (substitute* "configure" (("`/bin/sh") (string-append "`" (which "bash")))) HTH, Ludo=E2=80=99.