From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QP84KEJCE2RUswAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 17:22:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WPU/J0JCE2StSgEAG6o9tA (envelope-from ) for ; Thu, 16 Mar 2023 17:22:26 +0100 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 6A70F29FA2 for ; Thu, 16 Mar 2023 17:22:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcqMd-0000A4-R2; Thu, 16 Mar 2023 12:22:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcqMc-00009E-DB for help-guix@gnu.org; Thu, 16 Mar 2023 12:22:02 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pcqMY-0006np-Qx for help-guix@gnu.org; Thu, 16 Mar 2023 12:22:02 -0400 Received: by mail-qk1-x732.google.com with SMTP id bm1so796231qkb.13 for ; Thu, 16 Mar 2023 09:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=worcester-edu.20210112.gappssmtp.com; s=20210112; t=1678983717; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ObyJWXnKvNfuvWYnFwnDL+vauWdEggy5LijEuu/uk1k=; b=sRZWyD816o0gfz/IPw2lLXu+fY0XlC0A5nVPkLPxHk++4SWD7jxwzBJ0w8az+VJ0td DPgZLDTqiokvRxs5lofDKrca8MnPk8XhIikwmxx3pOdOYzY06kxwtkmmDpE5tYFt8167 eJHoBJcp/x+70auYgcJLHnoTOx6PIowJoImbvcGCVeyPxAHjo94b2UgaE+bB1qnxPUqH aNNL52F3pqNNP9yTZ7LgYlmKfj0ty3zY6wxNbE+5Bx2y2wEGKrPUk4ef4JyFb1DANr4O W8ItRtc81+NZnTWs9RBSXVelo/FfK4YE4Qt15yfwYv9bZaMSBJSwzpiF+SFmK59qm7E4 ClWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678983717; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ObyJWXnKvNfuvWYnFwnDL+vauWdEggy5LijEuu/uk1k=; b=xTh2el6LNalNMUVGXGtu1MkagGd4vA4tfItXI3gsM4y8N9wu2l2MFHviEGwdBgTvm5 fJHnCurAcr72IZuk8jeRcl323Ae6By11pb20E6Ubsab7lXNAXp1dEkZlcGEx6nGddmLg MCAtwQBZOYgCtj7jbZREB1XCPVShdBJiE2te3UEO+BygXqfLdXqcSBE2f04fnw4alEQy rhXpYJMOA32QlGBP3eXg4UMP9n6k3VfEBJg0tEP7dcKXrzNJ46MSpy59pN4f17kotbVu JKvz63Xps5jFzBFWfuZ8rT+x2zkB1Kr+e0QquABBaL4Ig6vZ+xm7xOvuzOf54Eu8BVVZ 8IDQ== X-Gm-Message-State: AO0yUKUDqburQUquP/H0T9v2Vtd3LB7Dzy+WGc12yJLYmvaZwyVuLP6j bqbmBXsh3/ZrD0HztY2kvap9lqCmOfc5Ib4Xkjq7UKm0GJdNFHf/ X-Google-Smtp-Source: AK7set8nbrIjPpgY9gRR1gKci+6urmDnoEw9DYpk5fVygaqfmPosGUYDlhLyAOZ7zxqW/uL5OQbEns6ZLOwYWOd01Fg= X-Received: by 2002:a05:620a:6215:b0:71f:b89c:4f2f with SMTP id ou21-20020a05620a621500b0071fb89c4f2fmr6125565qkn.9.1678983717502; Thu, 16 Mar 2023 09:21:57 -0700 (PDT) MIME-Version: 1.0 References: <87cz58d733.fsf@gnu.org> In-Reply-To: <87cz58d733.fsf@gnu.org> From: "Thompson, David" Date: Thu, 16 Mar 2023 12:21:46 -0400 Message-ID: Subject: Re: Issue with 'guix shell' for Guile projects on non-Guix distros To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: help-guix Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=dthompson2@worcester.edu; helo=mail-qk1-x732.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=worcester-edu.20210112.gappssmtp.com header.s=20210112 header.b=sRZWyD81; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678983746; a=rsa-sha256; cv=none; b=oGcGXXxXYcgLAAVoY7gWnJ83FROchcUsAb4upo1hKqObHVOXgBmyLMIBu9opN5xarPXcFv PBg/AaavB72GbdYAt/Tq1EHPcZKgTXilTMZHLLrxAkwwJMaqf9YBr30QVB4yEac60H8K+e ELxvXGjA/pbXL54H3rCdBsxSK2Ib3lR1nT0Zm2eAEIzbSwMiOAMHAeJDtIfK5tQ/jGywQx DD4W/9O0aSFSFduhAxhoe5c5XaWa4/yOUCPQompQ5GmQVv0AXVhRMdk2OyaqgSsjehqDYV naCwlRIRPUmbtIHoPnM7MOOl70c7yRo1y81Qp34BkPpkATyaVpXbO5n06J6Q+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678983746; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ObyJWXnKvNfuvWYnFwnDL+vauWdEggy5LijEuu/uk1k=; b=Qx9cBqoKQyRE/WK/xPBJTSNpBqToCkITloXx3+vJeK5oa091j9Aw8amZBCB23m7SanKZkG 2PgO/NGTD61kw+/Lx/8UKeRZv9HK+PDfpElL1IbACw0vjGhSX4nVBqUr4MnKFQOqY3M5Zv gpJRr0clQ9CFfb4tZYjOctH9pJk+qg8tgD6OC2qA/m1ylZguCvVgeQtY1sBRHxxj5nnQx+ +O1aL12tA3T2ry1XE606xYQlAZUyPWIMqjdLInhC0CN5Jlc9TInEagHQL/HLInVCGASgmU ixf3B4dIRvEkGVxjBBI4RgwkFEeqMfZhBomT872zWhjSk0Z4xigFUacaWck3GQ== X-Migadu-Spam-Score: -4.36 X-Spam-Score: -4.36 X-Migadu-Queue-Id: 6A70F29FA2 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=worcester-edu.20210112.gappssmtp.com header.s=20210112 header.b=sRZWyD81; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: nxms52QRkZLo Hi Ludo, On Thu, Mar 16, 2023 at 11:55=E2=80=AFAM Ludovic Court=C3=A8s wrote: > > Hello, > > "Thompson, David" skribis: > > > Here's the context: Someone wants to build guile-goblins from a Git > > checkout using their non-Guix, FHS distro. However, they happen to > > have Guile 3 installed to /usr via the host distro's package manager. > > I was going to suggest running =E2=80=98guix shell --check =E2=80=A6=E2= =80=99, which can detect > a class of problems on non-Guix distros, but that=E2=80=99s not the probl= em > here. > > > They install Guix, run 'guix shell', then './bootstrap.sh' and that > > all works fine. Then they run './configure' and this happens: > > [...] > > > The most important line above is: > > > > checking for guile-3.0... /usr/bin/guile-3.0 > > > > Guile's guile.m4 code checks for a 'guile-3.0' executable *before* > > checking for a 'guile' executable. Guix's Guile package only provides > > 'guile', but the host distro provides 'guile-3.0'. Unfortunately, the > > build environment ends up as a mix of host distro and Guix things > > which eventually proves fatal to the build. > > I=E2=80=99ve not encountered this before. > > My suggestion would be to recommend running =E2=80=98guix shell -CP=E2=80= =99 as this > addresses problems of that sort once and for all. I do that, even on > Guix System: it=E2=80=99s pretty reassuring to know that your dev environ= ment is > isolated from the rest. > > Alternatively, =E2=80=98guix shell --pure=E2=80=99 would also address tha= t because then > =E2=80=98configure=E2=80=99 wouldn=E2=80=99t look for programs under /usr= /bin. It=E2=80=99s less robust > though. I should have mentioned that we did get a working environment by using --container, but it required explaining why the tools from the host, like git, were no longer available and how those would have to be used outside of the Guix shell. Same with --pure, only with additional complications because of a .bashrc that was referring to lesspipe and other things that were no longer available. I tend to prefer plain 'guix shell' because, usually, it does the right thing without additional surprises for someone who is unfamiliar with Guix. Each method has its downsides, not sure what to recommend going forward. - Dave