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; dated Tue, 16 Jan 2024 08:28:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

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: Thu, 25 Jan 2024 08:00:02 UTC

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