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

Previous Next

Package: guix;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Sat, 22 Aug 2020 10:29:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: <bug-guix <at> gnu.org>
Subject: "sudo -E guix pull" breaks ~/.config/guix/current for regular user
Date: Sat, 22 Aug 2020 12:27:50 +0200
[Message part 1 (text/plain, inline)]
Hello,

Paul <paul <at> denknerd.org> 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 ~/.config/guix/current
/var/guix/profiles/per-user/root/current-guix

You can also rm -f ~/.config/guix/current after that and do everything above
again and it will happen again.  It even happens when guix pull has nothing to
do.

That doesn't seem right.  We should at least try to prevent this from happening,
or warn or something.

The guix package manager that did that is:

$ sudo -E guix describe
Generation 64   Aug 22 2020 11:41:04    (current)
  guix dad963a
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: dad963a4393ea51409baa63817b26b449ed58338
  heads 50b97d4
    repository URL: https://github.com/daym/heads-guix.git
    branch: wip-musl
    commit: 50b97d446ebafd0be7a0e19d87cd236882093244

$ sudo -i
# guix describe
Generation 64   22. August 2020 11:41:04        (aktuell)
  guix dad963a
    Repository-URL: https://git.savannah.gnu.org/git/guix.git
    Branch: master
    Commit: dad963a4393ea51409baa63817b26b449ed58338
  heads 50b97d4
    Repository-URL: https://github.com/daym/heads-guix.git
    Branch: wip-musl
    Commit: 50b97d446ebafd0be7a0e19d87cd236882093244
[Message part 2 (application/pgp-signature, inline)]

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

Previous Next


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