unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 45896@debbugs.gnu.org
Subject: bug#45896: Non-pull ‘guix’ should know its channels
Date: Tue, 26 Jan 2021 14:16:57 +0100	[thread overview]
Message-ID: <87v9bjzvli.fsf@gnu.org> (raw)
In-Reply-To: <874kjixf59.fsf@inria.fr> ("Ludovic Courtès"'s message of "Fri, 15 Jan 2021 18:51:14 +0100")

Ludovic Courtès <ludo@gnu.org> skribis:

> Likewise, on foreign distros, /usr/local/bin/guix may point to a ‘guix
> pull’-guix, but because of the symlink, ‘guix describe’ won’t work:
>
> $ type -P guix
> /home/ludo/.config/guix/current/bin/guix
> $ guix describe
> Generacio 171	Jan 11 2021 11:38:39	(nuna)
>   guix 458cb25
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 458cb25b9e7e7c954f468023abea2bebb5d8c75b
> $ ln -s $(type -P guix) /tmp
> $ /tmp/guix describe
> guix describe: error: failed to determine origin
> hint: Perhaps this `guix' command was not obtained with `guix pull'? Its
> version string is 458cb25b9e7e7c954f468023abea2bebb5d8c75b.

This problem extends beyond that: channel modules are not found if the
symlink is dereferenced:

--8<---------------cut here---------------start------------->8---
$ /tmp/guix-science/bin/guix describe 
Generacio 1     Jan 26 2021 14:13:46    (nuna)
  guix-past 829923f
    repository URL: https://gitlab.inria.fr/guix-hpc/guix-past
    branch: master
    commit: 829923f01f894f1e687735627025ada26230832f
  guix-science cf87b05
    repository URL: https://github.com/guix-science/guix-science.git
    branch: master
    commit: cf87b0501c4a38b96edf41025a27bf1cb91f521a
  guix 51418c3
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 51418c32d95d8188d8877616829f26479f1135c6
$ $(readlink -f /tmp/guix-science/bin/guix) describe 
guix describe: error: failed to determine origin
hint: Perhaps this `guix' command was not obtained with `guix pull'? Its version string is 51418c32d95d8188d8877616829f26479f1135c6.

$ /tmp/guix-science/bin/guix build python2@2.4 -n
La jenaj derivoj estus konstruataj:
   /gnu/store/xsk3vg48dfbwcc5w8pn08x5x15n5prpz-python2-2.4.6.drv
   /gnu/store/pnxh0lx28iydhw354xgcfbzk9r6zs6dx-Python-2.4.6.tar.xz.drv
   /gnu/store/fi2my0k9lfag52siz1h7xqwqbzwjkirc-Python-2.4.6.tar.bz2.drv
14.2 MB would be downloaded:
   /gnu/store/6wn346cbw1mh6264v426pwj2klgvxr0z-gcc-5.5.0
$ $(readlink -f /tmp/guix-science/bin/guix) build python2@2.4 -n
guix build: error: python2: pako ne trovita por versio 2.4
--8<---------------cut here---------------end--------------->8---

Ludo’.




  reply	other threads:[~2021-01-26 13:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 17:51 bug#45896: Non-pull ‘guix’ should know its channels Ludovic Courtès
2021-01-26 13:16 ` Ludovic Courtès [this message]
2021-01-27 21:53   ` Ludovic Courtès
2021-01-27 21:51 ` bug#45896: [PATCH 1/3] channels: Record 'guix' channel metadata in (guix config) Ludovic Courtès
2021-01-27 21:51   ` bug#45896: [PATCH 2/3] build: Add '--with-channel-commit' and related configure flags Ludovic Courtès
2021-01-27 21:51   ` bug#45896: [PATCH 3/3] gnu: guix: Pass the '--with-channel-commit' configure flag Ludovic Courtès
2021-02-04 12:46     ` bug#45896: Non-pull ‘guix’ should know its channels Ludovic Courtès
2021-01-27 21:53   ` Ludovic Courtès

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=87v9bjzvli.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=45896@debbugs.gnu.org \
    /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).