From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EIuxOvdFQV/tQwAA0tVLHw (envelope-from ) for ; Sat, 22 Aug 2020 16:21:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mKNgNvdFQV/ucgAAbx9fmQ (envelope-from ) for ; Sat, 22 Aug 2020 16:21:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 89C059402C2 for ; Sat, 22 Aug 2020 16:21:11 +0000 (UTC) Received: from localhost ([::1]:40996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9WGU-0004Uh-DS for larch@yhetil.org; Sat, 22 Aug 2020 12:21:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9WGN-0004UK-5i for bug-guix@gnu.org; Sat, 22 Aug 2020 12:21:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k9WGM-0002Fi-SW for bug-guix@gnu.org; Sat, 22 Aug 2020 12:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k9WGM-0000wY-PH for bug-guix@gnu.org; Sat, 22 Aug 2020 12:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42983: "sudo -E guix pull" breaks ~/.config/guix/current for regular user Resent-From: Bengt Richter Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 22 Aug 2020 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42983 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Danny Milosavljevic Received: via spool by 42983-submit@debbugs.gnu.org id=B42983.15981132243533 (code B ref 42983); Sat, 22 Aug 2020 16:21:02 +0000 Received: (at 42983) by debbugs.gnu.org; 22 Aug 2020 16:20:24 +0000 Received: from localhost ([127.0.0.1]:51192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9WFk-0000uv-Ag for submit@debbugs.gnu.org; Sat, 22 Aug 2020 12:20:24 -0400 Received: from imta-36.everyone.net ([216.200.145.36]:46026 helo=imta-38.everyone.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9WFj-0000uo-9h for 42983@debbugs.gnu.org; Sat, 22 Aug 2020 12:20:23 -0400 Received: from pps.filterd (omta002.sj2.proofpoint.com [127.0.0.1]) by imta-38.everyone.net (8.16.0.27/8.16.0.27) with SMTP id 07MGFnU4002688; Sat, 22 Aug 2020 09:20:21 -0700 X-Eon-Originating-Account: bLMaz92QjasWbGNJI-hx33LCWBuQHbudjWLsQfRhsX8 X-Eon-Dm: m0117124.ppops.net Received: by m0117124.mta.everyone.net (EON-AUTHRELAY2 - 5a81ce85) id m0117124.5f332921.16e686; Sat, 22 Aug 2020 09:20:19 -0700 X-Eon-Sig: AQMHrIJfQUXD9ZTSyQIAAAAC,2346450d90e05fb15f3ee3066b81326c X-Eip: dsa0Z5ZK6XbqUCR30_DJZDGraE5mBgu1OBG3qbibLvk Date: Sat, 22 Aug 2020 18:20:09 +0200 From: Bengt Richter Message-ID: <20200822162009.GA2810@LionPure> References: <20200822122750.78ddc111@scratchpost.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200822122750.78ddc111@scratchpost.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-08-22_10:2020-08-21, 2020-08-22 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1034 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2008220180 X-Spam-Score: -0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.4 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bengt Richter Cc: 42983@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.99 X-TUID: nLzw+d0eu+fp 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 > /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. > ISTM it looks like a bug that should be fixed[1], urgently, not just warned about :) [1] eliminated from the possibility of happening :) > 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 I find it peculiar that root (sudo -i) looks like it's using swedish locale ("aktuell" is swedish for "current") with the rest of the output identical. (Hm, maybe that's also Norwegian ;-) If describe is describing two things that are identical end values of readlink -f thing{1..2}, I think it would be helpful to show the thing{1..2} profile links it's using. BTW, what would sudo guix describe without the -E (preserving user environment) have produced? -- Regards, Bengt Richter