GNU bug report logs - #40641
Building from git breaks when /bin/sh isn't bash

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: elaexuotee@HIDDEN; dated Wed, 15 Apr 2020 11:07:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 40641 <at> debbugs.gnu.org:


Received: (at 40641) by debbugs.gnu.org; 17 Apr 2020 16:12:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 17 12:12:14 2020
Received: from localhost ([127.0.0.1]:41577 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jPTb8-00022Z-J5
	for submit <at> debbugs.gnu.org; Fri, 17 Apr 2020 12:12:14 -0400
Received: from m42-5.mailgun.net ([69.72.42.5]:15746)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bounce+148a03.08547a-40641=debbugs.gnu.org@HIDDEN>)
 id 1jPTQm-0001jx-OH
 for 40641 <at> debbugs.gnu.org; Fri, 17 Apr 2020 12:01:38 -0400
DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com;
 q=dns/txt; 
 s=krs; t=1587139294; h=Content-Type: MIME-Version: Message-Id:
 In-Reply-To: References: From: Subject: Cc: To: Date: Sender;
 bh=QmBxSAqjTSxcAQZeknpw02S3nuJKNAkvRKWA83hSpHg=;
 b=Sjx7F7fBxJ8s2UVojqXOqAMtEV4XjUw0tl2oULBG+Tduu92axf+2vFN29gVM/uwxx6tM4dIC
 R0KSPFcOTq7A0sXYrTGoxF5xBdQMGxIYnD4Y6aL9qeNx66ZLGJ8JRGXoKdsFPGG+MDsGjIuI
 82VhMD5und9aOjgevIGpSoMm+40OS5JE7U1eg4qxa81aU85PYIa1ZmuqaaUThLZu+kab+O+o
 4vN22DHJzujlJH01gn0UIIVpn+t224x+kwit+QJ5WeK3ht0N6dYdnkynk0jEZH3fxI+3sCaJ
 GcN1I9+8LADXFnmY/Ft4ZKkuK6vb13XX9mPiykNsRGr3oqi0ot3vbg==
X-Mailgun-Sending-Ip: 69.72.42.5
X-Mailgun-Sid: WyIxYmE0NCIsICI0MDY0MUBkZWJidWdzLmdudS5vcmciLCAiMDg1NDdhIl0=
Received: from wilsonb.com (wilsonb.com [104.199.203.42])
 by mxa.mailgun.org with ESMTP id 5e99d2aa.7f4d45d432a0-smtp-out-n05;
 Fri, 17 Apr 2020 16:00:42 -0000 (UTC)
Received: from localhost (sp1-79-85-7.msb.spmode.ne.jp [1.79.85.7])
 by wilsonb.com (Postfix) with ESMTPSA id EB9C0A1A5E;
 Fri, 17 Apr 2020 16:00:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com;
 s=201703; t=1587139239;
 bh=QmBxSAqjTSxcAQZeknpw02S3nuJKNAkvRKWA83hSpHg=;
 h=Date:To:Cc:Subject:From:References:In-Reply-To:From;
 b=sIliEQi4BtvXn1WILhoMS7JNB+l6Nn8tRjekWF388hgPH7fyYyLfZaMUI0yDCJL/c
 EsgTGxNngrQZ5Gd0sZ033hwFhY3qX1STFaueO+cGCPmhwNx+b9IuErtCPHKnzxx8D6
 mbmbSUvUpDBzrWN/2Lh0/pNDD8s6q27uiAf1EBocEiSJHOjTFQEYHMD6TvWxyBXilq
 OOk8b+ZGSCtoF3ysDwL3kfo/dl4R3bp8qnBYXxDzVIWxLqOTpMib8zuxfMf/C6AYZ4
 yTt7weSZYXCrOXz74jT3WGbKpym+ui6Zd/vbRgLpOkrG9cFtn03uvXbCTQGKllZFuu
 8ldNAYwGXB03n5kGSAU95vwcGZUZZye1JOZ2hg/GoP/k3wkdak4wABL6YRIdWFDweq
 oVmV/4squc1AmNqOdr+vVUkVwZvc324z7PmgzVTjICiG3PQ6a0Zg3eIqxfphM1xca/
 4Knk4W5nOsInqLN8xoNzF8lmPSGfzDuYk4vLh1F0ikmQxTfr0riXsKcNU+qVtQ6H71
 swP1Cbg89zQNSNY1jj2Aq7y9LG39TVoccx2BjFzL9FP+QEsNppLsWzCStW2QHInobS
 +srxevHyu971ZGKkU05vGhOl4ThUPj7PnN1UMPvS8jUJ11sKPl+Mk9C1pEp/q1ArC4
 QQro2mG0WyfLkwKrjQ9wdfOY=
Date: Fri, 17 Apr 2020 23:57:04 +0900
To: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>
Subject: Re: bug#40641: Building from git breaks when /bin/sh isn't bash
From: elaexuotee@HIDDEN
References: <2O2NKRGHD2OZD.30CKDJBOP4LE3@HIDDEN>
 <20200415122149.j7b6bcgvrp5cpq5l@HIDDEN>
In-Reply-To: <20200415122149.j7b6bcgvrp5cpq5l@HIDDEN>
Message-Id: <38M8QJ1PDKHCI.2ZBQF20W9BE03@HIDDEN>
User-Agent: mblaze/0.5.1
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha1";
 protocol="application/pgp-signature";
 boundary="----_=_064465a37bd4286b3a903232_=_"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40641
X-Mailman-Approved-At: Fri, 17 Apr 2020 12:12:08 -0400
Cc: 40641 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

This is a multipart message in MIME format.

------_=_064465a37bd4286b3a903232_=_
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----_=_40e4eb697d18a189045b3508_=_"

This is a multipart message in MIME format.

------_=_40e4eb697d18a189045b3508_=_
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

"pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN> wrote:
> On Wed, Apr 15, 2020 at 06:06:25PM +0900, elaexuotee--- via Bug reports f=
or GNU Guix wrote:
> > When building from git, ./bootstrap ends up generating (via automake) s=
everal
> > Makefiles that set SHELL =3D /bin/sh. However, some targets contain rul=
es that
> > make use of bashisms. This leads to breakage when /bin/sh is something =
other
> > than bash.
> >=20
> > In particular, I am building from a foreign distro which links /bin/sh =
to dash.
> > Currently, this ends up breaking the build, the details of which I repo=
rted
> > to guix-devel in [0].
>=20
> <https://bugs.gnu.org/25258> is related.  Your workaround may be more wel=
come.
>=20
> Regards,
> Florian


Florian,

Thanks for the pointer. I ended up doing a little bit of sleuthing and thin=
k
I figured out a relatively clean fix---a simple one-liner in configure.ac.
Attached is a proof-of-concept patch against master (974bf81776).

Currently, autoconf sets make's shell to whatever it thinks is best. On a
foreign distribution, this often ends up something external to guix profile=
=2E
However, when this isn't bash, we run into problems.

The patch's idea is to let make use its hard-coded default shell. A guix-bu=
ilt
make will correctly fallback to whichever sh is in the profile, so for `gui=
x
environment guix' this effectively becomes $GUIX_ENVIRONMENT/bin/sh. For
example,

    $ echo '$(info $(SHELL))' | make -f -
    /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/sh
    make: *** No targets.  Stop.

I belive this should do the Right Thing. However, is there anything I am
missing? Perhaps this change would break build scenaries I am not thinking =
of?

Cheers,
B. Wilson


------_=_40e4eb697d18a189045b3508_=_
Content-Disposition: attachment;
 filename*0*=UTF-8''0001-build-Let-make-use-its-hard-coded-default-shell.;
 filename*1*=patch
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

From 6a5533fde0580a777a10f1155714f23a003003d9 Mon Sep 17 00:00:00 2001
From: "B. Wilson" <elaexuotee@HIDDEN>
Date: Thu, 16 Apr 2020 17:02:06 +0900
Subject: [PATCH] build: Let make use its hard-coded default shell
To: guix-patches@HIDDEN

* configure.ac: Set AM_SUBST_NOTMAKE([SHELL])
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 6a6a020585..dbb06f2258 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,10 @@ AC_CONFIG_AUX_DIR([build-aux])
 AM_INIT_AUTOMAKE([1.14 gnu silent-rules subdir-objects \
  color-tests parallel-tests -Woverride -Wno-portability])
 
+# Use make's hard-coded default shell. The make in a guix profile
+# defaults to the Right Thing, e.g. $GUIX_ENVIRONMENT/bin/sh
+AM_SUBST_NOTMAKE([SHELL])
+
 # Enable silent rules by default.
 AM_SILENT_RULES([yes])
 
-- 
2.26.1


------_=_40e4eb697d18a189045b3508_=_--

------_=_064465a37bd4286b3a903232_=_
Content-Disposition: attachment; filename=signature.asc
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYIADUWIQQ7FdZn/PDWvxE6cmR2pStZ7i7CgQUCXpnSlRccZWxhZXh1b3Rl
ZUB3aWxzb25iLmNvbQAKCRB2pStZ7i7CgbieAQD6NNh9jtg6Cimpgrv78M9hgwTU
XMTiaXaT2xddzJPnJAEAhUWbcFLeLWphvbYNHVzPBJ296wzWQYh2x2ACy1NVLAk=
=mxC5
-----END PGP SIGNATURE-----

------_=_064465a37bd4286b3a903232_=_--




Information forwarded to bug-guix@HIDDEN:
bug#40641; Package guix. Full text available.

Message received at 40641 <at> debbugs.gnu.org:


Received: (at 40641) by debbugs.gnu.org; 15 Apr 2020 12:21:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 15 08:21:54 2020
Received: from localhost ([127.0.0.1]:35342 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jOh3C-0002rZ-NW
	for submit <at> debbugs.gnu.org; Wed, 15 Apr 2020 08:21:54 -0400
Received: from pelzflorian.de ([5.45.111.108]:58520 helo=mail.pelzflorian.de)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pelzflorian@HIDDEN>) id 1jOh3A-0002rO-UO
 for 40641 <at> debbugs.gnu.org; Wed, 15 Apr 2020 08:21:53 -0400
Received: from pelzflorian.localdomain (unknown [5.45.111.108])
 by mail.pelzflorian.de (Postfix) with ESMTPSA id 4566436055C;
 Wed, 15 Apr 2020 14:21:51 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de;
 s=mail; t=1586953311;
 bh=lVvZK+WVjb2Z856Ty2e/jGECUJqqphRSxX2XRrOwk9U=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To;
 b=z84lvoP7gqH0OXbEgEr1clFzGJh6Nh9BmYvkUfRrrnrg+SZll/dfI1jbainXlY/HY
 T8bv3qQg0shl6c2R2BLvf5LrxLx/NfPPewJQxM9wJclylQpfHMOHWUU3Rp8ykMVa5a
 OUf+eflQEEyJLtgkrsrZXXWhP7kkNs34gmxLon+s=
Date: Wed, 15 Apr 2020 14:21:49 +0200
From: "pelzflorian (Florian Pelz)" <pelzflorian@HIDDEN>
To: elaexuotee@HIDDEN
Subject: Re: bug#40641: Building from git breaks when /bin/sh isn't bash
Message-ID: <20200415122149.j7b6bcgvrp5cpq5l@HIDDEN>
References: <2O2NKRGHD2OZD.30CKDJBOP4LE3@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <2O2NKRGHD2OZD.30CKDJBOP4LE3@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 40641
Cc: 40641 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Wed, Apr 15, 2020 at 06:06:25PM +0900, elaexuotee--- via Bug reports for GNU Guix wrote:
> When building from git, ./bootstrap ends up generating (via automake) several
> Makefiles that set SHELL = /bin/sh. However, some targets contain rules that
> make use of bashisms. This leads to breakage when /bin/sh is something other
> than bash.
> 
> In particular, I am building from a foreign distro which links /bin/sh to dash.
> Currently, this ends up breaking the build, the details of which I reported
> to guix-devel in [0].

<https://bugs.gnu.org/25258> is related.  Your workaround may be more welcome.

Regards,
Florian




Information forwarded to bug-guix@HIDDEN:
bug#40641; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Apr 2020 11:06:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 15 07:06:04 2020
Received: from localhost ([127.0.0.1]:35318 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jOfro-0007HA-7E
	for submit <at> debbugs.gnu.org; Wed, 15 Apr 2020 07:06:04 -0400
Received: from lists.gnu.org ([209.51.188.17]:54222)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bounce+7434c3.08547a-bug-guix=gnu.org@HIDDEN>)
 id 1jOfqx-0007FX-V9
 for submit <at> debbugs.gnu.org; Wed, 15 Apr 2020 07:05:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48703)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <bounce+7434c3.08547a-bug-guix=gnu.org@HIDDEN>)
 id 1jOfqw-0002Eu-KW
 for bug-guix@HIDDEN; Wed, 15 Apr 2020 07:05:11 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bounce+7434c3.08547a-bug-guix=gnu.org@HIDDEN>)
 id 1jOfqv-0004ky-B1
 for bug-guix@HIDDEN; Wed, 15 Apr 2020 07:05:10 -0400
Received: from m42-5.mailgun.net ([69.72.42.5]:62036)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71)
 (envelope-from <bounce+7434c3.08547a-bug-guix=gnu.org@HIDDEN>)
 id 1jOfqv-0004iq-30
 for bug-guix@HIDDEN; Wed, 15 Apr 2020 07:05:09 -0400
DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com;
 q=dns/txt; 
 s=krs; t=1586948709; h=Content-Type: MIME-Version: Message-Id: Subject:
 From: To: Date: Sender;
 bh=rrr4M13gspNTFBv6slR1sz/c3Hp8RVe4U3AcyodxGso=;
 b=1d/uuKlY/oxIaM2cDvF9lqKOF2jMTX8ipO5M4da/DuSjKPZKY5814vvbF5RdmtP+B6yZ5xA/
 vCBSiIq2NAPzEAFTg/LpzVnnWJKzJtX2sto5gzSF1wbeGRHjP8JSPLxkbj5Eiu02WzOC56h4
 x2trK2OaJnfkQRgH3eqr0/rwlKd4zqqjET6e/4gh8beclMC8gvm9Z6c8aChkFkLIimJUfTLz
 Sh+qLPNH0WnLvbqFLJzbc+UReLqWTUXOBBXQOiLXsuLFiMQ9uLOI/vC6X50CVcPScfcAZM9X
 LRP++776QRoxO11i7Jlua+i1boQELJZ+UHu2kGrk/zxLy7WEL6DFbQ==
X-Mailgun-Sending-Ip: 69.72.42.5
X-Mailgun-Sid: WyJkMDM0YyIsICJidWctZ3VpeEBnbnUub3JnIiwgIjA4NTQ3YSJd
Received: from wilsonb.com (wilsonb.com [104.199.203.42])
 by mxa.mailgun.org with ESMTP id 5e96ea61.7ffb0a79d420-smtp-out-n05;
 Wed, 15 Apr 2020 11:05:05 -0000 (UTC)
Received: from localhost (KD111239207205.au-net.ne.jp [111.239.207.205])
 by wilsonb.com (Postfix) with ESMTPSA id 76F39A1A5C
 for <bug-guix@HIDDEN>; Wed, 15 Apr 2020 11:05:02 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com;
 s=201703; t=1586948702;
 bh=rrr4M13gspNTFBv6slR1sz/c3Hp8RVe4U3AcyodxGso=;
 h=Date:To:From:Subject:From;
 b=I40LUWi5VrAyrj8+bA+E+5B+3wTGe8zJHTEoA3YN/eOibGpSsSSewMWoKDyWg+JJ6
 rah7Had3tqgrBNCuEmbVseYr/VwQc7nnMnnmfjIyqADe7ph6PJ0bC0NtW9HZ+F+qav
 XMcF9BctjWUA5XtHNblVwCd+3ukIYrgvhIgS4q2AYQm4iK/UwRITlfvfP/K+TixusB
 QrRImvCgt2sAxlDvbXquXoTLG3749MDBxs6ULrJQxqzxgwtOSQgNttrEW3PyS84+/x
 TjQrviRoJHWvAyF9UJ5AyDQ55Og4tRGwEwW2NoQahuYtR7UJVQ7+/xY4ko8y7leIa3
 FvEVjPuJGy6xBjL4MPe4GdJDXlkNZAXw/T/irqW3FCHwTaBVIxVZXZcM1K3LM12Mzb
 8nwhGqIbmUAuD50+K41Kw7EZhBiPo6crEsI25j8E8gZlLlNFYXSub7OkHxNuML6xXq
 jFASltEQPDJprGDBT9BJ81IjnQCfBKO+2JoXMqXLG9CUnZ7TrF9DJO1NpypV9B0A0q
 xJrZuyMGp+n7RAy8sH68I5VQzY0j/fJdd5gfFgo+Fv9JpmkggcbE+IY+9YlYvo0Yyw
 JDbyFkhW/5SDBKGv6LuzyVjKLJ/9+/BDpNCEFS+maTKDjqr2Asa0kWeppKZkJvZyrw
 oxowBdOuIiUQMB3FoMIia30M=
Date: Wed, 15 Apr 2020 18:06:25 +0900
To: bug-guix@HIDDEN
From: elaexuotee@HIDDEN
Subject: Building from git breaks when /bin/sh isn't bash
Message-Id: <2O2NKRGHD2OZD.30CKDJBOP4LE3@HIDDEN>
User-Agent: mblaze/0.5.1
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha1";
 protocol="application/pgp-signature";
 boundary="----_=_5d193d5246943d7612a15089_=_"
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 69.72.42.5
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 15 Apr 2020 07:06:01 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

This is a multipart message in MIME format.

------_=_5d193d5246943d7612a15089_=_
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----_=_56b7ec4a6fd3ad4e063d78c1_=_"

This is a multipart message in MIME format.

------_=_56b7ec4a6fd3ad4e063d78c1_=_
Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

When building from git, ./bootstrap ends up generating (via automake) sever=
al
Makefiles that set SHELL =3D /bin/sh. However, some targets contain rules t=
hat
make use of bashisms. This leads to breakage when /bin/sh is something othe=
r
than bash.

In particular, I am building from a foreign distro which links /bin/sh to d=
ash.
Currently, this ends up breaking the build, the details of which I reported=

to guix-devel in [0].

As a workaround, at the moment we have to force make's SHELL to point to ba=
sh.
The cleanest way to do this is probably as follows:

    $ make SHELL=3D$(command -v sh)

since from within guix environment --pure guix, sh ends up pointing to bash=
=2E
Just for clarity, here is how this looks for me, currently:

    $ git rev-parse HEAD
    2708ae3d69b54d8323ca84fd9a7fb108a6ee96ba
    $ guix environment --pure guix
    $ readlink -f $(command -v sh)
    /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash=


[0]:https://lists.gnu.org/archive/html/guix-devel/2020-04/msg00232.html

------_=_56b7ec4a6fd3ad4e063d78c1_=_--

------_=_5d193d5246943d7612a15089_=_
Content-Disposition: attachment; filename=signature.asc
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYIADUWIQQ7FdZn/PDWvxE6cmR2pStZ7i7CgQUCXpbqRxccZWxhZXh1b3Rl
ZUB3aWxzb25iLmNvbQAKCRB2pStZ7i7CgSo9AP4s30rS0uhv4WMDHjA4/SWlFmKW
mN2F9WXD3TQiPdulaQD+L1aG8ULb5wRtGVaqJcAdVbXZOySCfs+2Y3NumYHRcAQ=
=bVJh
-----END PGP SIGNATURE-----

------_=_5d193d5246943d7612a15089_=_--




Acknowledgement sent to elaexuotee@HIDDEN:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#40641; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 17 Apr 2020 16:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.