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 4DTZL02jMl/dAQAA0tVLHw (envelope-from ) for ; Tue, 11 Aug 2020 13:55:25 +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 GC5JKk2jMl/2WQAA1q6Kng (envelope-from ) for ; Tue, 11 Aug 2020 13:55:25 +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 086699403A9 for ; Tue, 11 Aug 2020 13:55:25 +0000 (UTC) Received: from localhost ([::1]:42400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5UkN-0003sa-WD for larch@yhetil.org; Tue, 11 Aug 2020 09:55:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58532) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5Uk3-0003ni-8Q for bug-guix@gnu.org; Tue, 11 Aug 2020 09:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5Uk2-0007Bc-SG for bug-guix@gnu.org; Tue, 11 Aug 2020 09:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5Uk2-0001oR-RT for bug-guix@gnu.org; Tue, 11 Aug 2020 09:55: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: Tue, 11 Aug 2020 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42810 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 42810@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15971540876916 (code B ref -1); Tue, 11 Aug 2020 13:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Aug 2020 13:54:47 +0000 Received: from localhost ([127.0.0.1]:39015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Ujm-0001nT-Lg for submit@debbugs.gnu.org; Tue, 11 Aug 2020 09:54:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:43536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Ujk-0001nL-4l for submit@debbugs.gnu.org; Tue, 11 Aug 2020 09:54:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5Ujj-0003Jf-Rx for bug-guix@gnu.org; Tue, 11 Aug 2020 09:54:43 -0400 Received: from scalehost.eu ([108.61.99.179]:58434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5Ujg-00077b-F8 for bug-guix@gnu.org; Tue, 11 Aug 2020 09:54:43 -0400 Received: from pop-os (unknown [89.239.193.119]) by scalehost.eu (Postfix) with ESMTPSA id 967AAFA0B2 for ; Tue, 11 Aug 2020 13:54:37 +0000 (UTC) Message-ID: Date: Tue, 11 Aug 2020 15:54:36 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=108.61.99.179; envelope-from=nc@scalehost.eu; helo=scalehost.eu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/11 09:54:37 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) 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: eoP8KRwqGLLh 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. 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. Sincerely, Steffen Rytter Postas