From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id uIrCLFVYImYK9QAAe85BDQ:P1 (envelope-from ) for ; Fri, 19 Apr 2024 13:41:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uIrCLFVYImYK9QAAe85BDQ (envelope-from ) for ; Fri, 19 Apr 2024 13:41:09 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=fIYSQKRB; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713526869; 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-cc: 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=9I0YeLUlUR6TPCQodD+VrvRcCD0WE+tOz1xkwpm4ixY=; b=qvjpoefhnMsBFpMERoIJFQCQaavLjd+zPPyZ3SREKY/4hw8fYRs5Y/6nlh95J9p+ZfybTh F/qHs4UZBysoRW63mW4xQ1h+ilKLVurMzEyKHQBPpKiSw3mpUsn91BS2h21+fd1FEJ1Y3X 2e9hN5uhL91uCqfSffRo+KXZh5gdR6bPNePvILfXp7d9nHxIGSypkcZ4KSu/ciIKM/fj7o 5z93DEHCZosbu4NMhWFDsCjEKF5wuYQ2ZeUyf/46CnespeFD5xG+my2JTTV2M6f9aQIs0d Dy9xSXenDq5g1zVXUNdjqUtK4Wa+zzLxVfqPX0nSpabo3W5PQKOYMTg+q4rkxQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713526869; a=rsa-sha256; cv=none; b=aTw91jDMSJ6JDEkYX98yUE0CBzqQhr68iFDvIv/b5BaMfnUISPQa0QW9w/PjS230/eGHC3 Zj8oLi2nujPr24cBrW/b7B/a//ylKgrynavtFhQQhWI7/utG/bJXS6PuoVmRgiXSjhZ34S 0EmT9pdblESmWVbhvhlCR5ci6uIXSIBsuhhWEQ8I3b18RVitxr+te+kU+YQqQAVQZsY0tG ntcVgvg1mzme09GJSwAHEpDlorij7cWSdITWujokYmYOcyK3zTBYVu2ihEzX5yK8mbKwwU wmHQVu06AolCgirfJTUznnLDUYIeCfot7MiVaHyJ5909JyQGbCseV8jkJI02pQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=fIYSQKRB; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) 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 4957F50663 for ; Fri, 19 Apr 2024 13:41:09 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxmbx-0003uj-9E; Fri, 19 Apr 2024 07:40:57 -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 1rxmbr-0003tL-Gt for guix-patches@gnu.org; Fri, 19 Apr 2024 07:40:51 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxmbq-000812-VO for guix-patches@gnu.org; Fri, 19 Apr 2024 07:40:51 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rxmc4-0004lq-LH for guix-patches@gnu.org; Fri, 19 Apr 2024 07:41:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#68498] [PATCH] guix-install.sh: Make Guix modules available too. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Apr 2024 11:41:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68498 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Janneke Nieuwenhuizen Cc: 68498-done@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , 68498@debbugs.gnu.org Received: via spool by 68498-submit@debbugs.gnu.org id=B68498.171352683818083 (code B ref 68498); Fri, 19 Apr 2024 11:41:04 +0000 Received: (at 68498) by debbugs.gnu.org; 19 Apr 2024 11:40:38 +0000 Received: from localhost ([127.0.0.1]:58126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxmba-0004hJ-PR for submit@debbugs.gnu.org; Fri, 19 Apr 2024 07:40:37 -0400 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]:47316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxmbW-0004gL-Po; Fri, 19 Apr 2024 07:40:31 -0400 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-5aa4204bacdso1105578eaf.2; Fri, 19 Apr 2024 04:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713526811; x=1714131611; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9I0YeLUlUR6TPCQodD+VrvRcCD0WE+tOz1xkwpm4ixY=; b=fIYSQKRBzPefRlyAbk7kPcm90re5sex6oVjaiDLh6UPQhJaGJ9AeCzjwmpv8lGJ+rG wR38D2CT0DEP8WSTRNyd9KapsGtrkY8CjEoFhMsyVjTCKtZb2Fyf0a26prOJXqDkRaV5 m5BM036gUko2Us08cYO7KCQ1OBxB/tV6vsd/IAqULo4ltA9QQCwzUq+k9rC4od0aQSc8 kWsbmReNaTuN15LGDP0ma0Uhb1sjO+BbBu/u0vQEa4NT1mzM9MFOybKzr+XNgW1Bg3nT R5lTScQJvaUUjy4r6f79hUXiBb5314ibfC/Xroh9bE+qVHCETLq4LXJojaC1jSEOjQkK JkeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713526811; x=1714131611; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9I0YeLUlUR6TPCQodD+VrvRcCD0WE+tOz1xkwpm4ixY=; b=Rw7towxhXYW8wfQnuT5p9v8+sRCYBTFENGOVsq2G8F7UihX3QY86RqPgYA6o2QFtzR 1bUVZR7If1ChYTFTOYHo1DUGCnxUEJ4Pt0TgvGOgFxqby6mD/sjC3cNgmvBGnNaAR5JV r8RGjDv9cQPN20yhjZ4QrhvYE6qGr5Cl7wz/AcwhNNBk4rNr/QSGGfMjqGfC9acgZ9Eg ogBvwWFpFi5Dv/a4fk7VL5VLVSRqE/NNQDhE9JHgjRtbAJWMtvEjIZzH4L0KWB2nmqjy Ud3VkVV97WD5PqvEZe7Yj3anEGdTe/MzvVxb63pXDYhiZO6HYIyFDQbeEdUaF9tjueD5 EiZg== X-Forwarded-Encrypted: i=1; AJvYcCU37lYP1VtvvwAfMlB2ZScTWPKaweubniPk4f/tX3pQ2kP9USMeGC3tocZKkrEMZLupfrhpkmghLXE2Xysn5P4H9trps02Dlxv3Pr+qDWmJZVRehkEbOWdNO9eJ9pT/lNHa X-Gm-Message-State: AOJu0Yy1eqzpICPCX5FXe0mv+Hq4ODvfpDgfnm9N3lh6/4i2LrxJIvHc kvQwDnlTFjEbWZgn3UgjcrKHiShSerFoROKV1sIUhF25aS5p9cVxvqbPOg== X-Google-Smtp-Source: AGHT+IFCQjvO7xUIMOqiUoc6S94o6nughjoUxDJYyZfXBqhjryXuNtY9lHQIrwFUQwqDs54YG9dGtA== X-Received: by 2002:a05:6359:5083:b0:187:1dd4:495e with SMTP id on3-20020a056359508300b001871dd4495emr1707940rwb.22.1713526810437; Fri, 19 Apr 2024 04:40:10 -0700 (PDT) Received: from hurd (dsl-10-134-76.b2b2c.ca. [72.10.134.76]) by smtp.gmail.com with ESMTPSA id m6-20020ae9e006000000b0078efdcd9aa6sm1501296qkk.127.2024.04.19.04.40.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 04:40:09 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <87r0f2qyrt.fsf@gnu.org> (Janneke Nieuwenhuizen's message of "Thu, 18 Apr 2024 21:03:18 +0200") References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@gnu.org> <877cjys762.fsf@gnu.org> <87wmrxc06e.fsf@gnu.org> <87r0i0qt96.fsf@gnu.org> <878r48z76a.fsf@gnu.org> <87h6iwnmzr.fsf@gnu.org> <87plw2dh0w.fsf@gmail.com> <87il0z4wgu.fsf@gnu.org> <871q7hi6hp.fsf@gnu.org> <87r0f2qyrt.fsf@gnu.org> Date: Fri, 19 Apr 2024 07:40:08 -0400 Message-ID: <877cgtmvhj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.28 X-Spam-Score: -5.28 X-Migadu-Queue-Id: 4957F50663 X-Migadu-Scanner: mx13.migadu.com X-TUID: iWdyu45kRmRe Hi Janneke, Janneke Nieuwenhuizen writes: > Janneke Nieuwenhuizen writes: > > Hello, > >>> Maxim Cournoyer skribis: >>> >>>> Ludovic Court=C3=A8s writes: >> [..] >>>> I don't quite like the status quo where Guix System is different from >>>> Guix on a foreign distribution for dubious reasons. Either we expose >>>> the Guix modules as part of the guix-install.sh or perhaps we can avoid >>>> exposing them on Guix System, for consistency. >>>> >>>> What do you think? >>> >>> Sorry for the delay. It=E2=80=99s probably not that big a deal so if y= ou think >>> this improves user experience, go for it; I don=E2=80=99t want to block= this >>> change. Worst that can happen is we change our mind and revert it, >>> that=E2=80=99s OK. >> >> "Great". I was very much in favor of this change initially: Have a >> consistent Guix UX whether it be in Guix System or on a foreign distro. > > [..] > > Nice as it is that on Guix System you have Guix' modules available to > Guile by default, I stumbled onto another (obvious?) UX issue. > After doing `guix pull' (and no guix system reconfigure), you have a new > guix! With new modules. You can play with them in `guix repl'. Only, > when you start the guile, these new modules are not available; guile can > only see the (stale) system's guix modules. I'm not even sure how to > make them available to guile, other than `guix system reconfigure'. Even then, the modules available are not that of the latest pulled Guix; they are those of the guix package known by that guix, which was used to run the guix-daemon service. > "guix shell guile" doesn't make guix's modules available, of course, and > "guix shell guix guile will get you the previous guix, not the new > version made available by pull. The only thing I could think of, is to > provide a `guile' binary in ~/.config/guix/current/bin/guile. Hmm. I'm not sure how providing a Guile from there would help? > Hopefully there's an easier solution but if we cannot (or don't want to) > change/fix this, I'd possibly even rather not have guix modules > available to guile by default. WDYT? Perhaps we should treat the Guix library as a first class citizen, and expose them to the Guile load path by default? This would need to be done in some config file such as .bashrc, and could be automated in the guix-install. script, I believe. If we do this, we should also change the guix-daemon-service-type to avoid leaking 'guix' into the system profile, polluting it with old modules. What do you think? Is there a better alternative I do not see? --=20 Thanks, Maxim