From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 15 19:03:05 2020 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 To: Steffen Rytter Postas Subject: Re: bug#42810: Guix doesn't follow all symlinks 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-Debbugs-Envelope-To: 42810 Cc: 42810@debbugs.gnu.org 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: -1.0 (-) 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