GNU bug report logs - #42810
Guix doesn't follow all symlinks

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Steffen Rytter Postas <nc@HIDDEN>; dated Tue, 11 Aug 2020 13:55:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 Aug 2020 13:54:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 11 09:54:47 2020
Received: from localhost ([127.0.0.1]:39015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k5Ujm-0001nT-Lg
	for submit <at> 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 <nc@HIDDEN>) id 1k5Ujk-0001nL-4l
 for submit <at> 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 <nc@HIDDEN>) id 1k5Ujj-0003Jf-Rx
 for bug-guix@HIDDEN; 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 <nc@HIDDEN>) id 1k5Ujg-00077b-F8
 for bug-guix@HIDDEN; 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 <bug-guix@HIDDEN>; Tue, 11 Aug 2020 13:54:37 +0000 (UTC)
Message-ID: <aaed7092134ff6007f4c05fb39a88f4939cc2cbc.camel@HIDDEN>
Subject: Guix doesn't follow all symlinks
From: Steffen Rytter Postas <nc@HIDDEN>
To: bug-guix@HIDDEN
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@HIDDEN;
 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-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

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@HIDDEN
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@HIDDEN
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





Acknowledgement sent to Steffen Rytter Postas <nc@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#42810; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 11 Aug 2020 14:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.