GNU bug report logs - #68498
[PATCH] guix-install.sh: Make Guix modules available too.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Janneke Nieuwenhuizen <janneke@HIDDEN>; Keywords: patch; Done: Janneke Nieuwenhuizen <janneke@HIDDEN>; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 20 Apr 2024 21:28:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 20 17:28:27 2024
Received: from localhost ([127.0.0.1]:38286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ryIG2-0000Dy-Tf
	for submit <at> debbugs.gnu.org; Sat, 20 Apr 2024 17:28:27 -0400
Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:57454)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1ryIG0-0000D3-N5
 for 68498 <at> debbugs.gnu.org; Sat, 20 Apr 2024 17:28:25 -0400
Received: by mail-ot1-x330.google.com with SMTP id
 46e09a7af769-6ea0db2727bso1800960a34.2
 for <68498 <at> debbugs.gnu.org>; Sat, 20 Apr 2024 14:28:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1713648484; x=1714253284; 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=cdgcLkYSr/lkW7K692nAUAUEP5FPT09KVJ6NJoDdljs=;
 b=cWcAkoqG8jzTxlFRFh+Ic6lsFkdQrOTAVvClsO8tuGFt2vN6IQcl4h574EFTssw2L0
 6rfuTOr001jlEmVU3LMDrArpdDBxrKpx+saXGvUATRliXyThO808T3yDyHomkV7yvhfz
 Xwdjj5NIxAz2TO9eOyKU8/f0FLBcOZZoM6EqUPX9DeOzAWiAyTAhlYt63qR/dsaCgUwt
 d6avAI9YS2VlA+If+JnVIKIrw4q+Sv6zUdoi7cc6OOzQ7fiQgSUNyA5LSFLm0ij2tL6/
 YFH2vex5caPXmXiz8ztEh8xx4MygYjkQkeAMshSjwjcjP6eKVKnOWzxaEEdii4FdLMVX
 55Ew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1713648484; x=1714253284;
 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=cdgcLkYSr/lkW7K692nAUAUEP5FPT09KVJ6NJoDdljs=;
 b=n0C6MvFWYUYZSwQvnknzKncfnXEGrKdvTO+inZQFFFA13XtZDXCnfLJ4BEjNZi5M4C
 of6wHw5F9yEJPRsk6Wm64ZIyy3X1wWJlyzjdyFT3Wg1ghj2Dwg0xWdu+1EsmMVpLoVRn
 P+WTb2BDi1bYZQyuSUbFupFBofjLYRfpkIDy0JK1x4oBYNdou0ciupRT7j/Uq40LeYlX
 LVBqIF6sBUi64j+7924ihJTz15n9hrJwGCDpRdMi8vxwN8FIsaSBlNrC3Zh+NZgsLNtY
 HxqKt6twq4/xMtohq1lDIcH/UnhOm3U4dEvOP4E/kJc8LvQtQV+MTF96awKeRdW2pWYv
 bE7g==
X-Forwarded-Encrypted: i=1;
 AJvYcCVJscbgpvJR7lVq9ElzUxdEMy7Zi/4eZHGr0r6NXY9J+ZyFTg77wCpA7SMsUyAo+2GCUaEwBDVD2XRP3CJfBnPu6Ihp4Gk=
X-Gm-Message-State: AOJu0Yzqzw0EtQfQcGZwGH7YRaVof27VTsdlqabzTqnkBU0HxtIZXjFE
 zROEf5I4k8FBdd2UHoaxCZXET8hlXpF871CNt0iXdeFS7zzr0l7d
X-Google-Smtp-Source: AGHT+IExJBGaWPoGxi89cOYcTaVlcbQ2PtWz+3t8GeoyUH/BXxEHG2sik1uiQ+/2+o7JZc99QF3arw==
X-Received: by 2002:a05:6359:5088:b0:184:c1b:4136 with SMTP id
 on8-20020a056359508800b001840c1b4136mr7315112rwb.6.1713648483829; 
 Sat, 20 Apr 2024 14:28:03 -0700 (PDT)
Received: from hurd (dsl-10-134-76.b2b2c.ca. [72.10.134.76])
 by smtp.gmail.com with ESMTPSA id
 n1-20020a0c8c01000000b006a03f4d27b4sm1936144qvb.9.2024.04.20.14.28.03
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 20 Apr 2024 14:28:03 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Liam Hupfer <liam@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87o7a43du1.fsf@HIDDEN> (Liam Hupfer's message of "Fri, 19 Apr
 2024 22:36:22 -0500")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN> <87plw2dh0w.fsf@HIDDEN>
 <87o7a43du1.fsf@HIDDEN>
Date: Sat, 20 Apr 2024 17:28:02 -0400
Message-ID: <87il0biv19.fsf@HIDDEN>
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-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 68498
Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 68498 <at> debbugs.gnu.org,
 Janneke Nieuwenhuizen <janneke@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Liam,

Liam Hupfer <liam@HIDDEN> writes:

> Hi all,
>
> I=E2=80=99m new to Guix and ran into the load path issue on foreign distr=
os.
>
> Maxim Cournoyer <maxim.cournoyer@HIDDEN> writes:
>
>> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
>>
>>> Janneke Nieuwenhuizen <janneke@HIDDEN> skribis:
>>>
>>>> I=E2=80=99m still somewhat puzzled about why setting GUILE_LOAD[_COMPI=
LED]_PATH
>>>> would be a bad idea, but unless someone else decides to chimes some ti=
me
>>>> 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 set=
up (for instance
>>> if they=E2=80=99ve installed some incompatible Guile versions via the h=
ost
>>> 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=98=
CPATH=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 a=
s we
>> aren=E2=80=99t shipping C or Python libraries while we do ship a Guile A=
PI :-).
>
> 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 "installed by default" in the system profile or in
your user profile; it'd make sense to expose its matching library (Guile
modules) to me.  Note that the workaround of installing 'guix'
explicitly with 'guix install guix' will cause your guix to downgrade
itself on every 'guix pull', making it a non-solution.

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:

--8<---------------cut here---------------start------------->8---
# Arrange so that ~/.config/guix/current comes first.
for profile in \"$HOME/.guix-profile\" \"$HOME/.config/guix/current\"
do
  if [ -f \"$profile/etc/profile\" ]
  then
    # Load the user profile's settings.
    GUIX_PROFILE=3D\"$profile\" ; \\
    . \"$profile/etc/profile\"
  else
    # At least define this one so that basic things just work
    # when the user installs their first package.
    export PATH=3D\"$profile/bin:$PATH\"
  fi
done
--8<---------------cut here---------------end--------------->8---

We'd have to come up with an equivalent for guix-install.sh; I think it
could go to the /etc/profile.d/guix.sh file we create.

On top of that, we'd have to review the guix-daemon-service-type and
modify it so that it no longer propagates a 'guix' package to the system
profile.

Does that sound like a good way forward?

--=20
Thanks,
Maxim




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 20 Apr 2024 07:02:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 20 03:02:38 2024
Received: from localhost ([127.0.0.1]:34695 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ry4k7-0000SE-MT
	for submit <at> 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 <liam@HIDDEN>) id 1ry1Wy-0000kV-7L
 for 68498 <at> debbugs.gnu.org; Fri, 19 Apr 2024 23:36:50 -0400
X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN 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==
From: Liam Hupfer <liam@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>, Ludovic =?utf-8?Q?Court?=
 =?utf-8?Q?=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87plw2dh0w.fsf@HIDDEN>
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN> <87r0i0qt96.fsf@HIDDEN>
 <878r48z76a.fsf@HIDDEN> <87h6iwnmzr.fsf@HIDDEN>
 <87plw2dh0w.fsf@HIDDEN>
Date: Fri, 19 Apr 2024 22:36:22 -0500
Message-ID: <87o7a43du1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Migadu-Flow: FLOW_OUT
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 68498
X-Mailman-Approved-At: Sat, 20 Apr 2024 03:02:33 -0400
Cc: 68498 <at> debbugs.gnu.org, Janneke Nieuwenhuizen <janneke@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
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 <maxim.cournoyer@HIDDEN> writes:

> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
>
>> Janneke Nieuwenhuizen <janneke@HIDDEN> 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] <https://salsa.debian.org/debian/guix/-/blob/b1d0628=
cbedea22f175a463f4c4935d02601bf93/debian/guix.sh>

--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 19 Apr 2024 14:59:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 19 10:59:10 2024
Received: from localhost ([127.0.0.1]:58637 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rxphl-0003Gb-1R
	for submit <at> debbugs.gnu.org; Fri, 19 Apr 2024 10:59:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42060)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1rxphh-0003F4-Vx
 for 68498 <at> debbugs.gnu.org; Fri, 19 Apr 2024 10:59:08 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <janneke@HIDDEN>)
 id 1rxphM-0005zW-HB; Fri, 19 Apr 2024 10:58:45 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=Dlaa+PORnyLlAP3/KW9UtYvIwRlGVrx8TVFFGwHHepg=; b=P69VjJo8CyH3idqCA8cm
 mzitLtOU92BK4JkhiyKR/C49kz13KsyLU8z9LQymvPFDUSlBOy+W3Be5dbet+ZnBVwmJPm697iLVl
 HdxlnEeJPtih+K8JkSy2GxcDeZH5OS5TKf7yHY1lvjcmEdqEtytuZDZHEbLAN2c8H5DFC9MT8wKBz
 vFGiV0S9+r2Sreptx7CCTDUdtaLRbrmyDOtvWL3OZHoJX+Rf9jKUD16L0+1FUxkMVS4DBNcHAFLH7
 j8IUw9nhxIkriIJS1Guz9K1rMu5QOEp2tIYRy8j+aYrCk7Gu3fDnl6kirJxVZcpjL94EwncQFLyKo
 yw6deFsu0iUJ7w==;
From: Janneke Nieuwenhuizen <janneke@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <877cgtmvhj.fsf@HIDDEN> (Maxim Cournoyer's message of "Fri, 19
 Apr 2024 07:40:08 -0400")
Organization: AvatarAcademy.nl
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN> <87plw2dh0w.fsf@HIDDEN>
 <87il0z4wgu.fsf@HIDDEN> <871q7hi6hp.fsf@HIDDEN>
 <87r0f2qyrt.fsf@HIDDEN> <877cgtmvhj.fsf@HIDDEN>
X-Url: http://AvatarAcademy.nl
Date: Fri, 19 Apr 2024 16:58:38 +0200
Message-ID: <87o7a5wg9t.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498
Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>, 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Maxim Cournoyer writes:

Hi Maxim,

> Janneke Nieuwenhuizen <janneke@HIDDEN> writes:
>
>> Janneke Nieuwenhuizen writes:
>>
>> Hello,
>>
>>>> Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:
>>>>
>>>>> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:
[..]

>> 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.

Ah, right.  They're only available to ~/.config/guix/current/bin/guix,
and thus also to its repl.

>> "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?

Maybe I'm confusing things.  Guile will only set its GUILE_*_LOAD_PATHS
if installed in the same profile; I thought the toplevel `guile' we
build in guix is a hack to do just that.  But I'm a bit out of my depth
here.

>> 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.

That would be nice, I think.

> 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?

Good questions, who would know such things? ;)

Greetings,
Janneke

--=20
Janneke Nieuwenhuizen <janneke@HIDDEN>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade=
my.com




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498-done <at> debbugs.gnu.org:


Received: (at 68498-done) by debbugs.gnu.org; 19 Apr 2024 11:40:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 19 07:40:34 2024
Received: from localhost ([127.0.0.1]:58124 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rxmbZ-0004go-41
	for submit <at> debbugs.gnu.org; Fri, 19 Apr 2024 07:40:34 -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 <maxim.cournoyer@HIDDEN>)
 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 <maxim.cournoyer@HIDDEN>
To: Janneke Nieuwenhuizen <janneke@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87r0f2qyrt.fsf@HIDDEN> (Janneke Nieuwenhuizen's message of
 "Thu, 18 Apr 2024 21:03:18 +0200")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN> <87plw2dh0w.fsf@HIDDEN>
 <87il0z4wgu.fsf@HIDDEN> <871q7hi6hp.fsf@HIDDEN>
 <87r0f2qyrt.fsf@HIDDEN>
Date: Fri, 19 Apr 2024 07:40:08 -0400
Message-ID: <877cgtmvhj.fsf@HIDDEN>
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-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 68498-done
Cc: 68498-done <at> debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Janneke,

Janneke Nieuwenhuizen <janneke@HIDDEN> writes:

> Janneke Nieuwenhuizen writes:
>
> Hello,
>
>>> Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:
>>>
>>>> Ludovic Court=C3=A8s <ludo@HIDDEN> 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




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 19 Apr 2024 11:40:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 19 07:40:37 2024
Received: from localhost ([127.0.0.1]:58126 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rxmba-0004hJ-PR
	for submit <at> 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 <maxim.cournoyer@HIDDEN>)
 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 <maxim.cournoyer@HIDDEN>
To: Janneke Nieuwenhuizen <janneke@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87r0f2qyrt.fsf@HIDDEN> (Janneke Nieuwenhuizen's message of
 "Thu, 18 Apr 2024 21:03:18 +0200")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN> <87plw2dh0w.fsf@HIDDEN>
 <87il0z4wgu.fsf@HIDDEN> <871q7hi6hp.fsf@HIDDEN>
 <87r0f2qyrt.fsf@HIDDEN>
Date: Fri, 19 Apr 2024 07:40:08 -0400
Message-ID: <877cgtmvhj.fsf@HIDDEN>
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-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 68498
Cc: 68498-done <at> debbugs.gnu.org, Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>,
 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Janneke,

Janneke Nieuwenhuizen <janneke@HIDDEN> writes:

> Janneke Nieuwenhuizen writes:
>
> Hello,
>
>>> Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:
>>>
>>>> Ludovic Court=C3=A8s <ludo@HIDDEN> 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




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498-done <at> debbugs.gnu.org:


Received: (at 68498-done) by debbugs.gnu.org; 18 Apr 2024 19:03:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 18 15:03:48 2024
Received: from localhost ([127.0.0.1]:54092 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rxX2y-0005Ku-Ce
	for submit <at> debbugs.gnu.org; Thu, 18 Apr 2024 15:03:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49214)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1rxX2v-0005K0-OT
 for 68498-done <at> debbugs.gnu.org; Thu, 18 Apr 2024 15:03:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <janneke@HIDDEN>)
 id 1rxX2Z-0003Cg-Vh; Thu, 18 Apr 2024 15:03:24 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=rJ38ZtKBlddyn8JXdjczzfECckspiybwF88Mtz8hEcg=; b=IsY4FiJE2gsTaymQ8l6D
 V2jCcJ2tkaP1UaT4um0SEDQf5AT0WA9P+N1zD6klU1yw4EqeNLW9osUEwfhXe5vR5XDxq1rK37bOO
 Brcx27LOdaLDwgKh9qdppOeKsvrZXQElf3i+Sd9xqKhJPSZMFpSnpEqZj0A7kElkxPN8A502eQe98
 wNQHQ8r11+6Xp/I35Q/t+pBx/q0rn7Jge7TmpGZz8UhrNgWEBg0bSr1++qyv6/6j2K+BqfnmV86L3
 qV0+GsrzTFhvkNc03ig42TX8D9VG8YKp038xl3uJW2SlHNxKglDSPS43EzuCwI7+EXYSLff4pdSss
 3hhFXO9k6Jg/zw==;
From: Janneke Nieuwenhuizen <janneke@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <871q7hi6hp.fsf@HIDDEN> (Janneke Nieuwenhuizen's message of
 "Sun, 07 Apr 2024 16:37:22 +0200")
Organization: AvatarAcademy.nl
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN> <87plw2dh0w.fsf@HIDDEN>
 <87il0z4wgu.fsf@HIDDEN> <871q7hi6hp.fsf@HIDDEN>
X-Url: http://AvatarAcademy.nl
Date: Thu, 18 Apr 2024 21:03:18 +0200
Message-ID: <87r0f2qyrt.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498-done
Cc: 68498-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Janneke Nieuwenhuizen writes:

Hello,

>> Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:
>>
>>> Ludovic Court=C3=A8s <ludo@HIDDEN> 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 yo=
u 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'.

"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.

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?

Greetings,
Janneke

--=20
Janneke Nieuwenhuizen <janneke@HIDDEN>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade=
my.com




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498-done <at> debbugs.gnu.org:


Received: (at 68498-done) by debbugs.gnu.org; 7 Apr 2024 14:37:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 07 10:37:42 2024
Received: from localhost ([127.0.0.1]:44289 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rtTeQ-0008Tw-6R
	for submit <at> debbugs.gnu.org; Sun, 07 Apr 2024 10:37:42 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:58800)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1rtTeN-0008So-8g
 for 68498-done <at> debbugs.gnu.org; Sun, 07 Apr 2024 10:37:40 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <janneke@HIDDEN>)
 id 1rtTeA-0003nH-Eg; Sun, 07 Apr 2024 10:37:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=ONkbIbbRpKc5t6OKwyDTx1weLSva/867X6xpuW77Plk=; b=CsXYL2Oa+BqVq3JUDECT
 bV9Fgm6fpftO7a5KLVK4rbayvV+tExn6C1BX8/3so1nXXrszoaO+ktNK04fVkYjKm5FhyX8SPvRz0
 wRLyuN03gvb6YLIMiD+7iw/WWidVjqenlKe5nYG7GnA4fEGQqV05eI/F4lpku81ihp7kZQXHdvXW+
 rJNrx4iJC72lpJwzqBOIB7hescY3ZkDf/8yoS3vx3lcus2mLwEIEVZidlYGBcmHG1uK62pUUai+kB
 k/B1E0ugbuXbJ2Hhr/6ym3b23TkyGmOEZq/gaqeRwicwrQ52YWnSfls/4dS4a8C6P52pVUxymZ5Br
 IT66nqYQ5ExBdg==;
From: Janneke Nieuwenhuizen <janneke@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87il0z4wgu.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Tue, 02 Apr 2024 17:26:25 +0200")
Organization: AvatarAcademy.nl
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN> <87plw2dh0w.fsf@HIDDEN>
 <87il0z4wgu.fsf@HIDDEN>
X-Url: http://AvatarAcademy.nl
Date: Sun, 07 Apr 2024 16:37:22 +0200
Message-ID: <871q7hi6hp.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498-done
Cc: 68498-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s writes:

Hi,

> Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:
>
>> Ludovic Court=C3=A8s <ludo@HIDDEN> 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 you=
 think
> this improves user experience, go for it; I don=E2=80=99t want to block t=
his
> 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.

Ludovic convinced me it might adverely affect the UX of the foreign
system, so yeah, I also don't know.

Most users that install Guix on a foreign system might be converting to
Guix and look for more Guix consistancy, or they might.

Let's have the universe tell us what it thinks.  We tried the current
situation and it's not great.

Pushe to master as 78390634d76c0c75c6e93742fa7caec965194641.

Greetings,
Janneke

--=20
Janneke Nieuwenhuizen <janneke@HIDDEN>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade=
my.com




Notification sent to Janneke Nieuwenhuizen <janneke@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Janneke Nieuwenhuizen <janneke@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 2 Apr 2024 15:26:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 02 11:26:42 2024
Received: from localhost ([127.0.0.1]:55000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rrg26-0005cM-3e
	for submit <at> debbugs.gnu.org; Tue, 02 Apr 2024 11:26:42 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55876)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1rrg23-0005b8-33
 for 68498 <at> debbugs.gnu.org; Tue, 02 Apr 2024 11:26:40 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1rrg1t-0006Hl-Gs; Tue, 02 Apr 2024 11:26:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=Ui3LqAuzDm/QytTlICXBAK5WsIpHIJoe+eUfK4PfiAc=; b=AckLDj/oXEaIpoL1/XRa
 smGgM9ZLllR8XLedobg30uqm9K846mTMYK5ncgeuhtNXyIw9aIMqXQYnSfJCxy0o6qK0BrxUaNFWC
 8miEyyBX1vcZupcnRiLCLGGg7i475aFuy8IJPDRrsJD9lPX/1bccSoXVcmI+V/iLo+iS6HNlh68QI
 TuIg1wRzDYy9sIIhDdue44r58RXW08e18RVsLLqxZRHMN8li/+WJqSdPhZlhRWVIjQbFgyWNxqHjr
 OqhDiaDceJ3iI0+H5iBeEPYmKJQdN6RnwNsIoTPjBtCwT5TX8GYeJ05yKUnGZ4uZK1oe+CRn31QFw
 otMbBq80L+9SMg==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87plw2dh0w.fsf@HIDDEN> (Maxim Cournoyer's message of "Sat, 09
 Mar 2024 20:14:55 -0500")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN> <87plw2dh0w.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Quartidi 14 Germinal an 232 de la =?utf-8?Q?R=C3=A9v?=
 =?utf-8?Q?olution=2C?= jour du =?utf-8?Q?H=C3=AAtre?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Tue, 02 Apr 2024 17:26:25 +0200
Message-ID: <87il0z4wgu.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498
Cc: 68498 <at> debbugs.gnu.org, Janneke Nieuwenhuizen <janneke@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Maxim Cournoyer <maxim.cournoyer@HIDDEN> skribis:

> Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

[...]

>>> I'm still somewhat puzzled about why setting GUILE_LOAD[_COMPILED]_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.

[...]

>> 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'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 you t=
hink
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.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 10 Mar 2024 01:16:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 09 20:16:42 2024
Received: from localhost ([127.0.0.1]:35030 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rj7nt-0002dQ-Ir
	for submit <at> debbugs.gnu.org; Sat, 09 Mar 2024 20:16:42 -0500
Received: from mail-qv1-f49.google.com ([209.85.219.49]:61543)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1rj7no-0002d1-EO
 for 68498 <at> debbugs.gnu.org; Sat, 09 Mar 2024 20:16:39 -0500
Received: by mail-qv1-f49.google.com with SMTP id
 6a1803df08f44-690bd329df2so10528586d6.2
 for <68498 <at> debbugs.gnu.org>; Sat, 09 Mar 2024 17:16:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1710033297; x=1710638097; 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=eTNQuLSs+LURmOI3eMFEekkFOry5Lv7187QuHnbu4rA=;
 b=VTZ2PRYbXYeaoKbt8KWsv79h7dZc1iWeJ3GoHpHZX4C92TJlBwIOgkRgVngelw1HMI
 4iWEbSK8g1NCNtZN3oT9Fckff4UwMbFfHtV76j0oo2fucK+TzS1QSFdpVlZSWT8hcV0d
 1znW0w3rQtnVijEOQHooZdsyqCH1vucZrhnvuLsqaSL45jQ5LezNxSV+vNVAAWdOhV/e
 9SzP9IOBMm2HMK2UgKEZpUeos/SZGGQar0hDgh/MRBAX8ggAlkKxj2C7q/d+xLRp47XE
 Fopx9iZWdpV1j/3ZlzcvTv7sCsre0+cpq+8zOA3nOG6n2VKIQk8Cf4VgYZgnyp4yOAO2
 0mJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1710033297; x=1710638097;
 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=eTNQuLSs+LURmOI3eMFEekkFOry5Lv7187QuHnbu4rA=;
 b=faYGLjSYyKttECsxqILyF34ZYKTs6VC2w9rYokWhSgmHoMZDthDDo3B/sUo+AwhqOM
 QZ0a0nhUqRn7KO/THRc/neJ9/AIjIxVJnD/lvzuZbKalBb6GhS3Vk0NWfYb/UKMcohSs
 czNaQhKJOKebb6lBPAltwsHmpV7QYkfifAaLmbUKGUK1x6uyBgs+s/44ZZ32R2Ljcm+1
 Igzi91SasK/rSiNMPAZgKcUPXtzV3MIPkVBMqgGMpZdzuOcgIqIviHq5nnZg8geOenm9
 5JQj+bHg6rW+fkYr+kXLUeFWTYQNHVB97633KHF4ChHT9sQNmugqmZ30MUSpcwAHytG6
 J9rA==
X-Forwarded-Encrypted: i=1;
 AJvYcCXe8fc5vJryFLwsNI8Gxdp+eOnCYqcW3fZ26zaU4dot3o2zalel7GEpoDW7iT0EhDXkj5gzSOi54b5hgAnvQQowvPICRSA=
X-Gm-Message-State: AOJu0YzUdPD65q1d+9N3EpZwAC/H2jDnqSFPKRWRPOSuPckp9rOeQILv
 yqhNFbvQYUaV6mze7+DWUTQNBzwJ+KJIrviOiu8pcKzFlyCmzzS+ccZcAZcSf7TQ9A==
X-Google-Smtp-Source: AGHT+IEwEe5GzzUUfbmH/OWovBOp877z4M8j7wFQE9wCmc0f9ntcHbMbrafeSnVLFxv2VTIjWqyH9Q==
X-Received: by 2002:a05:620a:5587:b0:788:3c4e:b84f with SMTP id
 vq7-20020a05620a558700b007883c4eb84fmr3709157qkn.35.1710033297419; 
 Sat, 09 Mar 2024 17:14:57 -0800 (PST)
Received: from hurd (dsl-150-134.b2b2c.ca. [66.158.150.134])
 by smtp.gmail.com with ESMTPSA id
 i19-20020ae9ee13000000b00788242166dbsm1370340qkg.133.2024.03.09.17.14.56
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 09 Mar 2024 17:14:56 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87h6iwnmzr.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Mon, 29 Jan 2024 17:05:44 +0100")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
 <87h6iwnmzr.fsf@HIDDEN>
Date: Sat, 09 Mar 2024 20:14:55 -0500
Message-ID: <87plw2dh0w.fsf@HIDDEN>
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-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 68498
Cc: 68498 <at> debbugs.gnu.org, Janneke Nieuwenhuizen <janneke@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Ludo,

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

> Janneke Nieuwenhuizen <janneke@HIDDEN> skribis:
>
>>> Packages that extend Guix functionality, like Cuirass and hpcguix-web,
>>> have =E2=80=98guix=E2=80=99 in their inputs.  That=E2=80=99s fine: they=
 use just the core (guix =E2=80=A6)
>>> modules to interact with the store etc.
>>>
>>> Is that what the kind of use case you had in mind?
>>
>> Yes.  I always believed this was a big no-no, but adding guix to the
>> packages' inputs in guix.scm would also work.
>
> Yes, and it=E2=80=99s even unavoidable for software that depends on (guix=
 =E2=80=A6)
> modules.
>
>> I'm still somewhat puzzled about why setting GUILE_LOAD[_COMPILED]_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 setup=
 (for instance
> if they=E2=80=99ve installed some incompatible Guile versions via the host
> 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=98CP=
ATH=E2=80=99 or
> =E2=80=98GUIX_PYTHONPATH=E2=80=99.

It wouldn't break the user setup; it'd just means perhaps the
Guix-provided modules wouldn't work with their Guile version, right?

The thing is that on Guix System, guix modules happen to be readily
available, because the guix-daemon pulls Guix in the system profile,
IIUC.  That they are not on a foreign system is confusing and can lead
to problems (I got bit by that while adding support for Guix in Guile
Hall [0]).

About 2), exposing CPATH or GUIX_PYTHONPATH doesn't make sense as we
aren't shipping C or Python libraries while we do ship a Guile API :-).

[0]  https://gitlab.com/a-sassmannshausen/guile-hall/-/issues/85#note_17699=
42699

> 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 solution.

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?

--=20
Thanks,
Maxim




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 29 Jan 2024 16:06:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 11:06:03 2024
Received: from localhost ([127.0.0.1]:33278 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUU95-0002pY-Ea
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 11:06:03 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:42434)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1rUU93-0002p0-Lt
 for 68498 <at> debbugs.gnu.org; Mon, 29 Jan 2024 11:06:02 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1rUU8p-0001bu-RB; Mon, 29 Jan 2024 11:05:47 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=tT9ZJi+sBO/0xgZ6SbtMH0x9PVHPjOnkX3YVelka7R4=; b=d7lyzLLRYHJmPOpADfmF
 ecAeoCcaEOuGG6XdNHwod9R3EYqVt7Tborhmhf5ldlXv1pAtPm4QzHOk127+as9Wh92rl3HlpVHEl
 wu46TitNyIkBfJgRsW4gVGHv8i5tYGm2RmGf70udsjB8raQDDZUEmD4jT+mq1K7lJxQwho5yh7iRa
 8B2fnqyWjgT7DHpBjpWGyRipZRBuDnQJAfq/FlJt+hPQUWd/fgpRaxlO/lznaTOFP2s0k/VWqp9jd
 5MOssCd0hPyxgbn0h/A/EQYC3nJ6Iq1NPa9S3oo3jfKSiE4INyW22Pr/ULwKXG0/jWjjvXaffkOPR
 7pkLRW+1sViVzg==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Janneke Nieuwenhuizen <janneke@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <878r48z76a.fsf@HIDDEN> (Janneke Nieuwenhuizen's message of
 "Mon, 29 Jan 2024 12:54:21 +0100")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN> <878r48z76a.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 10 =?utf-8?Q?Pluvi=C3=B4se?=
 an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la
 =?utf-8?Q?Cogn=C3=A9e?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 29 Jan 2024 17:05:44 +0100
Message-ID: <87h6iwnmzr.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498
Cc: 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Janneke Nieuwenhuizen <janneke@HIDDEN> skribis:

>> Packages that extend Guix functionality, like Cuirass and hpcguix-web,
>> have =E2=80=98guix=E2=80=99 in their inputs.  That=E2=80=99s fine: they =
use just the core (guix =E2=80=A6)
>> modules to interact with the store etc.
>>
>> Is that what the kind of use case you had in mind?
>
> Yes.  I always believed this was a big no-no, but adding guix to the
> packages' inputs in guix.scm would also work.

Yes, and it=E2=80=99s even unavoidable for software that depends on (guix =
=E2=80=A6)
modules.

> I'm still somewhat puzzled about why setting GUILE_LOAD[_COMPILED]_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 setup (=
for instance
if they=E2=80=99ve installed some incompatible Guile versions via the host
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=98CPAT=
H=E2=80=99 or
=E2=80=98GUIX_PYTHONPATH=E2=80=99.

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 solution.

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 29 Jan 2024 11:54:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 06:54:43 2024
Received: from localhost ([127.0.0.1]:59179 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUQDr-0003xh-6Q
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 06:54:43 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48916)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1rUQDo-0003xR-JL
 for 68498 <at> debbugs.gnu.org; Mon, 29 Jan 2024 06:54:41 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <janneke@HIDDEN>)
 id 1rUQDZ-0005y9-GX; Mon, 29 Jan 2024 06:54:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=GJ1hh4K90Q/GCfbbLh9h4u2KmRkhCOWoz2G8Phq05Lw=; b=D1mrffti8gGDL+hgIV6P
 L/QTzQVfoaAnlKB0QCk9jfH7VM1h2Gy/YeasyrfIGiLsCOexxdByeW6VhhB3M2/rieNZxLUk4tb8+
 f/lq2KEicN/gKhrHwSEhSMYDS6mGEWuC47nKH9Azy4kejYaYhXgI+Pp0NdCPQwXebuGZleSsdb0bJ
 kljNIOAEuZhWbhMrWQxp/eTmlSyXWuk0AkfGuwvE34ShtFyqdgEB//2BMPjT4eD/gf85FJE8iHR+G
 E8w16vXmd9eNIOLkv18NL77ONFCk74sWZIpZ+6twb0nlRv9rC/mb/pFgFN/OhsQ6mMs6spKZ8ldJ8
 IQlrCeumwmp/VA==;
From: Janneke Nieuwenhuizen <janneke@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87r0i0qt96.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Mon, 29 Jan 2024 12:22:13 +0100")
Organization: AvatarAcademy.nl
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
 <87r0i0qt96.fsf@HIDDEN>
X-Url: http://AvatarAcademy.nl
Date: Mon, 29 Jan 2024 12:54:21 +0100
Message-ID: <878r48z76a.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498
Cc: 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s writes:

Hello,

> Janneke Nieuwenhuizen <janneke@HIDDEN> skribis:
>
>>>> +# Make Guix modules available
>>>> +export
>>>> GUILE_LOAD_PATH=3D"$_GUIX_PROFILE/share/guile/site/3.0${GUILE_LOAD_PAT=
H:+:}$GUILE_LOAD_PATH"
>>>> +export
>>>> GUILE_LOAD_COMPILED_PATH=3D"$_GUIX_PROFILE/lib/guile/3.0/site-ccache${=
GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
>>>
>>> My inclination would be to let people just use =E2=80=98guix repl=E2=80=
=99, but maybe
>>> that=E2=80=99s not satisfactory or convenient?  WDYT?
>>
>> The intention is to have the foreign distro experience resemble Guix
>> System more, esp. for newbee users.  If you have a code base that uses
>> Guix modules and comes with a guix.scm, running "guix shell" doesn't
>> work for them.  Unless, maybe, you add "guix" to the package's
>> native-inputs -- yuck.
>
> Packages that extend Guix functionality, like Cuirass and hpcguix-web,
> have =E2=80=98guix=E2=80=99 in their inputs.  That=E2=80=99s fine: they u=
se just the core (guix =E2=80=A6)
> modules to interact with the store etc.
>
> Is that what the kind of use case you had in mind?

Yes.  I always believed this was a big no-no, but adding guix to the
packages' inputs in guix.scm would also work.

>> They'd have to probably do something guix time-machine --channel=3Dxxx to
>> get access to guix modules.  That, or source a script that set the
>> environment variables, which is what we let them do currently.  I was
>> guessing "everyone" is probably fighting with this, so finally decided
>> to upstream it :)
>>
>> If there's a better/easier solution for this, I'm all ears!
>
> I don=E2=80=99t think one needs =E2=80=98guix time-machine=E2=80=99; =E2=
=80=98guix repl=E2=80=99 is enough to
> get access to Guix modules.

Yeah, but as stated above, it was to setup a (configure) shell, so...

I'm still somewhat puzzled about why setting GUILE_LOAD[_COMPILED]_PATH
would be a bad idea, but unless someone else decides to chimes some time
soon in I guess we can close this bug.

Greetings,
Janneke

--=20
Janneke Nieuwenhuizen <janneke@HIDDEN>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade=
my.com




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 29 Jan 2024 11:22:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 29 06:22:31 2024
Received: from localhost ([127.0.0.1]:59146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rUPih-0002pb-C8
	for submit <at> debbugs.gnu.org; Mon, 29 Jan 2024 06:22:31 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48968)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1rUPif-0002pN-GA
 for 68498 <at> debbugs.gnu.org; Mon, 29 Jan 2024 06:22:30 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1rUPiR-0007TY-OS; Mon, 29 Jan 2024 06:22:15 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=vhBw1CyHxakydtH/jPoFA2+oPmz9ocCtWVLT6bM0tJ0=; b=hfvRUmOz8rQvrOl1E7/G
 ffDhuG56wt5fCSd4eV7Qjur87YYUS412/xaZtvLJalRgLMw3d6Nyy+Uza6SCkV0EFK5WRbDWyEGrX
 xox2Nfnb9I/lbnhxsGxocdM52MWE6K9ffGhv6qtlof8QhKbHSmPEILTRg87QQ9NJ/krDV4GMxRggH
 IrayGCzzYrPvAvO/L+MmdHMN0jCaVZMH74GQ8vJ9WyM5NQPJzq3bQ8CQGcOwLsg0q6fVWv+6AFt2y
 psD3ZfaecG5e90OR7xm2xHK9FeVTuOr+AJs2QG5JB1NFpWYbbW7ztXp5s7fcoWsp+5ySjOHp0obXQ
 NFJx8jdIgkVYHA==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Janneke Nieuwenhuizen <janneke@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <87wmrxc06e.fsf@HIDDEN> (Janneke Nieuwenhuizen's message of
 "Thu, 25 Jan 2024 09:00:25 +0100")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN> <87wmrxc06e.fsf@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: =?utf-8?Q?D=C3=A9cadi?= 10 =?utf-8?Q?Pluvi=C3=B4se?=
 an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la
 =?utf-8?Q?Cogn=C3=A9e?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Mon, 29 Jan 2024 12:22:13 +0100
Message-ID: <87r0i0qt96.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498
Cc: 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Janneke Nieuwenhuizen <janneke@HIDDEN> skribis:

>>> +# Make Guix modules available
>>> +export GUILE_LOAD_PATH=3D"$_GUIX_PROFILE/share/guile/site/3.0${GUILE_L=
OAD_PATH:+:}$GUILE_LOAD_PATH"
>>> +export GUILE_LOAD_COMPILED_PATH=3D"$_GUIX_PROFILE/lib/guile/3.0/site-c=
cache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
>>
>> My inclination would be to let people just use =E2=80=98guix repl=E2=80=
=99, but maybe
>> that=E2=80=99s not satisfactory or convenient?  WDYT?
>
> The intention is to have the foreign distro experience resemble Guix
> System more, esp. for newbee users.  If you have a code base that uses
> Guix modules and comes with a guix.scm, running "guix shell" doesn't
> work for them.  Unless, maybe, you add "guix" to the package's
> native-inputs -- yuck.

Packages that extend Guix functionality, like Cuirass and hpcguix-web,
have =E2=80=98guix=E2=80=99 in their inputs.  That=E2=80=99s fine: they use=
 just the core (guix =E2=80=A6)
modules to interact with the store etc.

Is that what the kind of use case you had in mind?

> They'd have to probably do something guix time-machine --channel=3Dxxx to
> get access to guix modules.  That, or source a script that set the
> environment variables, which is what we let them do currently.  I was
> guessing "everyone" is probably fighting with this, so finally decided
> to upstream it :)
>
> If there's a better/easier solution for this, I'm all ears!

I don=E2=80=99t think one needs =E2=80=98guix time-machine=E2=80=99; =E2=80=
=98guix repl=E2=80=99 is enough to
get access to Guix modules.

But maybe I=E2=80=99m missing something?

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 25 Jan 2024 08:00:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 25 03:00:50 2024
Received: from localhost ([127.0.0.1]:47237 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rSufK-0004af-0y
	for submit <at> debbugs.gnu.org; Thu, 25 Jan 2024 03:00:50 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:54224)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1rSufG-0004JI-U3
 for 68498 <at> debbugs.gnu.org; Thu, 25 Jan 2024 03:00:48 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <janneke@HIDDEN>)
 id 1rSuf4-0006zC-8g; Thu, 25 Jan 2024 03:00:34 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=QUuG3eDCLZBfo5sR4ernVLe+nd81+k6pSF5RjzH7xOs=; b=DbFhf8roHlm4+elqCTki
 lklA/qOmTo8aUdDDpkROfYcxD9NjidfugAu2wNJRi7Qz6KJQaj9EdLG/2ZSiv9E8+H/tRD8LVsjUa
 xdoflavmhIPl4XPEvxw0hk5lK3HCE4/1jLpLC7PcC9J+mDRtQRFRG5wPrHpFj+7KzZlEMa3lXda5L
 v0STGbkBbTObPfuhjK5vJiebHfTH14Cv7LQBplJULwrgsFeizWxH4P9Ndjl0CW9KwDJ283dmiRM9a
 /WrYRTHC8cvXezc75HREsjmr22hqwDBjYlb4DC81uypHy7ogTbDjB1x2YgtBjG2Q+/8FBmDnjWSz0
 4KBDNhSz7yD45Q==;
From: Janneke Nieuwenhuizen <janneke@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <877cjys762.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Wed, 24 Jan 2024 23:22:45 +0100")
Organization: AvatarAcademy.nl
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 <877cjys762.fsf@HIDDEN>
X-Url: http://AvatarAcademy.nl
Date: Thu, 25 Jan 2024 09:00:25 +0100
Message-ID: <87wmrxc06e.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498
Cc: 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ludovic Court=C3=A8s writes:

Hi,

> Janneke Nieuwenhuizen <janneke@HIDDEN> skribis:
>
>> * etc/guix-install.sh (GUILE_LOAD_PATH): Prepend directory to current Gu=
ix
>> modules.
>> (GUILE_LOAD_COMPILED_PATH): Likewise to compiled modules.

[..]

>> +# Make Guix modules available
>> +export GUILE_LOAD_PATH=3D"$_GUIX_PROFILE/share/guile/site/3.0${GUILE_LO=
AD_PATH:+:}$GUILE_LOAD_PATH"
>> +export GUILE_LOAD_COMPILED_PATH=3D"$_GUIX_PROFILE/lib/guile/3.0/site-cc=
ache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
>
> My inclination would be to let people just use =E2=80=98guix repl=E2=80=
=99, but maybe
> that=E2=80=99s not satisfactory or convenient?  WDYT?

The intention is to have the foreign distro experience resemble Guix
System more, esp. for newbee users.  If you have a code base that uses
Guix modules and comes with a guix.scm, running "guix shell" doesn't
work for them.  Unless, maybe, you add "guix" to the package's
native-inputs -- yuck.

They'd have to probably do something guix time-machine --channel=3Dxxx to
get access to guix modules.  That, or source a script that set the
environment variables, which is what we let them do currently.  I was
guessing "everyone" is probably fighting with this, so finally decided
to upstream it :)

If there's a better/easier solution for this, I'm all ears!

Greetings,
Janneke

--=20
Janneke Nieuwenhuizen <janneke@HIDDEN>  | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade=
my.com




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at 68498 <at> debbugs.gnu.org:


Received: (at 68498) by debbugs.gnu.org; 24 Jan 2024 22:23:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 24 17:23:02 2024
Received: from localhost ([127.0.0.1]:46818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rSle9-0000QK-E1
	for submit <at> debbugs.gnu.org; Wed, 24 Jan 2024 17:23:01 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:38138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1rSle7-0000Q1-9U
 for 68498 <at> debbugs.gnu.org; Wed, 24 Jan 2024 17:23:00 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1rSldv-0002A1-VH; Wed, 24 Jan 2024 17:22:48 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=YoxJ3cBNRvVrhZ9+eIyrRVhvkY7GeHh7wjP65zdL5k0=; b=IETv5VyQYy19RgqGDWFB
 8pDJg2BL/ty1gyyInV9zSwHnRGtLCK2qsYstDt8+OrTcVm6WMbknO99IJjCTZ26ySDnwuW2rFaMzO
 UcwVUnonlGVTaDkdsT4U3ZjAFzQL2QV//owgVJW69W2QZO0oPzJhDCpWLhSxKETPwurIa63RXZMyP
 poq3HUleAkl3S9Z+ykov/CCv1jF1VrqXqSY8222ETJu9Xlw2neVZBwdocCI12FpiFYciUXYaz/ZLN
 hBdcbTF9mm5hr8xjHyF/k7jsn9Ql4mVi67h7LMjws6/sSBh4qUJ4xntPVRwdE5leYtxYOMfqKF11h
 ZKt+U35a9yVlXw==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Janneke Nieuwenhuizen <janneke@HIDDEN>
Subject: Re: [bug#68498] [PATCH] guix-install.sh: Make Guix modules
 available too.
In-Reply-To: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
 (Janneke Nieuwenhuizen's message of "Tue, 16 Jan 2024 09:27:43 +0100")
References: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
Date: Wed, 24 Jan 2024 23:22:45 +0100
Message-ID: <877cjys762.fsf@HIDDEN>
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-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68498
Cc: 68498 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello!

Janneke Nieuwenhuizen <janneke@HIDDEN> skribis:

> * etc/guix-install.sh (GUILE_LOAD_PATH): Prepend directory to current Guix
> modules.
> (GUILE_LOAD_COMPILED_PATH): Likewise to compiled modules.
>
> Change-Id: I0b2722a38b1f8ebab32142cbc372a23cadfb0620

[...]

> @@ -557,6 +558,10 @@ GUIX_LOCPATH=3D"$GUIX_PROFILE/lib/locale:${GUIX_LOCP=
ATH:+:}$GUIX_LOCPATH"
>=20=20
>  export GUIX_LOCPATH
>=20=20
> +# Make Guix modules available
> +export GUILE_LOAD_PATH=3D"$_GUIX_PROFILE/share/guile/site/3.0${GUILE_LOA=
D_PATH:+:}$GUILE_LOAD_PATH"
> +export GUILE_LOAD_COMPILED_PATH=3D"$_GUIX_PROFILE/lib/guile/3.0/site-cca=
che${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"

My inclination would be to let people just use =E2=80=98guix repl=E2=80=99,=
 but maybe
that=E2=80=99s not satisfactory or convenient?  WDYT?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Jan 2024 08:28:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 16 03:28:00 2024
Received: from localhost ([127.0.0.1]:47635 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rPenf-0007RR-LD
	for submit <at> debbugs.gnu.org; Tue, 16 Jan 2024 03:27:59 -0500
Received: from lists.gnu.org ([2001:470:142::17]:55238)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <janneke@HIDDEN>) id 1rPenc-0007R9-NY
 for submit <at> debbugs.gnu.org; Tue, 16 Jan 2024 03:27:57 -0500
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 <janneke@HIDDEN>) id 1rPenW-0003eZ-CQ
 for guix-patches@HIDDEN; Tue, 16 Jan 2024 03:27:50 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <janneke@HIDDEN>)
 id 1rPenV-0004mu-9b; Tue, 16 Jan 2024 03:27:49 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=xaYCop43/GujWJ1Zu4cagCrp98HAovLyopGma0Gt8vg=; b=pSq6TQqlNOg7yS
 2a9RXMqELKEOw0YqKFrDs3VJvAMU4lAaY0jvjgEx7ZL6AV+8RdDUu5LXQta4eQ+hmDqvwIgw0zG2K
 0eyhJxbNEknPxyVrgPmqLhtbvJs/Zu89AxebNjOZ9e0KxizwCKJhxDiriMvew/QOlGK4gvh07qZCY
 xlS/rap4SRZHPqq28r5N06r6UUSY581JnH7h0Fl8U0gCdEPIdz5LRu7Ccd5/Lr1QHBFmH8E8tz0hB
 P9q0wfBOir3mX/mYP5US3cjrEQSKT71mc/h4/lkk7tVB8ALhkol9ApQ5dopX12PHWIiDCjJshrAKd
 4bxaksUQt2Ttbf7UL/YQ==;
From: Janneke Nieuwenhuizen <janneke@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] guix-install.sh: Make Guix modules available too.
Date: Tue, 16 Jan 2024 09:27:43 +0100
Message-ID: <4a2bb9d98d265b73932a57c9a9bd2fc920e3f035.1705393477.git.janneke@HIDDEN>
X-Mailer: git-send-email 2.41.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* etc/guix-install.sh (GUILE_LOAD_PATH): Prepend directory to current Guix
modules.
(GUILE_LOAD_COMPILED_PATH): Likewise to compiled modules.

Change-Id: I0b2722a38b1f8ebab32142cbc372a23cadfb0620
---
 etc/guix-install.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 982fb0a266..a0bb3a556b 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -12,6 +12,7 @@
 # Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
 # Copyright © 2022 Prafulla Giri <prafulla.giri@HIDDEN>
 # Copyright © 2023 Andrew Tropin <andrew@HIDDEN>
+# Copyright © 2024 Janneke Nieuwenhuizen <janneke@HIDDEN>
 #
 # This file is part of GNU Guix.
 #
@@ -557,6 +558,10 @@ GUIX_LOCPATH="$GUIX_PROFILE/lib/locale:${GUIX_LOCPATH:+:}$GUIX_LOCPATH"
 
 export GUIX_LOCPATH
 
+# Make Guix modules available
+export GUILE_LOAD_PATH="$_GUIX_PROFILE/share/guile/site/3.0${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
+export GUILE_LOAD_COMPILED_PATH="$_GUIX_PROFILE/lib/guile/3.0/site-ccache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
+
 EOF
 }
 

base-commit: 21f5d20d68e0359f8111ccb936905649c70db9c1
-- 
2.41.0





Acknowledgement sent to Janneke Nieuwenhuizen <janneke@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#68498; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Apr 2024 21:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.