From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 22 06:28:07 2020 Received: (at submit) by debbugs.gnu.org; 22 Aug 2020 10:28:08 +0000 Received: from localhost ([127.0.0.1]:48915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Qkp-0000sS-NF for submit@debbugs.gnu.org; Sat, 22 Aug 2020 06:28:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:46676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Qkk-0000s5-2f for submit@debbugs.gnu.org; Sat, 22 Aug 2020 06:28:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Qkj-0007xe-Rs for bug-guix@gnu.org; Sat, 22 Aug 2020 06:28:01 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:56962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9Qkh-00041l-N2 for bug-guix@gnu.org; Sat, 22 Aug 2020 06:28:01 -0400 Received: from localhost (80-110-126-103.cgn.dynamic.surfer.at [80.110.126.103]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 4B2E93362EEF for ; Sat, 22 Aug 2020 12:27:55 +0200 (CEST) Date: Sat, 22 Aug 2020 12:27:50 +0200 From: Danny Milosavljevic To: Subject: "sudo -E guix pull" breaks ~/.config/guix/current for regular user Message-ID: <20200822122750.78ddc111@scratchpost.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/woRHX4ql0x6sjWi.7AbL.V3"; protocol="application/pgp-signature"; micalg=pgp-sha512 Received-SPF: none client-ip=85.13.145.193; envelope-from=dannym@scratchpost.org; helo=dd26836.kasserver.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/22 06:27:55 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --Sig_/woRHX4ql0x6sjWi.7AbL.V3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 ~/.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 happe= ning, 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 --Sig_/woRHX4ql0x6sjWi.7AbL.V3 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl9A8yYACgkQ5xo1VCww uqULaQf9GIfBH86NSavxsMh6Snv+NBgfYZljjwegB9v8S9i7Ws317cnb7SIt1RIP kmFfovcF1WYgtwc/YxBdlVDUMwDqof9FxMjDwqtgDASfYWHiu4u9PR5Gx3zenIqt Modr6FY68NoqzjCyErn2qP1LXguIyZPoBYiKs3YwwWFhEtP+Mbj6q+4tL6nP+FHg LOVUnDOrmKpmm5ZOyBno4gtw3EYakWhoNDwte3pTUce4IQOMtQiY7KBGoH1V4qUZ ruXojCUuZsCxtovV1dHhTUlVy9sukQx0LUQeB/iOcY3RpuMnfUJpxrclFFk7aNpH m1eYysmE3xrz2tP7+fdxpIAW2zVa6A== =/A12 -----END PGP SIGNATURE----- --Sig_/woRHX4ql0x6sjWi.7AbL.V3--