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 sBniK3ZIYV/pZgAA0tVLHw (envelope-from ) for ; Tue, 15 Sep 2020 23:04:22 +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 CDkvJnZIYV/HPwAAbx9fmQ (envelope-from ) for ; Tue, 15 Sep 2020 23:04:22 +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 AE7D99402DA for ; Tue, 15 Sep 2020 23:04:21 +0000 (UTC) Received: from localhost ([::1]:60586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIJzn-0001jy-0D for larch@yhetil.org; Tue, 15 Sep 2020 19:04:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIJzW-0001g2-TT for bug-guix@gnu.org; Tue, 15 Sep 2020 19:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIJzW-0005Ft-CI for bug-guix@gnu.org; Tue, 15 Sep 2020 19:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIJzW-0008Rv-7j for bug-guix@gnu.org; Tue, 15 Sep 2020 19:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#42810: Guix doesn't follow all symlinks Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 15 Sep 2020 23:04: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: Steffen Rytter Postas Received: via spool by 42810-submit@debbugs.gnu.org id=B42810.160021098532413 (code B ref 42810); Tue, 15 Sep 2020 23:04:02 +0000 Received: (at 42810) by debbugs.gnu.org; 15 Sep 2020 23:03:05 +0000 Received: from localhost ([127.0.0.1]:60866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIJyb-0008Qj-DC for submit@debbugs.gnu.org; Tue, 15 Sep 2020 19:03:05 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:33955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIJyW-0008QB-UY for 42810@debbugs.gnu.org; Tue, 15 Sep 2020 19:03:04 -0400 Received: by mail-wr1-f47.google.com with SMTP id t10so4989837wrv.1 for <42810@debbugs.gnu.org>; Tue, 15 Sep 2020 16:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=djxTd5R6KMgTsgMrM4yPTbwpr3yNmphzGIfgNfnVx80=; b=gs4LUB+EnU2nkA0VgwHpL3Igu1v+AiBuBWDcjFvb+9hYgRQgIksOfFUWIEJ4Y3JGWT KKwvN6F90c3fd/805blq6ZjQD1wHkcFsjb6NGsFbL9R2+yc97HBwma3eZEBsusLFeeg3 y6f8A8NHFyC8q41xeFTMFB0Z1OqdTIXi8NeQqGR7x3loYwx/KrxAK55asmnlpnmE4utw LFq/VmfSutMeFJCnKEwa7Ud3YbKAEL32T4cWx8cg99Gj3o18OwHS3h34hr2CuCVmGRhe uXepgT2qqRmWb9MuxjUgaHGjK96XhrB9PY7fJ0aO4QcHwm5hI/AbFE70vd35PAneyl+9 wn2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=djxTd5R6KMgTsgMrM4yPTbwpr3yNmphzGIfgNfnVx80=; b=pRJ7ls4NFbOQCLemovhiQdmaVJZJQd2uYnpYtOLMepU+jhA9qbP0qQtFt0k73k28SH DmS82sEt+TMziF7NWjFVlmaAu1UqaOlspAA2yVgtstaHkWgTjtaCJyD/HK13RxFOuVRu sltS7etRG1NouAqu+BDBtqrwTLUo1sxreziShl43oKq42QrUJAqqXiiIEJKSU6SWBVb3 it68h25wzyBPnCLxwyus418xZGHgJ4v1LI/Ujr7NY/J5zcirGeGgf/WIkBJ5PczalTKN HdihIGiM+d5L2srymd0ID0n/GIgFoferCmsAqGzM4F6parLyWPEukROvOPowzESeImGF i3SQ== X-Gm-Message-State: AOAM5314ZCLK/XRaFbNfArHbRWzYTXy2jKRuiDTmlN4kaMxSk26URRst 8PkhcYQ4nFUEsG1qBaQ4MZ05EEF08J0= X-Google-Smtp-Source: ABdhPJx0ucxtRvL3DUnow5vFxy0hLsQOLn+jele1my4Y6PGmEvwgNwvBNTRUEHrAetscogr7vEiqVQ== X-Received: by 2002:a5d:4842:: with SMTP id n2mr24028460wrs.260.1600210974622; Tue, 15 Sep 2020 16:02:54 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id j14sm30444236wrr.66.2020.09.15.16.02.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 16:02:54 -0700 (PDT) From: zimoun References: Date: Wed, 16 Sep 2020 01:02:53 +0200 In-Reply-To: (Steffen Rytter Postas's message of "Tue, 11 Aug 2020 15:54:36 +0200") Message-ID: <867dsuzlr6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Cc: 42810@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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=gs4LUB+E; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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.09 X-TUID: S3utvsSy/pE6 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.=20 > 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 =E2=80=9Cguix-daemon=E2=80=9D needs (really) few updates and as regular use= r, when doing =E2=80=9Cguix pull=E2=80=9D, if there is major upgrade, then it will be ann= ounced with =E2=80=9Cguix pull =E2=80=93news=E2=80=9D. We all like different tastes. := -) > `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 =E2=80=99guix= =E2=80=99 points to =E2=80=99/usr/local/bin/guix=E2=80=99 which points to =E2=80=99/var/guix/profiles/per-user/root/current-guix/bin/guix=E2=80=99, a= nd this latter points to =E2=80=99/gnu/store/=E2=80=A6-guix-command=E2=80=99. I think the issue is that Guix is not only one binary, so =E2=80=99bin/guix= =E2=80=99 is not enough. So you need to have also in the correct symlinks with =E2=80=99lib/{guile,g= uix}=E2=80=99 and others. I have not investigated but I guess the issue you hit comes from =E2=80=99lib/guix/package.cache=E2=80=99, correctly see by /var/guix/profiles/=E2=80=A6/bin/guix=E2=80=99 but not all your other symli= nk machinery. Well, I do not know if it helps. All the best, simon