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 kM34NSDoYV/GUgAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 10:25:36 +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 QJXkMSDoYV93LwAAbx9fmQ (envelope-from ) for ; Wed, 16 Sep 2020 10:25:36 +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 1CD47940609 for ; Wed, 16 Sep 2020 10:25:36 +0000 (UTC) Received: from localhost ([::1]:55376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIUd5-0000ba-2m for larch@yhetil.org; Wed, 16 Sep 2020 06:25:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIUca-0000b4-Mf for bug-guix@gnu.org; Wed, 16 Sep 2020 06:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIUcY-00054P-EQ for bug-guix@gnu.org; Wed, 16 Sep 2020 06:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIUcY-0008Rh-3M for bug-guix@gnu.org; Wed, 16 Sep 2020 06:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42810: Guix doesn't follow all symlinks Resent-From: Steffen Rytter Postas Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 16 Sep 2020 10:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42810 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: zimoun Cc: 42810@debbugs.gnu.org Received: via spool by 42810-submit@debbugs.gnu.org id=B42810.160025184732376 (code B ref 42810); Wed, 16 Sep 2020 10:25:02 +0000 Received: (at 42810) by debbugs.gnu.org; 16 Sep 2020 10:24:07 +0000 Received: from localhost ([127.0.0.1]:33307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIUbf-0008Q8-En for submit@debbugs.gnu.org; Wed, 16 Sep 2020 06:24:07 -0400 Received: from scalehost.eu ([108.61.99.179]:40912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIUbb-0008Pw-VQ for 42810@debbugs.gnu.org; Wed, 16 Sep 2020 06:24:06 -0400 Received: from pop-os (unknown [89.239.193.119]) by scalehost.eu (Postfix) with ESMTPSA id 0B16BFA0D9; Wed, 16 Sep 2020 10:24:02 +0000 (UTC) Message-ID: Date: Wed, 16 Sep 2020 12:24:01 +0200 In-Reply-To: References: <867dsuzlr6.fsf@gmail.com> <634882b61652f958e44760e64179bcdc99481310.camel@scalehost.eu> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Steffen Rytter Postas From: Steffen Rytter Postas via Bug reports for GNU 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: -1.01 X-TUID: cK3r20hZOtjD Hi, ons, 16 09 2020 kl. 11:33 +0200, skrev zimoun: > Dear, > > On Wed, 16 Sep 2020 at 09:35, Steffen Rytter Postas > wrote: > > > This may well be the point of Guix, and maybe I'm' following too > > much > > of a classical paradigm, but for me on a classical Linux desktop > > system, it is much easier for me to just use _one_ version of Guix, > > regardless of using it as my own user, or installing applications > > as > > root. > > You are using Guix on foreign distro, right? > Therefore, the concept of "installing applications as root" does not > apply any more. > There is _one_ version of Guix, the one you use as regular user. > And as said before, "sudo guix pull" just updates the daemon and for > typical use-cases (not Guix developer), you can do that only each > full > moon. :-) > Why does the concept of installing applications as root not apply? While I am aware that all applications are installed in the /gnu/store, this does not imply that there are different application needs between the root user and a normal user. > > > I'm not sure why this should _not_ work. What is the arguments > > against > > my use case? Is it that each user _MUST_ run `guix pull` as their > > own > > user and _NEVER_ use the system-wide Guix with local channels? > > There is no argument against. You use case should work, you just > need > to set up correctly, with for example: > > sudo guix pull -p /usr/ > > But it is not standard for Guix. That's why you need a bit of more > work. > > > Otherwise, yes each user runs "guix pull" as their own user and never > uses the system-wide Guix. > Each user specifies their own local channels. If the sysadmin wants > that each user pulls with a specific channels file, the easiest is to > add a symlink from ~/.config/guix/current/channels.scm to say > /etc/guix/channels.scm for all the users on the machine. > > On the machine, 2 users can run different Guix and so install > different versions of the same packages. That's why it is important > to report the "guix describe" of the user. > So rather than being a bug in Guix itself, it's a bug in the installation script that does not setup the host distribution for being able to process the correct location then, no? Or if it's because the user of Guix on a foreign distribution needs to setup more for the use case of adding channels to work, when running only one version of guix on the system, then it would be missing documentation. While I don't have a say in this, I also do not mind changing this from a bug of guix to an issue somewhere else, but where would it be? Or is the casual user of guix that elects to simply add a channel simply left to their own devices on undocumented behaviour? > > > I do not mind being able to by-pass any setup I've made. This is > > for my > > own system(s) only, but the issue happens on any non-GuixSD system > > running Guix on a foreign distribution. > > I am not sure there is an issue but an incorrect setup. :-) > > > > I am aware there may be workarounds, and currently I'm using the > > workaround as specified in the bug report, but if this is _NOT_ a > > bug, > > then I shall continue to use my workaround. > > I am not convinced it is a bug. But I can have wrong and miss > something. > > > > It does seem to me that this is indeed a bug, as Guix behaves > > differently based upon who is executing it. > > Yes, it is expected. > > For example, I am running Guix on a Debian. > There is: > - the system-wide Guix version at version f6dfe42 (4 "guix pull" and > last on Sep 15 2020 01:42:11) > - user kioo at the version 1a9af96 (1 "guix pull" and last on Apr 18 > 2020 20:13:23) > - mine at the version 9e7b265 (44 "guix pull" and last on Sep 16 > 2020 11:28:36) > > Well, the sysadmin did "guix pull" 4 times and me I did 44 times, so > clearly the command 'guix' behaves differently based upon who is > executing it. > > For example, if the user kikoo run "guix install emacs" then they > will > install the version 26.3. and me instead wll install version 27.1, > > If I want to install the same version as the user kikoo, I can do: > > guix pull --commit=1a9af96 > guix install emacs > > or better: > > guix time-machine --commit=1a9af96 -- install emacs > > The first will create another generation and my version of Guix will > be at 1a9af96. Which is not a good Guix practise, IMHO. > Instead, the second creates a temporary version of Guix and use it to > install the package emacs; without polluting my version of guix. > > > Does it make sense? > > All the best, > simon >