GNU bug report logs - #46291
[PATCH] environment: Allow starting from existing profile

Previous Next

Package: guix-patches;

Reported by: Lars-Dominik Braun <lars <at> 6xq.net>

Date: Thu, 4 Feb 2021 10:14:01 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> outlook.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: 宋文武 <iyzsong <at> outlook.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#46291: closed ([PATCH] environment: Allow starting from
 existing profile)
Date: Thu, 11 Feb 2021 10:01:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 11 Feb 2021 18:01:31 +0800
with message-id <OSZP286MB066474D57DC1F59E3D191508A38C9 <at> OSZP286MB0664.JPNP286.PROD.OUTLOOK.COM>
and subject line Re: [bug#46291] [PATCH] environment: Allow starting from existing profile
has caused the debbugs.gnu.org bug report #46291,
regarding [PATCH] environment: Allow starting from existing profile
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
46291: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46291
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Lars-Dominik Braun <lars <at> 6xq.net>
To: guix-patches <at> gnu.org
Subject: [PATCH] environment: Allow starting from existing profile
Date: Thu, 4 Feb 2021 11:13:20 +0100
[Message part 3 (text/plain, inline)]
Hi everyone,

the attched patch allows starting a `guix environment` from an existing
profile. Our use-case is this: We have profiles, created by

	guix package -p /path -i …

because we need to parse desktop files in /path/share/applications. Also
this does the heavy-lifting (substitutes/building/grafting) upfront once
and not when starting an environment. Then we start an application from
this profile using

	guix environment -C […] -p /path -- jupyterlab […]

This is much faster (10x) for large profiles (i.e. JupyterLab) than

	guix environment -C […] -m manifest.scm -- jupyterlab […]

and makes sure the environment is exactly the same as

	source /path/etc/profile

I think there have been many discussions about how `guix environment`
should work and this is certainly not the silver bullet, but it’s a huge
improvement for us with very limited code changes required.

Cheers,
Lars

[0001-environment-Allow-starting-from-existing-profile.patch (text/x-diff, attachment)]
[Message part 5 (message/rfc822, inline)]
From: 宋文武 <iyzsong <at> outlook.com>
To: Lars-Dominik Braun <lars <at> 6xq.net>
Cc: 46291-done <at> debbugs.gnu.org
Subject: Re: [bug#46291] [PATCH] environment: Allow starting from existing
 profile
Date: Thu, 11 Feb 2021 18:01:31 +0800
Lars-Dominik Braun <lars <at> 6xq.net> writes:

> Hi everyone,
>
> the attched patch allows starting a `guix environment` from an existing
> profile. Our use-case is this: We have profiles, created by
>
> 	guix package -p /path -i &
>
> because we need to parse desktop files in /path/share/applications. Also
> this does the heavy-lifting (substitutes/building/grafting) upfront once
> and not when starting an environment. Then we start an application from
> this profile using
>
> 	guix environment -C [&] -p /path -- jupyterlab [&]
>
> This is much faster (10x) for large profiles (i.e. JupyterLab) than
>
> 	guix environment -C [&] -m manifest.scm -- jupyterlab [&]
>
> and makes sure the environment is exactly the same as
>
> 	source /path/etc/profile
>
> I think there have been many discussions about how `guix environment`
> should work and this is certainly not the silver bullet, but it.s a huge
> improvement for us with very limited code changes required.

Look excellent to me, pushed, thank you!


This bug report was last modified 4 years and 103 days ago.

Previous Next


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