From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 oN5KIh+4I2b/2wAAqHPOHw:P1 (envelope-from ) for ; Sat, 20 Apr 2024 14:42:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id oN5KIh+4I2b/2wAAqHPOHw (envelope-from ) for ; Sat, 20 Apr 2024 14:42:07 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hpfr.net header.s=key1 header.b=fpwO9u0q; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713616927; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=uZGQNeHs1Pof1ep1W1zhkRhJoU8pxYwVARdFZB8IIY0=; b=D5C6PzJhPSzm8hsGDHKOSImKZdooUAWTH3HVXIL73d+VxmM0k2nWpkZHDx/CuUdm6wKNPm GSEf1SHxC0uLo9NDTQWmO0k3z1FKB/app9uutZvpiV2P37u9jeVoVNQG9PIOPmfkO8hiF3 2UGioyN4VQ+tZZ/g7Essqh00xiQ6s+AxfrWjpvofiskSbD1FXG2n2bwAxB9P1Id06PGVy3 kNXwAaVtptxSulE9sBwhmkn2dqRRGVsaYtdRcDHsBnMl84zy2+sqNOSbs6BKrXmipmmhsR F9IutgQSf71ltn+Vr5FNaakkgV4SurTnIQHFgl/TVpRZEZftLRneSyQ7Oc0oIw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713616927; a=rsa-sha256; cv=none; b=prUPTP2J8X7OUi9MXLEVN60bJ1y3N7ZWJZNScpkRtPybNeu+6SJrg2OVxYGo1cG6yk891n psmodfnoGKhQW6fAQzIyumUQyyS4nSNVXhbTqyZcG5ykRiWdUmEd1GwltEjHPhn7gDP13i zsJ6SN2ABSc+Et2eMk6N7woqO2zY/nbunu9R5YSvSq191dA6T/nnhc0mhBlcOWI9JnoDNe YYbjO/dJM4OOuczC5KjC9kDDITl1OJD7ficw4/87q81jtKrf+V9BZ60Lsew7f/nXvW/LUr XnxMYz8xTD8sTqnuDHrGcQ+wolX+nqI2psY2PV3mKUhMxEbng+u3umGHXs84Hw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hpfr.net header.s=key1 header.b=fpwO9u0q; 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=pass (policy=none) header.from=gnu.org 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 1BACE11C48 for ; Sat, 20 Apr 2024 14:42:06 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryA2O-0006Ka-VM; Sat, 20 Apr 2024 08:41:48 -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 1ry4kL-0007wA-0z for guix-patches@gnu.org; Sat, 20 Apr 2024 03:02:49 -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 1ry4kK-0006Jh-OG for guix-patches@gnu.org; Sat, 20 Apr 2024 03:02:48 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ry4kZ-0000Vv-8V for guix-patches@gnu.org; Sat, 20 Apr 2024 03:03:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#68498] [PATCH] guix-install.sh: Make Guix modules available too. Resent-From: Liam Hupfer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Apr 2024 07:03:03 +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: Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 68498@debbugs.gnu.org, Janneke Nieuwenhuizen Received: via spool by 68498-submit@debbugs.gnu.org id=B68498.17135965581778 (code B ref 68498); Sat, 20 Apr 2024 07:03:03 +0000 Received: (at 68498) by debbugs.gnu.org; 20 Apr 2024 07:02:38 +0000 Received: from localhost ([127.0.0.1]:34695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ry4k7-0000SE-MT for submit@debbugs.gnu.org; Sat, 20 Apr 2024 03:02:38 -0400 Received: from out-175.mta0.migadu.com ([91.218.175.175]:41763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ry1Wy-0000kV-7L for 68498@debbugs.gnu.org; Fri, 19 Apr 2024 23:36:50 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpfr.net; s=key1; t=1713584187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uZGQNeHs1Pof1ep1W1zhkRhJoU8pxYwVARdFZB8IIY0=; b=fpwO9u0qQE4H9jvD5dXGbC+CnSWBUw3h6HmiLZ3MkUWs73YMQAHbvs1He4AL6dOmANcSZ0 fs9pcJ3Y3q1fQhYcG+r5zSRmYZpwglNVz5t1n8VgXAtfD9yp6QDG+J2PhQmskKYH2qJNI2 bxUuKlSUB5cPKq0rr9ppCcUwHUfdT72hrpoIc5Jk+3K/kithCaYdXBYk795Fap1VWCOVDy 3TrAmZQy1eV5szzRNfSYHQdn7ykMiHmabwXH3Ve5RNW4tqCBGWSvXUTkNkKOj2ECNiOlbD BziBXw6t+iKXDvHC/wDF1A3eMT8OmxJlmbTDst4s62JBQuEC8kvkHbWBm+EhBA== In-Reply-To: <87plw2dh0w.fsf@gmail.com> 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> Date: Fri, 19 Apr 2024 22:36:22 -0500 Message-ID: <87o7a43du1.fsf@hpfr.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Mailman-Approved-At: Sat, 20 Apr 2024 03:02:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sat, 20 Apr 2024 08:41:46 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Liam Hupfer X-ACL-Warn: , Liam Hupfer via Guix-patches From: Liam Hupfer via Guix-patches via 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: -2.88 X-Spam-Score: -2.88 X-Migadu-Queue-Id: 1BACE11C48 X-Migadu-Scanner: mx13.migadu.com X-TUID: mFUYlWQuy1Uk --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, I=E2=80=99m new to Guix and ran into the load path issue on foreign distros. Maxim Cournoyer writes: > Ludovic Court=C3=A8s writes: > >> Janneke Nieuwenhuizen skribis: >> >>> I=E2=80=99m still somewhat puzzled about why setting GUILE_LOAD[_COMPIL= ED]_PATH >>> would be a bad idea, but unless someone else decides to chimes some time >>> soon in I guess we can close this bug. >> >> It=E2=80=99s not too bad, but (1) it could break the user=E2=80=99s setu= p (for instance >> if they=E2=80=99ve installed some incompatible Guile versions via the ho= st >> distro and all of a sudden Guile 3.0.9 modules show up in the search >> path), and (2) one could just as well consider special-casing =E2=80=98C= PATH=E2=80=99 or >> =E2=80=98GUIX_PYTHONPATH=E2=80=99. I tend to agree. We should avoid adding to the global environment in a default Guix installation as much as possible. > About 2), exposing CPATH or GUIX_PYTHONPATH doesn=E2=80=99t make sense as= we > aren=E2=80=99t shipping C or Python libraries while we do ship a Guile AP= I :-). Agreed, but GUILE_LOAD{,_COMPILED}_PATH are set appropriately when guix and guile are installed in a profile. IMO we should keep the global environment clean and encourage installing guix in a profile (or exporting the Guile variables on a per-project basis via something like direnv) for users who want to hack on Guix configs. >> So I think we can close, but again, if I misunderstood how the status >> quo is a hindrance, I=E2=80=99m open to this change or any other solutio= n. > > I don=E2=80=99t 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. I agree that this inconsistency isn=E2=80=99t great. I=E2=80=99m starting t= o use Guix on a foreign distro (NixOS) and the Guix docs gave me pointers to Geiser, but new Guix users who are also new to Guile just find themselves with a lot of cryptic errors when hacking on their Guix configuration until they figure out they need to add the Guix modules to the Guile load paths. That=E2=80=99s what led me to this bug. For what it=E2=80=99s worth,= I think the latter approach is better=E2=80=94the default Guix System environment shoul= d be as tidy as possible. Looks like the patch was applied, but I would advocate for just documenting this better in =E2=80=9CThe Perfect Setup=E2=80=9D and other re= lated sections of the documentation. We can list the lines Janneke added to guix-install.sh there and users can add them to their .profile, project-level .envrc, or whatever they prefer. It=E2=80=99s worth noting as well that more and more distros are providing =E2=80=9Cnative=E2=80=9D Guix packages that may not use guix-install.sh at = all. NixOS does, for instance. Vagrant=E2=80=99s Debian package looks like it tries to= sync [its profile.d script] with the one from guix-install, but if so, it=E2=80= =99s currently outdated and lacks the Guile path variables. So even if we don=E2=80=99t revert the patch (and don=E2=80=99t fix Guix System to not ex= pose the Guix modules), updating the documentation would still be useful to users consuming foreign Guix packages. =E2=80=94Liam [its profile.d script] --=-=-=--