From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id COIWIt9Vx2KOdQAAbAwnHQ (envelope-from ) for ; Thu, 07 Jul 2022 23:53:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WDoUIt9Vx2KPQAEA9RJhRA (envelope-from ) for ; Thu, 07 Jul 2022 23:53:35 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B3A92127F for ; Thu, 7 Jul 2022 23:53:35 +0200 (CEST) Received: from localhost ([::1]:38424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9ZRG-0005IU-5w for larch@yhetil.org; Thu, 07 Jul 2022 17:53:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9ZQk-0005H0-QD for bug-guix@gnu.org; Thu, 07 Jul 2022 17:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9ZQj-000760-Tb for bug-guix@gnu.org; Thu, 07 Jul 2022 17:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9ZQj-0000JA-Rl for bug-guix@gnu.org; Thu, 07 Jul 2022 17:53:01 -0400 Subject: bug#40641: Building from git breaks when /bin/sh isn't bash Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 07 Jul 2022 21:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 40641 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: elaexuotee@wilsonb.com Cc: 40641-done@debbugs.gnu.org, "pelzflorian \(Florian Pelz\)" Mail-Followup-To: 40641@debbugs.gnu.org, maxim.cournoyer@gmail.com, elaexuotee@wilsonb.com Received: via spool by 40641-done@debbugs.gnu.org id=D40641.16572307561146 (code D ref 40641); Thu, 07 Jul 2022 21:53:01 +0000 Received: (at 40641-done) by debbugs.gnu.org; 7 Jul 2022 21:52:36 +0000 Received: from localhost ([127.0.0.1]:58226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9ZQK-0000IP-2O for submit@debbugs.gnu.org; Thu, 07 Jul 2022 17:52:36 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:35580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9ZQF-0000IA-Ge for 40641-done@debbugs.gnu.org; Thu, 07 Jul 2022 17:52:34 -0400 Received: by mail-qt1-f173.google.com with SMTP id l14so24807815qtx.2 for <40641-done@debbugs.gnu.org>; Thu, 07 Jul 2022 14:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=LQQ4ci8oiRiyPJlTm0h7wr+KhgxyU5PTNODlqpCpMzU=; b=NLORNY/7AvJRuDfJG7+fBcKEbvmdvv4JKZ6k2fUgzUbGGN1BsPLJPGXaugm6ao4fUt 0xgazy/Oev9a7YVzy+UeMeAJ4uvSO32J9D15XML7bQRmKkjKU7IDiGsSh18KOebFkm5i AtwQLoFGownZYB7vNhatgVubPKcC1fQRaLuB5GPn1WBwZVr5qmbi4HszqY5fgOG6xUyS SiQ04KcnGcbUrFaE7LF/s8inNE8bp2azk458etxSY1vHH4itB97Erjm3AIpvvLxulSOo NF5kQgV6PAdzOr9+MLa2N/r2HkoA532L1lacZhOPx1c6HPPiSMnZiG5/sE8K6PfrHj2e Ooaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=LQQ4ci8oiRiyPJlTm0h7wr+KhgxyU5PTNODlqpCpMzU=; b=XEeJuKEtF4hZtsYc+bqPSL/E1sUNUpdLRQeNNfHmmuPQpDLZmkmZNUHkH0Fz0LafFg MUZ5GKCoLCgYHZEIByfyNTh1yNQEqowlftqGtX5vd8cGCMWi85qMTiUQX5C0eeWx4yrM i+D/OeCf42d7g+rVq2j1EqzFCQxOlgQJ5JKlWeEixNKwKwBHGRuILboAT7sOzvFpG5Bf 0EJz2/k1nHNtZD4u+hh5OBXtmlXgvmpsbbOlginlYvkRhF9avnlnlmRl8Zr0BR/Gx0x3 R2/aPnwpDBaUMwXbd5vDVzH5CmX4dpcM9t1yL9xMElAK2C/j4UtykYmhs2idTJon3ZNw /vnQ== X-Gm-Message-State: AJIora8OKUoSuu25RaAZe9lb5SW9UWGFgZHrid1LYojG4TwgfxJyZgU0 prWTdkjwip2UzgrKehvR1SsYGoeojvZIK6xg X-Google-Smtp-Source: AGRyM1usnRuF+JLt3Sb82MV54Bd7rk0t0Eg+AyXQ/l25lzMg9aXgJOT7P/02AG4l2ejDYETL1p/gGQ== X-Received: by 2002:a05:622a:341:b0:31d:3fda:5e2d with SMTP id r1-20020a05622a034100b0031d3fda5e2dmr256345qtw.129.1657230745621; Thu, 07 Jul 2022 14:52:25 -0700 (PDT) Received: from hurd (dsl-153-127.b2b2c.ca. [66.158.153.127]) by smtp.gmail.com with ESMTPSA id g10-20020a05620a40ca00b006a758ce2ae1sm22621154qko.104.2022.07.07.14.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 14:52:25 -0700 (PDT) From: Maxim Cournoyer References: <2O2NKRGHD2OZD.30CKDJBOP4LE3@wilsonb.com> <20200415122149.j7b6bcgvrp5cpq5l@pelzflorian.localdomain> <38M8QJ1PDKHCI.2ZBQF20W9BE03@wilsonb.com> <87h74tgxui.fsf@gmail.com> <20220613144005.gv2j5igdmisnaiqv@pelzflorian.localdomain> <874k0nfcq6.fsf@gmail.com> <2N3KLAV9USDUO.2FGVQNI398LFY@"@WILSONB.COM> <20220621090254.kyskzwkliku53mob@pelzflorian.localdomain> <62c2cd89.1c69fb81.7ad72.92c8SMTPIN_ADDED_BROKEN@mx.google.com> Date: Thu, 07 Jul 2022 17:52:24 -0400 In-Reply-To: <62c2cd89.1c69fb81.7ad72.92c8SMTPIN_ADDED_BROKEN@mx.google.com> (elaexuotee@wilsonb.com's message of "Mon, 04 Jul 2022 20:22:43 +0900") Message-ID: <87edywvbdz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657230815; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LQQ4ci8oiRiyPJlTm0h7wr+KhgxyU5PTNODlqpCpMzU=; b=kpl/ycfS1dRcub94m0j8ngnYCzZ/aGBHFwtDmLkBza/YvYnKOpDzN8WIR45+r492vG5OPN nxoXhk3cF5J3kxVN4PjLOhGnXrCbokkGnoyJty5GtPN7og3GeZr6Gp8bFCOooinHOHK3zw G0LA86TCwhaUR6RRXjr2ZluloDCE0e+DG6X60MeQpwrQ9ftOQEgQoeXosOpvlwRrzKjvbQ 92EWM2eVoam/FvXGozMyPlMS2XEbgJDLvb9+BZjzIUYMqozg0x0JhsnSkmNT+tUft/pBNc M3SZEGeLFPJTFqxqLPa1IFYLn2i2V//nN+2s2NsxGiObWj8wGjTaDX9KJIhPIg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657230815; a=rsa-sha256; cv=none; b=sbGjofN0UU/hWGnmpvDX34KiYNtuqnmbW3sUEomt5DP/akxST9xEkUCXefxm46Xl8RIOyV 1A/TVzuj4A1E7T6wjUAXKeAh9unUXwzBFlWVOsTRPHWrjk+guF9Qi8W+RTbA4b4Z5D25qD UGQBTSyT9PYRmsRX+oX253vHZT8tPh1S0jyvrDc0XJpCDZ6YYz3J5AAP5n+bwsOAtc3tEh 6HHsratre14tj4GJfDgZjJZvKX1TKRpMXIzy8skwknI5vJl2xY2RiEeladtQaR+0FOKcr9 hmb3OU9dOWAS3VyxGcJDWqyOxog67+4IjshCcQg7VRHiaDWzt2yM/gE8QfjI5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="NLORNY/7"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.55 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="NLORNY/7"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3B3A92127F X-Spam-Score: 7.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: HiH5GonNvkhJ Hello, elaexuotee@wilsonb.com writes: > "pelzflorian (Florian Pelz)" wrote: >> Thank you for getting back to the bug. I am in the same situation in >> that I use Guix System now. :D >>=20 >> On Tue, Jun 21, 2022 at 09:20:28AM +0900, elaexuotee@wilsonb.com wrote: >> > so you could be able to sanity >> > check with something like >> >=20 >> > $ guix shell -C dash guix make >> > $ ln -s $(command -v dash) /bin/sh >> > $ ./configure --localstatedir && make >>=20 >> I had done exactly this. >>=20 >> guix shell --container --network dash git pkg-config gnutls guile >> guile-avahi guile-gcrypt guile-json guile-lib guile-sqlite3 >> guile-zlib guile-lzlib guile-zstd guile-ssh guile-git autoconf >> automake gettext texinfo graphviz help2man po4a findutils sed >> coreutils tar xz m4 diffutils grep gcc-toolchain sqlite libgcrypt >> gawk make glibc-locales -- dash >>=20 >> Many tests fail because of the container though, so I=E2=80=99m not sure= how >> big the effect is. At least tests/guix-package.sh still use type -P >> which is not POSIX, but I don=E2=80=99t think it should be changed nor s= hould >> there be a check if $SHELL can do what we need, because we don=E2=80=99t= know >> which bash features we need. > > Excellent. I agree it's probably not worth POSIXifying the scripts. Forci= ng > make to default to guix's bash seems like the right approach IMHO, so +1 = for > that fix. > > FWIW, I ended up working around the original issue by explicitly telling = make > to use guix's bash, anyway: > > $ guix environment guix bash > $ CONFIG_SHELL=3D$(command -v bash) ./configure --localstatedir=3D/var OK. Good to know, glad it can be easily worked around. Closing. Maxim