From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id /FCLBX3k4mBWPAAAgWs5BA (envelope-from ) for ; Mon, 05 Jul 2021 12:52:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id EDGlAH3k4mA8OQAAB5/wlQ (envelope-from ) for ; Mon, 05 Jul 2021 10:52:45 +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 40B571639A for ; Mon, 5 Jul 2021 12:52:44 +0200 (CEST) Received: from localhost ([::1]:54444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0MDS-0006gz-Sl for larch@yhetil.org; Mon, 05 Jul 2021 06:52:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0M90-0006yU-AY for bug-guix@gnu.org; Mon, 05 Jul 2021 06:48:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0M8y-0001Fv-Md for bug-guix@gnu.org; Mon, 05 Jul 2021 06:48:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0M8y-0005gj-Lz for bug-guix@gnu.org; Mon, 05 Jul 2021 06:48:04 -0400 Subject: bug#42810: Guix doesn't follow all symlinks Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Mon, 05 Jul 2021 10:48:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 42810 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: Steffen Rytter Postas Mail-Followup-To: 42810@debbugs.gnu.org, zimon.toutoune@gmail.com, nc@scalehost.eu Received: via spool by 42810-done@debbugs.gnu.org id=D42810.162548207621782 (code D ref 42810); Mon, 05 Jul 2021 10:48:04 +0000 Received: (at 42810-done) by debbugs.gnu.org; 5 Jul 2021 10:47:56 +0000 Received: from localhost ([127.0.0.1]:44188 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0M8p-0005fF-HQ for submit@debbugs.gnu.org; Mon, 05 Jul 2021 06:47:55 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:38694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0M8m-0005eO-74 for 42810-done@debbugs.gnu.org; Mon, 05 Jul 2021 06:47:53 -0400 Received: by mail-wr1-f50.google.com with SMTP id a8so9846038wrp.5 for <42810-done@debbugs.gnu.org>; Mon, 05 Jul 2021 03:47:52 -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=AQC6XOVdD+0+f2k/OoLW5ACZUM7W0uDprxszUlUmfpQ=; b=PNmFYvfaD4JztPZm37FfHYdAlJYxo4HSZPDQ2CCkDq1A5Azn05BxP7ga2Fbr92T1LG wVQi8cHL11gVhnQ4GwpyrDj6Q2tzauWND69cbCeG4ws0UKMi1cBZoHQ706MWvulF8ZaW i8rAHWxNFbc8krVEpbPjgvl7FCL4+3BbYKNtJo4hG0D2HssTGh9QnZyv2Zy2QHrbf1Uz DMaTdL5PSkU8Eoyi1jXI3jVRgVY3zRwPNQFKeKpikMSGMSe2RCUCBMOHHzAmftIwoPMn TG4Lk6+SDx5smY0f9Lypw+srWbaKur8AkD3ha9MpT4j/ahtKyF/ThwyZozarGz9rUKnQ zzEg== 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=AQC6XOVdD+0+f2k/OoLW5ACZUM7W0uDprxszUlUmfpQ=; b=fstmARiXOfCei9MMJTu6mrxJ9HX5OZzvSv5dfgTvdSt/EpfwVM6ZHjouOsfeyOB5/O OthpzkLYBjRujdt9sLeSu/bEJaAwi2DuTxtmFChA8JCGqkrKd81JbfdoVseejHjf3PVw JdaNlkOJDkOpD/8/KIZsLcYnxrtO1uqJe9GtR8hAe+JsL2fmDp64xnu66J41boCJ90Ee AbD3jd/jURzkmiynB7UhHMLfyTYQG865AA6KNrzRXN2fmbbWtwHOv+RsGg6jxGBfvW9k h/STpWze9C5i6Qdja8v2T4pXGOZ7si3f7yiXJT/AqFLZwsId8xTBnJ6IRnPHP3NuOzTB RqCw== X-Gm-Message-State: AOAM532D43qe0QWRxHlMAKKfzTNtsiJgrWq1wcJxnA2yQuBcdKSjf2jf I0f5dljlBtbLVSS08+KiedcJTAKQBs8= X-Google-Smtp-Source: ABdhPJxQjC50xfL5hsKTV5O6rz8Vw7XJj7gA1HQceNzF98I/CXBCmoRObaQu3C9Fmh+VlupJAJzfAg== X-Received: by 2002:a5d:6547:: with SMTP id z7mr14458894wrv.27.1625482066606; Mon, 05 Jul 2021 03:47:46 -0700 (PDT) Received: from pfiuh02 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id 25sm11832933wmf.21.2021.07.05.03.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jul 2021 03:47:46 -0700 (PDT) From: zimoun References: Date: Mon, 05 Jul 2021 11:35:52 +0200 In-Reply-To: (Steffen Rytter Postas's message of "Tue, 11 Aug 2020 15:54:36 +0200") Message-ID: <87eecdksqv.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625482364; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AQC6XOVdD+0+f2k/OoLW5ACZUM7W0uDprxszUlUmfpQ=; b=k+DtL/VEf3Zxu11K2R8+e7cQ4LGiag/C3ogwgshtca9K3h9/rvchic7l8TD7sZTraAi44j O7dCDTVAzGzIv/D5tWa+jWNhHLn/QCQO2ZxnB9wD0zLpscqXgU7bBrLDl60okdZNRiaqds K0PpWf0NNqwRhh+QOhcV4kXG+DVvyTXdLYylz2Cb21B3D78VrHRPceL5RI3Mt7Mef095wU yzxx6jntzSmMZW5LxmHhDnUC7FQP5U3f23wBTQ12QEkZzDFQgBFr2FzmJzsygGHBSBFXa0 jre/3FEqZuuKTr9Br16p4tuYXFz73HQbSHn0+3/YELxHpyijQemeCXa8etXziA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625482364; a=rsa-sha256; cv=none; b=gd6JUF/L+t+CPnNBUtZDMw9RA7D1lk3GjIDI+8PH6/jOCyLxYFim41RDGnfZOa3kWO5da5 Qgf+SrtFJb/FisKquhbN+W6UiQ++yyvW3lhd9QbMHzGDN6onlziy6QCRICcuPTjUzhrMhf EWe85XaifaVyxdgHw93U76MX0BOwXfWKz/rUVFNeURmGbmiRVh8XQ0q+LFBXcxz2ztkBkv JAwuHSmlGqIs40/UUkLmGm2d/PZJsM37CJLf8uEZpvY+7NgTlnBzEs5B8Nul3wefoAvXcp 3BNPqOzyV3oay7guUmdZ/m4kX6gg9aP6e94cljYLNpMcmT4DYCIkV01cbaz2Fg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=PNmFYvfa; 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-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=PNmFYvfa; 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-Migadu-Queue-Id: 40B571639A X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: GJ8gIx69HVqx Hi, Thanks for your report. On Tue, 11 Aug 2020 at 15:54, Steffen Rytter Postas wrote: > 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. > > So, that's the background of what I've been trying to do. Here's what > happened: > > I have in my own channel a package called `entr-git`. Installing it is > simple: > > `guix show entr-git` > > Expected result: > > name: entr-git > version: 4.5-0.6b13a97 > outputs: out > systems: x86_64-linux i686-linux > dependencies: ncurses@6.2 > location: gnu/packages/entr-git.scm:25:2 > homepage: http://entrproject.org/ > license: ISC > synopsis: Run arbitrary commands when files change > description: entr is a zero-configuration tool with no external build > or run-time dependencies. The interface to entr is not only minimal, > it aims to be simple enough to create a new > + category of ad hoc automation. These micro-tests reduce keystrokes, > but more importantly they emphasize the utility of automated checks. > > Actual result: > > guix show: error: entr-git: package not found > > Additional information: > > `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 > outputs: out > systems: x86_64-linux i686-linux > dependencies: ncurses@6.2 > location: gnu/packages/entr-git.scm:25:2 > homepage: http://entrproject.org/ > license: ISC > synopsis: Run arbitrary commands when files change > description: entr is a zero-configuration tool with no external build > or run-time dependencies. The interface to entr is not only minimal, > it aims to be simple enough to create a new > + category of ad hoc automation. These micro-tests reduce keystrokes, > but more importantly they emphasize the utility of automated checks. > > Simplest reproduction of issue: > > * Ubuntu 20.04 AMD64 Desktop/Server system. > * Install Guix using guix-install.sh script. > * As a user, ensure absence of ~/.config/guix/current symlink. > * As a user, run `guix pull --fallback` > * As a user, run `guix describe`. > * As a user, run `sudo guix describe`. > * As root, run `guix describe`. > > Workaround: > > Use `/var/guix/profiles/per-user/root/current-guix/bin/guix` "directly" > (despite this also being a symlink). > > > I hope this is enough relevant information, otherwise it appears very > straight forward to reproduce. This bug is marked =E2=80=99moreinfo=E2=80=99 since months and because I do= not see how it is actionable, I am closing. If I miss something, please reopen it. All the best, simon