From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 6PiRI+OuJGZgKwEA62LTzQ:P1 (envelope-from ) for ; Sun, 21 Apr 2024 08:14:59 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6PiRI+OuJGZgKwEA62LTzQ (envelope-from ) for ; Sun, 21 Apr 2024 08:14:59 +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=M+Pthyv4; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713680099; 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=VfCM0xPSNcPV3hUUqietHA4wjEhHzXNknQkxKW/5E08=; b=UkxNehzapA1vDinqQmmyMRxOtJATABNc3C5dKX3S/AGsCtyWFbug7Q1NlqBXmghjPyHNFu s1x8SuSdvKiMIGWA7K766ka1UgZaeMdQbaLs+0anLF87wBEkc0+OmI8oylFupYySWM7PTS 5C6Ta8Sm/CHLy8YburUmzL1Fs8MEg54wpjDYgH45OnQAGNlmokbhLGcNJTzqIQZZyWktZ5 uOxEEpzUrRPFwLeVcNSi6qoEb/64VLjyZum1kt2ysW4ChYozrzPV4/UraDeoYoMnX5oc5C nLCQNYfbn8hPNLLNhMhc7GhroooSTAMgZh23TwXc7GoXv73iIZqVtEwLlzffHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hpfr.net header.s=key1 header.b=M+Pthyv4; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713680099; a=rsa-sha256; cv=none; b=AecD2CcCjNNbEYmSF8+T5QE2wLelFTIFC/PE9HkH8pu6h2WihEWhC/EUzIUBq1qf+3gGEl oYdOXuwajnBpFA0P+j+YktXnP7jwFBH7MHufGmRz8fE9dTZES7bOWYbfwr7hFQIXv9Qhrm T9Gxj6oK0p2dltAdRj7OMyriRVrhM3DjqFRexqVyiiB/UNUpIN9XljeHxJ3yi+TPeehdxp Sg6rKzjd/qVg3218nox6VTWN/MO8xuwP0yAbwC1XDzVqSH/Muhl10xvxxD3BLPP6oC/ey2 tS1fP736Vd9HK3CcaXuF3kASjmtynDjXLalafeAUl/Cp9+a5dWUiQ9AGhDLnwg== 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 D251DA6F6 for ; Sun, 21 Apr 2024 08:14:58 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryQTS-0005dn-0C; Sun, 21 Apr 2024 02:14:50 -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 1ryQTQ-0005dH-Qh for guix-patches@gnu.org; Sun, 21 Apr 2024 02:14: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 1ryQTQ-0007j1-Ht for guix-patches@gnu.org; Sun, 21 Apr 2024 02:14:48 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryQTf-00040w-Kw for guix-patches@gnu.org; Sun, 21 Apr 2024 02:15: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: Sun, 21 Apr 2024 06:15: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 Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 68498@debbugs.gnu.org, Janneke Nieuwenhuizen Received: via spool by 68498-submit@debbugs.gnu.org id=B68498.171368004714995 (code B ref 68498); Sun, 21 Apr 2024 06:15:03 +0000 Received: (at 68498) by debbugs.gnu.org; 21 Apr 2024 06:14:07 +0000 Received: from localhost ([127.0.0.1]:40874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryQSh-0003tK-RV for submit@debbugs.gnu.org; Sun, 21 Apr 2024 02:14:06 -0400 Received: from out-175.mta0.migadu.com ([91.218.175.175]:20411) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryMcP-0003Q5-HY for 68498@debbugs.gnu.org; Sat, 20 Apr 2024 22:07: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=1713665248; 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=VfCM0xPSNcPV3hUUqietHA4wjEhHzXNknQkxKW/5E08=; b=M+Pthyv4+/w2yRvn3bY/4Xo/2IHpqOKLbMFOCwOsn8cp/WqryyB+vW+otfPMjPCodU7SIV PF15d3Pgzd5wbuRbE7Y8GPFAZuqvhsMQSU5M7xnbMNsiFc8L0898SbOP4PpLFYtClVuqde pH5Ui81RUB1CzRyv1CXOF07oE0VJiTemPS/lPJQ0AOrL0VK0aHVwZnmR8Cy2kZftO8QpIA 44uuHt6FcTv7tbzuvh/tzYPdaYREhEfi1ZUeDRSlyiGuyjoBMlWujTowTPcRS4Aa3/VxrH 3lMe2Bh1Edddr0SfgPUkI2QMhKdPCRi415xsS1ufbwNUhB77O6+yCIuGkwXxgA== In-Reply-To: <87il0biv19.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> <87o7a43du1.fsf@hpfr.net> <87il0biv19.fsf@gmail.com> Date: Sat, 20 Apr 2024 21:07:22 -0500 Message-ID: <875xwb31ut.fsf@hpfr.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Mailman-Approved-At: Sun, 21 Apr 2024 02:13:58 -0400 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: , 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.38 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -4.38 X-Migadu-Queue-Id: D251DA6F6 X-TUID: x2GYi1NTBWQ5 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Maxim Cournoyer writes: > Liam Hupfer writes: > >> Maxim Cournoyer writes: >>> 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 = API :-). >> >> 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. > > Guix is essentially =E2=80=9Cinstalled by default=E2=80=9D in the system = profile or in > your user profile; it=E2=80=99d make sense to expose its matching library= (Guile > modules) to me. I see where you=E2=80=99re coming from, but I guess in my mind the Guile mo= dules could be considered a =E2=80=9Cdeveloper interface=E2=80=9D that needn=E2= =80=99t be globally exposed to all users. Of course it probably makes sense for the overwhelming majority of Guix users today, but I=E2=80=99m thinking more theoretically, e.g. a sysadmin providing a Linux server to multiple unprivileged users who don=E2=80=99t need to know or care what distribution= is running. For those users, these variables are just clutter, extra `printenv' noise. > Note that the workaround of installing =E2=80=99guix=E2=80=99 explicitly = with =E2=80=99guix > install guix=E2=80=99 will cause your guix to downgrade itself on every = =E2=80=99guix > pull=E2=80=99, making it a non-solution. Good point. > Thanks for sharing your input. It looks like on Guix System we could > extend the /etc/profile skeleton in (gnu system) to extend the > GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH with the entries from the > user and guix current profiles, around this bit: > We=E2=80=99d have to come up with an equivalent for guix-install.sh; I th= ink > it could go to the /etc/profile.d/guix.sh file we create. > > On top of that, we=E2=80=99d have to review the guix-daemon-service-type = and > modify it so that it no longer propagates a =E2=80=99guix=E2=80=99 packag= e to the > system profile. > > Does that sound like a good way forward? That sounds like an improvement over the current situation, though I=E2=80= =99m still not fond of defining these at the session level, even with prepending the user-level `~/.config/guix/current' to ensure things work after `guix pull'. I would rather just mention this approach in the documentation. Regardless, I suppose they=E2=80=99re easy enough to unset v= ia `.profile'. As much as I prefer my hermetic environment, it=E2=80=99s proba= bly more practical to set them to avoid bug reports from users who didn=E2=80= =99t make it through every line of the documentation. =E2=80=94Liam --=-=-=--