From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oD9pArS0YV+oWQAA0tVLHw (envelope-from ) for ; Wed, 16 Sep 2020 06:46:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2A5yOLO0YV9eLwAA1q6Kng (envelope-from ) for ; Wed, 16 Sep 2020 06:46: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 6BBA994042A for ; Wed, 16 Sep 2020 06:46:11 +0000 (UTC) Received: from localhost ([::1]:55958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIRCk-0007mj-By for larch@yhetil.org; Wed, 16 Sep 2020 02:46:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIRCc-0007mN-Q0 for bug-guix@gnu.org; Wed, 16 Sep 2020 02:46:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49683) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIRCc-0001XW-GH for bug-guix@gnu.org; Wed, 16 Sep 2020 02:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIRCc-0002ni-Eh for bug-guix@gnu.org; Wed, 16 Sep 2020 02:46: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 06:46: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.160023873110707 (code B ref 42810); Wed, 16 Sep 2020 06:46:02 +0000 Received: (at 42810) by debbugs.gnu.org; 16 Sep 2020 06:45:31 +0000 Received: from localhost ([127.0.0.1]:32996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIRC6-0002md-Le for submit@debbugs.gnu.org; Wed, 16 Sep 2020 02:45:30 -0400 Received: from scalehost.eu ([108.61.99.179]:39780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIRC3-0002mT-SR for 42810@debbugs.gnu.org; Wed, 16 Sep 2020 02:45:30 -0400 Received: from pop-os (unknown [89.239.193.119]) by scalehost.eu (Postfix) with ESMTPSA id D87BDFA0D9; Wed, 16 Sep 2020 06:45:25 +0000 (UTC) Message-ID: Date: Wed, 16 Sep 2020 08:45:24 +0200 In-Reply-To: <867dsuzlr6.fsf@gmail.com> References: <867dsuzlr6.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Rv4u0feILYDH Hi, ons, 16 09 2020 kl. 01:02 +0200, skrev zimoun: > Dear, > > On Tue, 11 Aug 2020 at 15:54, Steffen Rytter Postas > wrote: > > Hi, > > > > Some background first, to better understand the issue: > > I've been running Guix on a foreign distribution > > with my own channel in ~/.config/guix/channels.scm for some time > > now. > > However this means having to deal with doing both a `guix pull` as > > a user, but also `guix pull` as superuser to keep the system > > builder daemon etc up to date. > > I wanted to avoid this, by using simply a system-wide guix install, > > and > > not have my own user have a guix variant. I tried simply deleting > > ~/.config/guix/current symlink, and confirmed that `guix` was now > > using > > the `/usr/local/bin/guix` symlink. > > Then I moved my ~/.config/guix/channels.scm file to > > /etc/guix/channels.scm > > and satisfied with my setup, performed `sudo guix pull --fallback` > > to > > pull the latest changes and verify it worked. > > The command ran as expected, and printed the new packages from my > > channel that were now available. > > Well, I am not sure to understand why you want this setup since > “guix-daemon” needs (really) few updates and as regular user, when > doing > “guix pull”, if there is major upgrade, then it will be announced > with > “guix pull –news”. We all like different tastes. :-) I also wanted to maintain only one copy of "guix" usable, instead of having one version of guix per user, which is a lot harder to maintain. > > `type guix`: > > /usr/local/bin/guix > > > > `readlink /usr/local/bin/guix` > > /var/guix/profiles/per-user/root/current-guix/bin/guix > > > > `/usr/local/bin/guix show entr-git` > > guix show: error: entr-git: package not found > > > > `/var/guix/profiles/per-user/root/current-guix/bin/guix show entr- > > git` > > name: entr-git > > version: 4.5-0.6b13a97 > > [...] > > So, if I understand correctly, as a regular user, the command ’guix’ > points to ’/usr/local/bin/guix’ which points to > ’/var/guix/profiles/per-user/root/current-guix/bin/guix’, and this > latter points to ’/gnu/store/…-guix-command’. > > I think the issue is that Guix is not only one binary, so ’bin/guix’ > is > not enough. > > So you need to have also in the correct symlinks with > ’lib/{guile,guix}’ > and others. How would I set this up? This happens on a default Guix setup following the standard installation guide for installing on a foreign distribution, and then setting up the channel configuration as mentioned. > > I have not investigated but I guess the issue you hit comes from > ’lib/guix/package.cache’, correctly see by > /var/guix/profiles/…/bin/guix’ but not all your other symlink > machinery. > This does make sense, if that is somehow only read from a non-store location (I'm not sure why it would be, that seems against all the point of guix in the first place). > > Well, I do not know if it helps. > > All the best, > simon > > >