From mboxrd@z Thu Jan 1 00:00:00 1970 From: elaexuotee--- via Bug reports for GNU Guix Subject: bug#40641: Building from git breaks when /bin/sh isn't bash Date: Wed, 15 Apr 2020 18:06:25 +0900 Message-ID: <2O2NKRGHD2OZD.30CKDJBOP4LE3@wilsonb.com> Reply-To: elaexuotee@wilsonb.com Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="----_=_5d193d5246943d7612a15089_=_" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48933) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOfsm-0002R5-Gs for bug-guix@gnu.org; Wed, 15 Apr 2020 07:07:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOfsl-0006pr-DA for bug-guix@gnu.org; Wed, 15 Apr 2020 07:07:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOfsl-0006pn-9t for bug-guix@gnu.org; Wed, 15 Apr 2020 07:07:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jOfsl-0007J7-5a for bug-guix@gnu.org; Wed, 15 Apr 2020 07:07:03 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:48703) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOfqw-0002Eu-KW for bug-guix@gnu.org; Wed, 15 Apr 2020 07:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOfqv-0004ky-B1 for bug-guix@gnu.org; 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 ) id 1jOfqv-0004iq-30 for bug-guix@gnu.org; Wed, 15 Apr 2020 07:05:09 -0400 Received: from localhost (KD111239207205.au-net.ne.jp [111.239.207.205]) by wilsonb.com (Postfix) with ESMTPSA id 76F39A1A5C for ; Wed, 15 Apr 2020 11:05:02 +0000 (UTC) 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-mx.org@gnu.org Sender: "bug-Guix" To: 40641@debbugs.gnu.org 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_=_--