unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Steffen Rytter Postas via Bug reports for GNU Guix <bug-guix@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: 42810@debbugs.gnu.org
Subject: bug#42810: Guix doesn't follow all symlinks
Date: Wed, 16 Sep 2020 08:45:24 +0200	[thread overview]
Message-ID: <ab263d28d5cff211b3e7ac5217bf7e9f417d0938.camel@scalehost.eu> (raw)
In-Reply-To: <867dsuzlr6.fsf@gmail.com>

Hi,

ons, 16 09 2020 kl. 01:02 +0200, skrev zimoun:
> Dear,
> 
> On Tue, 11 Aug 2020 at 15:54, Steffen Rytter Postas <nc@scalehost.eu>
> 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. 
> > 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
> “guix-daemon” needs (really) few updates and as regular user, when
> doing
> “guix pull”, if there is major upgrade, then it will be announced
> with
> “guix pull –news”.  We all like different tastes. :-)

I also wanted to maintain only one copy of "guix" usable, instead of
having one version of guix per user, which is a lot harder to maintain.

> > `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 ’guix’
> points to ’/usr/local/bin/guix’ which points to
> ’/var/guix/profiles/per-user/root/current-guix/bin/guix’, and this
> latter points to ’/gnu/store/…-guix-command’.
> 
> I think the issue is that Guix is not only one binary, so ’bin/guix’
> is
> not enough.
> 
> So you need to have also in the correct symlinks with
> ’lib/{guile,guix}’
> and others.

How would I set this up? This happens on a default Guix setup following
the standard installation guide for installing on a foreign
distribution, and then setting up the channel configuration as
mentioned.
> 
> I have not investigated but I guess the issue you hit comes from
> ’lib/guix/package.cache’, correctly see by
> /var/guix/profiles/…/bin/guix’ but not all your other symlink
> machinery.
> 

This does make sense, if that is somehow only read from a non-store
location (I'm not sure why it would be, that seems against all the
point of guix in the first place).

> 
> Well, I do not know if it helps.
> 
> All the best,
> simon
> 
> 
> 





  reply	other threads:[~2020-09-16  6:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-11 13:54 bug#42810: Guix doesn't follow all symlinks Steffen Rytter Postas via Bug reports for GNU Guix
2020-09-15 23:02 ` zimoun
2020-09-16  6:45   ` Steffen Rytter Postas via Bug reports for GNU Guix [this message]
2020-09-16  7:26     ` zimoun
2020-09-16  7:35       ` Steffen Rytter Postas via Bug reports for GNU Guix
2020-09-16  9:33         ` zimoun
2020-09-16 10:24           ` Steffen Rytter Postas via Bug reports for GNU Guix
2020-09-16 11:01             ` zimoun
2021-07-05  9:35 ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab263d28d5cff211b3e7ac5217bf7e9f417d0938.camel@scalehost.eu \
    --to=bug-guix@gnu.org \
    --cc=42810@debbugs.gnu.org \
    --cc=nc@scalehost.eu \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).