bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-28 Thread Ludovic Courtès
Hi Danny, Danny Milosavljevic skribis: > The culprit, I think, is this: > > (define (ensure-default-profile) > (ensure-profile-directory) > > ;; In 0.15.0+ we'd create ~/.config/guix/current-[0-9]*-link symlinks. Move > ;; them to %PROFILE-DIRECTORY. > ;; > ;; XXX: Ubuntu's 'sudo' pre

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-25 Thread Danny Milosavljevic
Hi, On Mon, 24 Aug 2020 04:38:29 +0200 Bengt Richter wrote: > On +2020-08-24 01:53:20 +0200, Danny Milosavljevic wrote: > > Hi, > > > > On Sat, 22 Aug 2020 18:20:09 +0200 > > Bengt Richter wrote: > > > > > BTW, what would sudo guix describe without the -E (preserving user > > > environment

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-23 Thread Danny Milosavljevic
On Sat, 22 Aug 2020 12:27:50 +0200 Danny Milosavljevic wrote: > /var/guix/profiles/per-user/dannym/current-guix Follow-up errors (translated to English manually): dannym@dayas ~$ guix pull Migrating profile generations to „/var/guix/profiles/per-user/dannym“ … guix pull: error: symlink: file e

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-23 Thread Danny Milosavljevic
Hi, On Sat, 22 Aug 2020 18:20:09 +0200 Bengt Richter wrote: > BTW, what would sudo guix describe without the -E (preserving user > environment) have produced? I've tried it again (it's 100% reproducible) and I get (after "sudo -E guix pull"): dannym@dayas ~$ export LC_ALL=C dannym@dayas ~$

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-23 Thread Leo Famulari
On Sun, Aug 23, 2020 at 11:24:43PM +0200, Danny Milosavljevic wrote: > Paul did not know that it is a per-user operation. > > I did almost exactly the same thing when I was a new guix user. > That's pretty much what one is used to from Debian etc. I see. Coming from Debian, I also had trouble lea

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-23 Thread Danny Milosavljevic
Hi Leo, On Sat, 22 Aug 2020 12:22:41 -0400 Leo Famulari wrote: > What is expected to happen in this case? Why would one want to use an > unprivileged environment with privileges to do `guix pull`, which is a > per-user operation? Paul did not know that it is a per-user operation. I did almost

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-22 Thread Leo Famulari
On Sat, Aug 22, 2020 at 12:27:50PM +0200, Danny Milosavljevic wrote: > Paul reported on IRC that his guix behaved strangely. > Upon > investigation we found that the following happens (on a Guix system), when > logged > in as regular user (not root): > > $ readlink ~/.config/guix/current > /va

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-22 Thread Bengt Richter
Hi, On +2020-08-22 12:27:50 +0200, Danny Milosavljevic wrote: > Hello, > > Paul reported on IRC that his guix behaved strangely. > Upon > investigation we found that the following happens (on a Guix system), when > logged > in as regular user (not root): > > $ readlink ~/.config/guix/current

bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user

2020-08-22 Thread Danny Milosavljevic
Hello, Paul reported on IRC that his guix behaved strangely. Upon investigation we found that the following happens (on a Guix system), when logged in as regular user (not root): $ readlink ~/.config/guix/current /var/guix/profiles/per-user/dannym/current-guix $ sudo -E guix pull $ readlink ~/