GNU bug report logs -
#74980
Home container do not instantiate ~/.guix-profile
Previous Next
Reported by: Gabriel Wicki <gabriel <at> erlikon.ch>
Date: Thu, 19 Dec 2024 21:16:01 UTC
Severity: normal
Done: Gabriel Wicki <gabriel <at> erlikon.ch>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74980 in the body.
You can then email your comments to 74980 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org:
bug#74980; Package
guix.
(Thu, 19 Dec 2024 21:16:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gabriel Wicki <gabriel <at> erlikon.ch>:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org.
(Thu, 19 Dec 2024 21:16:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi there!
Invoking a home container does not create ~/.guix-profile (which in my case
is symlinked to ~/.guix-home/profile). This leads to a problem when
testing my Emacs configuration, since I there add
~/.guix-profile/share/emacs/site-lisp to its load path.
I guess referring to ~/.guix-profile seems the smart choice, since it
could also work on home environments where I added the necessary
packages "manually" to my user's profile, so I consider only having
~/.guix-home to be somewhat off.
Any ideas on this? Is this intended behaviour? Is my configuration off?
Information forwarded
to
bug-guix <at> gnu.org:
bug#74980; Package
guix.
(Thu, 19 Dec 2024 21:18:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 74980 <at> debbugs.gnu.org (full text, mbox):
* guix/scripts/home.scm: Create the symlink.
Change-Id: Ib299c53f7cd0ca6ad204325b5c150d579224afd7
---
guix/scripts/home.scm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index b4c82d275f..50aaf2abf6 100644
--- a/guix/scripts/home.scm
+++ b/guix/scripts/home.scm
@@ -344,6 +344,10 @@ (define* (spawn-home-container home
(primitive-load (string-append #$home "/activate"))
(setenv "GUIX_NEW_HOME" #f)
+ (system* "ln" "-s"
+ (string-append #$home-directory "/.guix-home/profile")
+ (string-append #$home-directory "/.guix-profile"))
+
(when term
;; Preserve TERM for proper interactive use.
(setenv "TERM" term))
base-commit: c3290cee6add60b7e56f5f919d9498d78542790a
--
2.46.0
Information forwarded
to
bug-guix <at> gnu.org:
bug#74980; Package
guix.
(Sat, 21 Dec 2024 23:17:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 74980 <at> debbugs.gnu.org (full text, mbox):
Hi,
Gabriel Wicki wrote on 19.12.2024 22:00 (GMT +01:00):
> * guix/scripts/home.scm: Create the symlink.
>
> Change-Id: Ib299c53f7cd0ca6ad204325b5c150d579224afd7
> ---
> guix/scripts/home.scm | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
> index b4c82d275f..50aaf2abf6 100644
> --- a/guix/scripts/home.scm
> +++ b/guix/scripts/home.scm
> @@ -344,6 +344,10 @@ (define* (spawn-home-container home
> (primitive-load (string-append #$home "/activate"))
> (setenv "GUIX_NEW_HOME" #f)
>
> + (system* "ln" "-s"
> + (string-append #$home-directory "/.guix-home/profile")
> + (string-append #$home-directory "/.guix-profile"))
Isn't that dangerous?
What happens if you invoke "guix install xyz" after that?
That would have guix mutate the contents of ~/.guix-profile , even though the .guix-home/profile is derived from a declarative manifest, right?
Or does it at least only swap out the link for a new .guix-profile directory ?
I'm too much of a chicken to try...
I mean I can see what you mean but I'm not sure that guix expects the user to do that.
Information forwarded
to
bug-guix <at> gnu.org:
bug#74980; Package
guix.
(Mon, 03 Nov 2025 21:10:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 74980 <at> debbugs.gnu.org (full text, mbox):
close
thanks
Reply sent
to
Gabriel Wicki <gabriel <at> erlikon.ch>:
You have taken responsibility.
(Mon, 03 Nov 2025 21:19:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Gabriel Wicki <gabriel <at> erlikon.ch>:
bug acknowledged by developer.
(Mon, 03 Nov 2025 21:19:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 74980-done <at> debbugs.gnu.org (full text, mbox):
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org.
(Tue, 02 Dec 2025 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.